Junior Spellweaver
- Joined
- Jun 5, 2005
- Messages
- 192
- Reaction score
- 1
hey all...
I want to have a div with the content hide when you click on another link in the navigation (HERE)
(click home and about)
So the "Home" div would hide when the "About Us" div becomes visible.
It sorta works with this little code you see here but you've gotta click on the same link again for that div to hide... I'd like it to automatically hide when u click a different link.
I'd love some help with this
Thanks
I want to have a div with the content hide when you click on another link in the navigation (HERE)
(click home and about)
So the "Home" div would hide when the "About Us" div becomes visible.
It sorta works with this little code you see here but you've gotta click on the same link again for that div to hide... I'd like it to automatically hide when u click a different link.
Code:
function show(divID) {
var item = document.getElementById(divID);
if (item) {
item.className=(item.className=='hidden')?'unhidden':'hidden';
}
}
I'd love some help with this
Thanks