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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Show-Hide Layer Test For Mac and NS

Status
Not open for further replies.

TheDemon

Programmer
Feb 7, 2000
108
GB
Hi people,

I've got this exciting little show-hide layer project on the go and want to make sure it works cross-browser. It looks perfect on my set-up (XP, IE6, 1152x864) but I've just checked on an iMac (with IE 5) and noticed that not only does the layer function work but it doesn't even see the images on the menu (which are the show-hide buttons). I've not checked in Netscape yet.

Does anyone know what is missing in the code to make this Mac-compliant? It would seem a shame to lose this functionality.

The project may be found at:
Thank you to anyone out there who may be able to help! The Demon

..:: Visit me at: ..:: Try out: ..:: Subscribe to:
 
Well, your first issue is going to be that Netscape 4 browsers won't know what to do with the visible style.
try using style.display = "none" and "inline".
 
Sorry, I'm being thick here, but what does &quot;inline&quot; mean (visible?) and how do I include that style.display command? Do I just add it in my <div> tag?

<div id=&quot;Layer1&quot; style=&quot;position:absolute; width:200px; height:115px; z-index:1; left: 309px; top: 31px; visibility: hidden&quot; style.display=&quot;none&quot;> The Demon

..:: Visit me at: ..:: Try out: ..:: Subscribe to:
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top