By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
464,660 Members | 1,243 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 464,660 IT Pros & Developers. It's quick & easy.


P: 6
I'm using the following code to provide a selection menu. This code is then going into a formula within a reporting tool. The reporting tool generates HTML for the report when viewing through a portal. The pop-up works but only within the cell of the table. In other words, it gets cut-off by the border of the <td>. This doesn't happen when creating a table around the anchor tag below, only under the reporting tool. Is there an option that would force the pop-up to appear on top of the table?

<!--Links used to initiate the sub menus. Pass in the desired submenu index numbers (ie: 0, 1) -->

<a href="javascript:void(0)" onMouseover="'lightgrey' ;showit(0)" onMouseout="'transparent ';resetit(event)">Backlog ($)</a>

<!-- Edit the dimensions of the below, plus background color-->
<ilayer left=200 width=400 height=32 name="dep1" bgColor="#E6E6FF">
<layer left=200 name="dep2" width=400 height=32>
<div id="describe" style="position:absolute;top:0px;left:90px;width:1 00px;height:32px" onMouseover="clear_delayhide();" onMouseout="resetit(event)"></div>

<script language="JavaScript1.2">

var submenu=new Array()

//Set submenu contents. Expand as needed. For each content, make sure everything exists on ONE LINE. Otherwise, there will be JS errors.

submenu[0]='<font size="2" face="Verdana"><b><a href="">Products</a> <br> <a href="">Services</a> <br> <a href="">Total</a> </b></font>'

//Set delay before submenu disappears after mouse moves out of it (in milliseconds)
var delay_hide=300

/////No need to edit beyond here

var menuobj=document.getElementById? document.getElementById("describe") : document.all? document.all.describe : document.layers? document.dep1.document.dep2 : ""

function showit(which){
thecontent=(which==-1)? "" : submenu[which]
if (document.getElementById||document.all){
else if (document.layers){

function resetit(e){
if (document.all&&!menuobj.contains(e.toElement)){
else if (document.getElementById&&e.currentTarget!= e.relatedTarget&& !contains_ns6(e.currentTarget, e.relatedTarget))

function clear_delayhide(){
if (window.delayhide)

function contains_ns6(a, b) {
while (b.parentNode)
if ((b = b.parentNode) == a)
return true;
return false;

Feb 22 '07 #1
Share this Question
Share on Google+
1 Reply

Expert Mod 15k+
P: 16,027
Maybe you need to set the z-index to something higher to make sure it stays above other elements.
Feb 23 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.