Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Mouse over pop up on link

Status
Not open for further replies.

evergrean100

Technical User
Joined
Dec 1, 2006
Messages
115
Location
US

I need a mouseover on a link where someone puts mouse over and it shows info but I will not be using link just want mouse over.
This attempt shows pop up box with Okay prompt which I dont want:
<a href="" onmouseover="javascript:alert('hi')">here</a>

This gives good pop up message but puts # on end of url if someone clicks on it:

<a href="#" title="hi)">here</a>

Any better way of doing it??
 
if you just want a title to appear, simply give a title attribute to a span tag (or other inline tag):

Code:
<span title="blah">Mouse-over me</a>



*cLFlaVA
----------------------------
[tt]"quote goes here"[/tt]
[URL unfurl="true"]http://www.coryarthus.com/[/url]
 
Or add return false in an onclick handler.
Code:
<a href="#" title="hi)" [!]onclick="return false"[/!]>here</a>

-kaht

[small](All puppies have now found loving homes, thanks for all who showed interest)[/small]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top