Forum Moderators: open

Message Too Old, No Replies

Disable mouse click within mouseover script

mouseover

         

BBshopLead

5:16 pm on Apr 5, 2010 (gmt 0)

10+ Year Member



Unable to disable left mouse click within a mouseover script. When left-clicking on a mouseover link (in code below, it would be 'name'), page attempts to link to array picture, which naturally, it can't. In code below text 'name' is link to picture in message array.
<a href=""onmouseover="doTooltip(event,0)"onmouseout="hideTip()">name</a>
User would need to use scroll bar, so to disable left click on entire page would be counterproductive.
Any ideas?

caribguy

5:29 pm on Apr 5, 2010 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Use a DIV and style the cursor as a pointer with CSS.

MichaelBluejay

3:02 am on Apr 6, 2010 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



<a href="" onmouseover="dotooltip(event,0)" onmouseout="hideTip()" onclick="return false">name</a>

BBshopLead

12:05 pm on Apr 6, 2010 (gmt 0)

10+ Year Member



Perfect and simple solution - thanks