Reply to layer order z-index not working: help!!

Your name:

Reply:


Posted by Susanne West on 02/20/07 17:40

hi.

i have this case, where (for about 2 days now) i'm trying to
get z-index to work correctly and i can't figure out what's wrong.

IE seems to completely ignore it, while firefox does it
properly... it's basically just a series of pulldowns done
with div's...


any help is deeply appreciated!

sorry for the massive code snippet, but it's hard to get it
leaner


---------------------------------------------








<head>
<title>title</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />

<link href="../styles/styles.css" rel="stylesheet" type="text/css" />
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_swapImgRestore() { //v3.0
var i,x,a=document.MM_sr;
for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

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[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

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[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++)
x=MM_findObj(n,d.layers[i].document);
if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array;
for(i=0;i<(a.length-2);i+=3)
if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc)
x.oSrc=x.src; x.src=a[i+2];}
}



function toggleShows(divId,onoff) {
var db = MM_findObj(divId);
if (onoff == 1){
db.style.display = 'block';
} else {
db.style.display = 'none';
}
}


//-->
</script>

<script language="JavaScript" type="text/JavaScript">
<!--
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);
//-->
</script>
</head>

<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0"">

<table width="420" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="140">entry 1</td>
<td width="230" height="20"
onMouseOver="toggleShows('shows_001','1');"
onMouseOut="toggleShows('shows_001','0');">
<div style="position:relative; top:0; left:0; width:230;">
<div id="shows_001" style="position: absolute; top:18px;
left:-1; display:none; width:230px; background-color:#e4e3d5; z-index:100;">
<table border="0" cellpadding="0" cellspacing="0" width="232">
<tr>
<td width="60">&nbsp;</td>
<td width="152">&nbsp;12.00 15.00</td>
<td width="18">&nbsp;</td>
</tr>
<tr>
<td width="60">&nbsp;So, 13.12.</td>
<td width="152">&nbsp;12.00 15.00</td>
<td width="18">&nbsp;</td>
</tr>
<tr>
<td width="60">&nbsp;So, 13.12.</td>
<td width="152">&nbsp;12.00 15.00</td>
<td width="18">&nbsp;</td>
</tr>
<tr>
<td width="60">&nbsp;So, 13.12.</td>
<td width="152">&nbsp;12.00 15.00</td>
<td width="18">&nbsp;</td>
</tr>
</table>
</div>
<div align="right" style="width:230;">
<table width="230" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="60">&nbsp;So, 13.12.</td>
<td width="152">&nbsp;12.00 15.00</td>
<td width="18">DETAILS</td>
</tr>
</table>
</div>
</div></td>
<td width="50" align="right" >aaa</td>
</tr>
<tr>
<td >entry 2</td>
<td height="20" onMouseOver="toggleShows('shows_002','1');"
onMouseOut="toggleShows('shows_002','0');">
<div style="position:relative; top:0; left:0; width:230;">
<div id="shows_002" style="position: absolute; top:18px;
left:-1; display:none; width:230px; background-color:#e4e3d5; z-index:90;">
<table border="0" cellpadding="0" cellspacing="0" width="232">
<tr>
<td width="60">&nbsp;</td>
<td width="152">&nbsp;12.00 15.00</td>
<td width="18">&nbsp;</td>
</tr>
<tr>
<td width="60">&nbsp;So, 13.12.</td>
<td width="152">&nbsp;12.00 15.00</td>
<td width="18">&nbsp;</td>
</tr>
<tr>
<td width="60">&nbsp;So, 13.12.</td>
<td width="152">&nbsp;12.00 15.00</td>
<td width="18">&nbsp;</td>
</tr>
<tr>
<td width="60">&nbsp;So, 13.12.</td>
<td width="152">&nbsp;12.00 15.00</td>
<td width="18">&nbsp;</td>
</tr>
</table>
</div>
<div align="right" style="width:230;">
<table width="230" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="60">&nbsp;So, 13.12.</td>
<td width="152">&nbsp;12.00 15.00</td>
<td width="18">DETAILS</td>
</tr>
</table>
</div>
</div></td>
<td align="right" >aaa</td>
</tr>
<tr>
<td >entry 3</td>
<td height="20" onMouseOver="toggleShows('shows_003','1');"
onMouseOut="toggleShows('shows_003','0');">
<div style="position:relative; top:0; left:0; width:230;">
<div id="shows_003" style="position: absolute; top:18px;
left:-1; display:none; width:230px; background-color:#e4e3d5; z-index:80;">
<table border="0" cellpadding="0" cellspacing="0" width="232">
<tr>
<td width="60">&nbsp;</td>
<td width="152">&nbsp;12.00 15.00</td>
<td width="18">&nbsp;</td>
</tr>
<tr>
<td width="60">&nbsp;So, 13.12.</td>
<td width="152">&nbsp;12.00 15.00</td>
<td width="18">&nbsp;</td>
</tr>
<tr>
<td width="60">&nbsp;So, 13.12.</td>
<td width="152">&nbsp;12.00 15.00</td>
<td width="18">&nbsp;</td>
</tr>
<tr>
<td width="60">&nbsp;So, 13.12.</td>
<td width="152">&nbsp;12.00 15.00</td>
<td width="18">&nbsp;</td>
</tr>
</table>
</div>
<div align="right" style="width:230;">
<table width="230" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="60">&nbsp;So, 13.12.</td>
<td width="152">&nbsp;12.00 15.00</td>
<td width="18">DETAILS</td>
</tr>
</table>
</div>
</div></td>
<td align="right" >aaa</td>
</tr>
<tr>
<td >entry 4</td>
<td height="20" onMouseOver="toggleShows('shows_004','1');"
onMouseOut="toggleShows('shows_004','0');">
<div style="position:relative; top:0; left:0; width:230;">
<div id="shows_004" style="position: absolute; top:18px;
left:-1; display:none; width:230px; background-color:#e4e3d5; z-index:70;">
<table border="0" cellpadding="0" cellspacing="0" width="232">
<tr>
<td width="60">&nbsp;</td>
<td width="152">&nbsp;12.00 15.00</td>
<td width="18">&nbsp;</td>
</tr>
<tr>
<td width="60">&nbsp;So, 13.12.</td>
<td width="152">&nbsp;12.00 15.00</td>
<td width="18">&nbsp;</td>
</tr>
<tr>
<td width="60">&nbsp;So, 13.12.</td>
<td width="152">&nbsp;12.00 15.00</td>
<td width="18">&nbsp;</td>
</tr>
<tr>
<td width="60">&nbsp;So, 13.12.</td>
<td width="152">&nbsp;12.00 15.00</td>
<td width="18">&nbsp;</td>
</tr>
</table>
</div>
<div align="right" style="width:230;">
<table width="230" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="60">&nbsp;So, 13.12.</td>
<td width="152">&nbsp;12.00 15.00</td>
<td width="18">DETAILS</td>
</tr>
</table>
</div>
</div></td>
<td align="right" >aaa</td>
</tr>
</table>

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация