"drop down" java script
- Started
- Last post
- 6 Responses
- skelly
i'm looking for an example of how to make drop down sections on a page using java script, just like in
http://www.pioneer10.comi like how you can expand or close any or all of the sections. i looked at the js files on that site and can't make any sense of them.
does anyone have a more straightforward example or could tell me what feature of javascript is used to do that? thanks.
- kld0
oww, tell me too
- skelly0
hmm, well it looks like it just replaces the image. it changes when you roll over, and just turns into a much larger image when you click it, and makes it look like it's "expanding"
- welded0
Exactly, and it's really quite simple if you're able to boil it down. I can't find the exact article I was looking for, but this one should be helpful if not 100% applicable.
- heavyt0
looks like a simple one that i have used before.
You can give each DIV an id. Then use:
function viso()[
var x = document.getElementById('id').st...
if ( x= 'none')[
x = 'block';
]else[
x= 'none';
]
]
TR1
- skelly0
much thanks!
- heavyt0
no prob. email me if you need any more help with it.
TR1