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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Tool Tip for IMG from Javascript Newbie 1

Status
Not open for further replies.

lanm

Programmer
Jul 7, 2005
244
US
I have the following:

onMouseOver="alert("This is an alert")"

What I'd like to do, is rather than an alert it simply have a tool tip box come up...like "You've rolled over the image", and when the user onMouseOuts from the image, the tool tip goes away.

Thanks!
 
Great! Thanks cLFLaVA!

Is there another way to do this...with the onMouseOver event?

Thanks again!
 
Thanks cLFlaVA!

So, using the Title attribute is the best route?

I'm open for suggestions / comments.

Thanks!
 
Well...

If you're hell-bent on using the mouseover event:

Code:
<span onmouseover="this.title='you mousedover'">Testing</span>

This works, but it is really a joke. Go with what cLFlaVA says. That's a good rule of thumb anytime! :)

--Dave


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
O Time, Strength, Cash, and Patience! [infinity]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top