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?
[HTML]
<!--Links used to initiate the sub menus. Pass in the desired submenu index numbers (ie: 0, 1) -->
<a href="javascript:void(0)" onMouseover="describe.style.background='lightgrey' ;showit(0)" onMouseout="describe.style.background='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>
</layer>
</ilayer>
<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="www.yahoo.com">Products</a> <br> <a href="www.yahoo.com">Services</a> <br> <a href="www.yahoo.com">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){
clear_delayhide()
thecontent=(which==-1)? "" : submenu[which]
if (document.getElementById||document.all){
menuobj.innerHTML=thecontent
}
else if (document.layers){
menuobj.parent.document.write(thecontent)
menuobj.document.close()
}
}
function resetit(e){
if (document.all&&!menuobj.contains(e.toElement)){
delayhide=setTimeout("showit(-1)",delay_hide)
}
else if (document.getElementById&&e.currentTarget!= e.relatedTarget&& !contains_ns6(e.currentTarget, e.relatedTarget))
delayhide=setTimeout("showit(-1)",delay_hide)
}
function clear_delayhide(){
if (window.delayhide)
clearTimeout(delayhide)
}
function contains_ns6(a, b) {
while (b.parentNode)
if ((b = b.parentNode) == a)
return true;
return false;
}
</script>
[/HTML]