If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Display menu without onlick function

Hi,

Thanks for reading this. I am working on some menu code using javascript and CSS. Rather than using the onclick function for some pages I would like to automatically just display the subMenus. I have looked everywhere and cant find a function to replace this. Eg. If I am on the ABOUT US page I want the submenu to be displayed. However while I am on the ABOUT US page and I click on the SHOWCASE page I would like to the submenu to be displayed over the top.

Thanks for your code. I can see how having the menu in the JS can be useful. I am not very experienced with JS hence why my menu is in CSS. Maybe if you can have a look at the website which is http://www.b4ugolive.com/space/jobs.htm

you can comment on the code I have. When this page loads I would like the submenu under showcase to be showing. It is just for this page and not all the other pages so I am looking to replace the

Thanks for the code. Unfortunately that didn't work. I can see what you are trying to do.
If we can't work it out I make just have to hard code a different menu for those pages unless you have another idea.

I was hoping I could put some sort of value on the page and if the javascript reconised the value the the menu would be on rather that onlick.