Web Hosting Talk







View Full Version : DHTML ShowHideLayers Example


EricP
09-23-2002, 11:29 AM
I was always curious how Microsoft did this little trick, but their code was so deep I was never able to figure it out.

I finally did though from another source and it only takes a few lines of code.

Here is an example if your in to DHTML and layers.

http://www.vbasic.net/dhtml/showhidelayers.html

I also posted a .PSD file that you can download too.


Enjoy!

:)

Rich2k
09-23-2002, 11:42 AM
Yep thats quite an obvious one... simply replacing display:none with display:block

EricP
09-23-2002, 11:43 AM
Look, not everyone knows how to design a website.

If you can't use this, then don't bother replying.

Ultravox
09-26-2002, 12:17 PM
Thanks EricP. That code was a good help. It really was a puzzle to give that menu like microsoft.

tapster
09-26-2002, 12:48 PM
nice effect, but be very careful to cope with cross browser issues.

ie. this doesn't work in the latest versions of mozilla/netscape as-is

nice example though

cheers

Samuel
09-26-2002, 01:04 PM
EricP, nice thread man, thanks for sharing this.