Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

pop up menu vs bglayer in DW mx 2004

Status
Not open for further replies.

ferolo

Technical User
Sep 29, 2005
13
SE
Hello!

Im trying to fix my pop up menu, but it keeps "disappearing" behind the layers i have put. I am using the "behaviours" for the pop up menu over the image i want. The problem is that when i go to the image the pop up menu "hides" behind the image i have placed in the background layer. How do i make the damn thing visible?

I have tried placing the layers in different orders and so on, but i just cant see the pop up menu. Can someone plz tell me what i am doing wrong?

should i define the layers in some special way or hide layers in some way? i just dont know what to do...

the code:
---------------
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Untitled Document</title>
<style type="text/css">
<!--
body {
background-color: #CACACA;
background-image: url();
}
-->
</style>
<script language="JavaScript" type="text/JavaScript">
<!--
function mmLoadMenus() {
if (window.mm_menu_1003052619_0) return;
window.mm_menu_1003052619_0_1 = new Menu("Allmän&nbsp;kurs",145,18,"Arial, Helvetica, sans-serif",12,"#FFFFFF","#FFFFFF","#999999","#93010E","left","middle",3,0,1000,-5,7,true,true,true,0,true,true);
mm_menu_1003052619_0_1.addMenuItem("Vad&nbsp;är&nbsp;allmän&nbsp;kurs?");
mm_menu_1003052619_0_1.hideOnMouseOut=true;
mm_menu_1003052619_0_1.bgColor='#000000';
mm_menu_1003052619_0_1.menuBorder=1;
mm_menu_1003052619_0_1.menuLiteBgColor='#FFFFFF';
mm_menu_1003052619_0_1.menuBorderBgColor='#777777';
window.mm_menu_1003052619_0 = new Menu("root",96,18,"Arial, Helvetica, sans-serif",12,"#FFFFFF","#FFFFFF","#999999","#93010E","left","middle",3,0,1000,-5,7,true,true,true,0,true,true);
mm_menu_1003052619_0.addMenuItem(mm_menu_1003052619_0_1);
mm_menu_1003052619_0.hideOnMouseOut=true;
mm_menu_1003052619_0.childMenuIcon="arrows.gif";
mm_menu_1003052619_0.bgColor='#000000';
mm_menu_1003052619_0.menuBorder=1;
mm_menu_1003052619_0.menuLiteBgColor='#FFFFFF';
mm_menu_1003052619_0.menuBorderBgColor='#777777';

mm_menu_1003052619_0.writeMenus();
} // mmLoadMenus()

function MM_reloadPage(init) { //reloads the window if Nav4 resized
if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
if (a.indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a;}}
}

function MM_findObj(n, d) { //v4.01
var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers.document);
if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_nbGroup(event, grpName) { //v6.0
var i,img,nbArr,args=MM_nbGroup.arguments;
if (event == "init" && args.length > 2) {
if ((img = MM_findObj(args[2])) != null && !img.MM_init) {
img.MM_init = true; img.MM_up = args[3]; img.MM_dn = img.src;
if ((nbArr = document[grpName]) == null) nbArr = document[grpName] = new Array();
nbArr[nbArr.length] = img;
for (i=4; i < args.length-1; i+=2) if ((img = MM_findObj(args)) != null) {
if (!img.MM_up) img.MM_up = img.src;
img.src = img.MM_dn = args[i+1];
nbArr[nbArr.length] = img;
} }
} else if (event == "over") {
document.MM_nbOver = nbArr = new Array();
for (i=1; i < args.length-1; i+=3) if ((img = MM_findObj(args)) != null) {
if (!img.MM_up) img.MM_up = img.src;
img.src = (img.MM_dn && args[i+2]) ? args[i+2] : ((args[i+1])? args[i+1] : img.MM_up);
nbArr[nbArr.length] = img;
}
} else if (event == "out" ) {
for (i=0; i < document.MM_nbOver.length; i++) {
img = document.MM_nbOver; img.src = (img.MM_dn) ? img.MM_dn : img.MM_up; }
} else if (event == "down") {
nbArr = document[grpName];
if (nbArr)
for (i=0; i < nbArr.length; i++) { img=nbArr; img.src = img.MM_up; img.MM_dn = 0; }
document[grpName] = nbArr = new Array();
for (i=2; i < args.length-1; i+=2) if ((img = MM_findObj(args)) != null) {
if (!img.MM_up) img.MM_up = img.src;
img.src = img.MM_dn = (args[i+1])? args[i+1] : img.MM_up;
nbArr[nbArr.length] = img;
} }
}
//-->
</script>
<script language="JavaScript" src="mm_menu.js"></script>
</head>

<body onLoad="MM_preloadImages('Bilder/Buttons/button_kurser_black_redover.gif')">
<script language="JavaScript1.2">mmLoadMenus();</script>
<div id="bglayer" style="position:absolute; width:200px; height:115px; z-index:1; left: -3px; top: -2px;">
<div id="Layer1" style="position:absolute; width:121px; height:454px; z-index:1; left: 3px; top: 116px;">
<div class="navbar">
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td><a href="javascript:;" target="_top" onClick="MM_nbGroup('down','group1','kurs','',1)" onMouseOver="MM_nbGroup('over','kurs','Bilder/Buttons/button_kurser_black_redover.gif','',1);MM_showMenu(window.mm_menu_1003052619_0,117,22,null,'kurs')" onMouseOut="MM_nbGroup('out');MM_startTimeout();"><img src="Bilder/Buttons/button_kurser_black.gif" alt="" name="kurs" width="120" height="25" border="0" onload=""></a></td>
</tr>
</table>
</div>
</div>
<img src="Bilder/layout/mainbg_big3.png" width="1010" height="590"></div>
</body>
</html>
 
Set the Index on your Pop-up menu to a number higher than 5. I just had this problem and I set it at 8 and it fixed it... If you click on the other layers the index numbers should all be lower in order for your popup menu to show up.
 
umm.....oki im not quite sure now. I have already tried by setting the layer with the pop up menu to a higher setting. How do i change the z-index for the pop up menu itself? how to change z-index for layers i know...but how do i change z index for the pop up menu?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top