View Full Version : Help needed:Hiding/Showing <div> layers
nah
September 8th, 2007, 02:40 AM
What is the best way to rotate several <div> layers? I am wanting to have three or more <div> layers with only one being visible at a time.
I know that javascript is used to accomplish this but I have not found the right one to allow multiple layers that interact in this manner.
Please advise....
MTsoul
September 8th, 2007, 02:44 AM
What do you mean "rotate"?
nah
September 8th, 2007, 02:55 AM
Start out with having one layer appear with options to view other layers.
Ex. I am wanting to have three or more div layers....named 1, 2, 3 and 4. When the page loads I want to display div layer 1 with options (links, buttons, etc) to view the other div layers. Layer 1 starts out visible the other layers are invisible until they are selected then the current layer displaying disappears and the selected layer appears. This is what I mean by rotating layers.
Esoltas
September 8th, 2007, 07:20 PM
z-index & js? Links to pages with them shuffled as you wish? Be creative. :thumb:
nah
September 9th, 2007, 02:52 AM
What is the best javascript to rotate multiple div layers....making one visible while the others are hidden? I am very much a beginner at all of this but I am wanting to learn.
somnamblst
September 9th, 2007, 03:09 PM
What is the best javascript to rotate multiple div layers....making one visible while the others are hidden? I am very much a beginner at all of this but I am wanting to learn.
Google scriptaculous & mooFX
thomjjames
September 9th, 2007, 05:30 PM
Hi,
personally i'd go for jQuery (http://jquery.com) as a javascript library as you can do things with alot less code.
if you can provide the HTML code, maybe everyone can provide you with some example JS code!?
cheers
Tom
AgentFitz
September 9th, 2007, 10:44 PM
personally i'd go for jQuery (http://jquery.com)
I was about to say the same thing. Definitely check out jQuery.
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.