afru
02-09-2005, 06:51 PM
Hi all,
Got a simple menu script that got displayed when the mouse hovers on links or clicks them. I got it from the following url.
http://www.dynamicdrive.com/dynamic...opmenuindex.htm (http://www.dynamicdrive.com/dynamicindex1/dropmenuindex.htm)
It works fine. What I want is to implement the same on right click that too cross browser. I fiddled a lot with onmousedown and event.button properties but ended up no where. I heard somewhere that we can use oncontextmenu but it doesnt seem to work on Mac/IE.
So what I need is, I want to check for event type and if it is right click then display the menu otherwise go to the default url of "href" property of the link.
If anybody knows how to implement cross browser right click capturing, Please do post it soon. I am stucked in middle of my project.
Thanking you in advance
Afru.
Got a simple menu script that got displayed when the mouse hovers on links or clicks them. I got it from the following url.
http://www.dynamicdrive.com/dynamic...opmenuindex.htm (http://www.dynamicdrive.com/dynamicindex1/dropmenuindex.htm)
It works fine. What I want is to implement the same on right click that too cross browser. I fiddled a lot with onmousedown and event.button properties but ended up no where. I heard somewhere that we can use oncontextmenu but it doesnt seem to work on Mac/IE.
So what I need is, I want to check for event type and if it is right click then display the menu otherwise go to the default url of "href" property of the link.
If anybody knows how to implement cross browser right click capturing, Please do post it soon. I am stucked in middle of my project.
Thanking you in advance
Afru.