
Originally Posted by
JayGeePee
Is hyperlinking this going to work? What do I do with it?
<a href="#" onmouseover="doTooltip(event,4)" onmouseout="hideTip()">Link 1</a>
It is hyperlinked, and the hyperlink works. What you've been asking, as far as I can tell, is how to stop the hyperlink from working. For that, do it like so:
Code:
<a href="#" onclick="return false;" onmouseover="doTooltip(event,4)" onmouseout="hideTip()">Link 1</a>
Now, if instead of killing the hyperlink, you want it to go somewhere, you can just change the # to a URL:
Code:
<a href="some.htm" onmouseover="doTooltip(event,4)" onmouseout="hideTip()">Link 1</a>
Or, if you only want it to go somewhere when javascript is disabled, you can do both, add the return false and make the # a URL:
Code:
<a href="some.htm" onclick="return false;" onmouseover="doTooltip(event,4)" onmouseout="hideTip()">Link 1</a>
Finally, if you absolutely, positively don't want it going anywhere under any circumstances, do this:
Code:
<a href="javascript:void(0);" onclick="return false;" onmouseover="doTooltip(event,4)" onmouseout="hideTip()">Link 1</a>
Bookmarks