Layers-Netscape: page disappears

liunx

Guest
When I used Layers to cover up an unwanted image(for stats program) my page disappears. Any ideas: the page is <!-- w --><a class="postlink" href="http://www.devoteddesign.com/test.shtml">www.devoteddesign.com/test.shtml</a><!-- w --> view it in IE and then Netscape.<br />
<br />
-Matt<!--content-->I didn't look real hard, but it looks like you redirect to a different page if Netscape is detected, check the z-indexing of the Netscape page.<br />
<br />
Kevin<!--content-->Netscape is very strict on it's tags... I see this<br />
<br />
<br />
<script<br />
<br />
language="JavaScript"<br />
src=http://www.htmlforums.com/archive/index.php/"http://devoteddesign.freestats.com/cgi-bin/sitestats.gif/script"><br />
<br />
</script><br />
<noscript><br />
<a<br />
<br />
href=http://www.htmlforums.com/archive/index.php/"http://devoteddesign.freestats.com/cgi-bin/sitestats.gif/map"><br />
<br />
<p><img src=http://www.htmlforums.com/archive/index.php/"http://devoteddesign.freestats.co<TABLE CELLPADDING=0 CELLSPACING=1 BORDER=0 BGCOLOR="#cccccc"><TR><TD><br />
<A HREF=http://www.htmlforums.com/archive/index.php/"http://www.freestats.com" TARGET="_top"><IMG SRC="http://www.freestats.com/fs_img/freestats/sidebar.gif" BORDER="0" ALT="Click here for FREE Stats" WIDTH="15" HEIGHT="60"></A></TD><TD><br />
<A href=http://devoteddesign.freestats.com/cgi-bin/c/485/62/dXNlcmJhbm5lcg==/gs/170/ target=_blank><br />
<IMG src=http://devoteddesign.freestats.com/cgi-bin/b/485/62/dXNlcmJhbm5lcg==/gs/170/ width=468 height=60 border=0 ismap></A><br />
<br />
I don't think Netscape will allow any of this. also you close a table after the </html> tag.<br />
<br />
just loo at that code. you have tags not started and not closed.<!--content-->thats not the code i have actually... just another example of how netscape messes things up. the code for the area that is the problem is:<br />
<br />
<div id="statscover" style="position:absolute; left:0px; top:400px; width:141px; height:70px; z-index:3"><br />
<dd><img src=http://www.htmlforums.com/archive/index.php/"images/statcover.jpg" width="500" height="70"></dd><br />
</div><br />
<div id="stats" style="position:absolute; left:40px; top:400px; width:141px; height:70px; z-index:2"><br />
<script language="JavaScript"<br />
src=http://www.htmlforums.com/archive/index.php/"http://devoteddesign.freestats.com/cgi-bin/sitestats.gif/script"></script><br />
<br />
<noscript><br />
<a href=http://www.htmlforums.com/archive/index.php/"http://devoteddesign.freestats.com/cgi-bin/sitestats.gif/map"><br />
<p><img src=http://www.htmlforums.com/archive/index.php/"http://devoteddesign.freestats.com/cgi-bin/sitestats.gif/img" border="0"></a></noscript><br />
</p><br />
</div><br />
<br />
<br />
<br />
Thats it...none of those wierd image tags and as for the not closing tags, i am pretty sure i have done so....<br />
<br />
-Matt<!--content-->I got that off your page. if you have one tag messed up, Netscape will not show the page.<!--content-->Originally posted by devoteddesign <br />
thats not the code i have actually... just another example of how netscape messes things up. the code for the area that is the problem is:<br />
<br />
<div id="statscover" style="position:absolute; left:0px; top:400px; width:141px; height:70px; z-index:3"><br />
<dd><img src=http://www.htmlforums.com/archive/index.php/"images/statcover.jpg" width="500" height="70"></dd><br />
</div><br />
<div id="stats" style="position:absolute; left:40px; top:400px; width:141px; height:70px; z-index:2"><br />
<script language="JavaScript"<br />
src=http://www.htmlforums.com/archive/index.php/"http://devoteddesign.freestats.com/cgi-bin/sitestats.gif/script"></script><br />
<br />
<noscript><br />
<a href=http://www.htmlforums.com/archive/index.php/"http://devoteddesign.freestats.com/cgi-bin/sitestats.gif/map"><br />
<p><img src=http://www.htmlforums.com/archive/index.php/"http://devoteddesign.freestats.com/cgi-bin/sitestats.gif/img" border="0"></a></noscript><br />
</p><br />
</div><br />
<br />
<br />
<br />
Thats it...none of those wierd image tags and as for the not closing tags, i am pretty sure i have done so....<br />
<br />
-Matt <br />
<br />
the above code is not the code that Netscape uses, at least it wasn't when I looked before, check your Netscape code.<br />
<br />
Just looking at the above code I see you have div id=statcover set at width=141 but the image that goes in the div is width=500, might not make any difference but I would correct the div tag to correlate with the image. I would load the z-index layers in order, you are loading z-index:3 before z-index:2 for some reason.<!--content-->I Download <!--more-->ed the ie page and ran it in both of the browsers, no problems. so if you have a redirect or a different page for Netscape I would check on what kevin said and also see if you are not making the whole page(layer) invisible. because the background comes up but no page.<!--content-->
 
Back
Top