Thread: Show/Hide layers in IE
Results 1 to 4 of 4
03-17-2004, 01:01 PM #1
Show/Hide layers in IE
I am trying to hide specific layers using show/hide layers behavior in DW MX when the page is first launched. It works beautifully in Netscape and Safari, but in Internet Explorer, the layers show for a brief moment while the page is loading. It looks sloppy. Does anyone have any advice? Thanks in advance!
Here is a link to the page:
Last edited by HTML; 03-20-2007 at 12:29 PM.
03-17-2004, 09:03 PM #2
The problem is that the 'hide' command is in the onload event for the body. This means that it should not perform that function until <body> has finished loading.
I would say at a guess that Netscape & Safari are actually incorrect in this case. And I hate Internet Explorer
The best solution would be to have the layers rendered hidden to begin with. I have not tried this, but in theory -
<div id="Layer2" style="position:absolute; left:91px; top:0px; width:67px; height:52px; z-index:2; visibility: hidden;">
03-18-2004, 10:42 AM #3
This works great! Thanks a lot. Looks soooo much better, and my rollovers still work, too!
Last edited by hbass; 03-18-2004 at 10:42 AM. Reason: removing superfluous text
03-18-2004, 11:04 AM #4
Brilliant. Thanks for letting me know.