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.
Thanks
MS
Changing OnClick to OnMouseOver
Re: Changing OnClick to OnMouseOver
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.msoden wrote:I can find areas in the code where I think I should be changing it...
If I misinterpreted - sorry.
John
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.
Cheers,
Kevin
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.
Cheers,
Kevin
Kevin,
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.
MS
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.
MS