Milonic provide full featured pull down web menus for some of the worlds largest companies
click here to see what it can do for you

Download Milonic DHTML Menu
Buy Milonic DHTML Menu

Back To Start Of Archive
Taken From The Forum: Help & Support for DHTML Menu Version 5+
Forum Topic: Click to view post
Last Updated: Saturday July 14 2012 - 06:07:15

Changing OnClick to OnMouseOver

Poster: msoden
Dated: Wednesday August 18 2004 - 16:33:19 BST

I have a client who would like the main navigation (not sub-nav) of their site to a OnMouseOver and not the usual OnClick. I have advised them against this request to no avail. I can find areas in the code where I think I should be changing it; however I would like to verify. Has anybody had this question or even done it. If so, please advise how to do it.


Poster: Ruth
Dated: Thursday August 19 2004 - 5:36:58 BST

Could you clarify a bit. Do you mean they want a submenu to open on mouseover or do they want a main menu link to work onMouseover i.e. take the person to the link?


Re: Changing OnClick to OnMouseOver

Poster: John
Dated: Thursday August 19 2004 - 14:45:20 BST

msoden wrote:
I can find areas in the code where I think I should be changing it...

If you're talking about changing the menu code itself - don't. Not only are you asking for big problems, you will also lose all support.

If I misinterpreted - sorry.

Poster: kevin3442
Dated: Friday August 20 2004 - 22:10:44 BST

Hi MS,

Are you talking about having a menu where simply mousing over an item takes the user to another page? If so, I can see why you tried to convince your client otherwise; he or she is insane!

Anyway, you could write a simple js function to change the page's location.href to a new url, and call the function with the menu item's onfunction= property (if you need more detail, I can show you). I wouldn't put too much effort into it thought, because when the client realizes how insane that is, and how many people hate their site because of it, they will certainly want you to change it.



Poster: msoden
Dated: Friday August 27 2004 - 23:45:01 BST

Thank you for the information. The client would like for the page to change on a mouse over, not on click. I totally agree with you regarding the request. The problem was he saw a site with a remote rollover and thought the page was changing when in reality it was just swaping images. I have since been able talk him out of the requirement.


Poster: kevin3442
Dated: Saturday August 28 2004 - 0:43:25 BST

msoden wrote:
...I have since been able talk him out of the requirement.

An "A" for customer relations and guidance!