Click to See Complete Forum and Search --> : Javascript menu


geuis
04-16-2003, 10:43 PM
I want to create a vertical menu system that, when I click on a category, will display images underneath that I've made in the style of my site, kind of like this:

News
Projects
Ideas Foundry
Links

user clicks on Projects and the menu looks like this

News
Projects
|Project 1
|Project 2
|Project 3
Ideas Foundry
Links

I was looking at some of the DHTML/javascript menus. While these are definitely cool, they're not quite what I want. I really want to display my own images, but have them have the behavior normally associated with a dynamic DHTML menu.

If anyone can point me in the right direction here, I'd be eternally grateful. Thanks!

Geuis

gil davis
04-17-2003, 07:51 AM
I would think that the technique (basically display="none" changes to display="block") doesn't care whether you use an image or text inside the DIV used for the menu.

Or is there more to your question than is apparent?

tim_gor
04-17-2003, 08:11 AM
Hm... I would imagine you could do something like this (though I can't code it for you coz it'll take too long)

<div id="MyMenu">
</div>

Then followed by some script which basically generates the HTML to go inside the DIV tag using MyMenu.innerHTML = "..."

So basically you dynamically update what's inside MyMenu according to some set of variables. And then these variables are updated when you click on a menu item?