Have Javascript to display some text onMouseOver
I have this line of code
<img src="1.png" id="friends" onMouseOver="document.writeln('We are 86');"</h2>
I want instead of deleting everything else on the site when I hover over it to display some text below it. How will this be done? Thanks to
- Jesper
0
JapSeyz
source
to share
1 answer
You can either add an attribute title
that most browsers will automatically display on hover without the need to add any additional Javascript, or you can use a library like tipsy .
+2
Lars kotthoff
source
to share