Click to See Complete Forum and Search --> : Hide/show script.


elesedee.
08-04-2003, 02:02 AM
Hi,

I'm looking for a hide/show javascript and I'm wondering if anyone has some examples.

What I want is to have a set of links (navigation) and whenever a link is pressed appropriate <div> is shown but when another link is pressed the previous <div> hides and a new <div> is shown. I know there are many scipts that do this, the trick is I want to have more than one <div> to open with one click, and have them disapear when another link is pressed. I tried modifying some scripts but my lack of knowledge keeps the scritps from working. Thanks for your time.

Khalid Ali
08-04-2003, 07:36 AM
something like this may help you.

http://68.145.35.86/skills/javascripts/ShowHideFormElement.html

just use links instead of buttons

elesedee.
08-04-2003, 03:52 PM
Hey thanks. but thats not really what i need. I'm looking for a script that has a set of links and a set of hidden divs. when one link is pressed, 1 or more divs are shown. when the next link is pressed, the previous set of divs hides and another set of divs is shown. if anyone has anything similar please let me know.

PS. Khalid i just noticed that you live in Calgary, thats cool cause i do too. what neighborhood?

pyro
08-04-2003, 03:53 PM
Try http://www.infinitypages.com/research/clientsidedivinclude.htm but remember that this won't work for those with javascript disabled. The PHP version will: http://www.infinitypages.com/research/divinclude.php