Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can I have two events for one Javascript menu item?

Status
Not open for further replies.

staciann

IS-IT--Management
Nov 1, 2006
72
US
I am using javascript dropdown menus - they work great. I call them out using onMouseOver="MM_showMenu" - however, I'd like to make the basic word at the top of the menu link to something if someone clicks it instead of using the dropdown.

Like if "Services" drops down and lists: Chemical, Physical, Engineering, etc. I would like "Services" to also link to a page of it's own. I tried putting in an onClick or an onRelease event with the onMouseOver but then neither one works. Is there a way for me to do both?

Thank you,
Staci
 
Sorry, I should have explained better. I can't do that because the href already has "javascript;" as the function. This is what the code looks like for one menu item:

<a href="javascript:;" name="industries" id="industries" onMouseOver="MM_showMenu(window.mm_menu_0603145738_0,0,23,null,'link2')" onMouseOut="MM_startTimeout();">Industries </a>
 
You can do what cLFlaVA said. The href you have now does nothing.



[monkey][snake] <.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top