Mouse over event : Mouse Event : Event JAVASCRIPT DHTML TUTORIALS


JAVASCRIPT DHTML TUTORIALS » Event » Mouse Event »

 

Mouse over event



<HTML>
<HEAD>
<TITLE>title Property</TITLE>
<SCRIPT LANGUAGE="JavaScript">
var count = 0
function setToolTip(elem) {
    elem.title = "You have previously rolled atop this paragraph " + count + " time(s)."
}
function incrementCount(elem) {
    count++;
    setToolTip(elem);
}
</SCRIPT>
</HEAD>
<BODY>
<H1>title Property Lab</H1>
<HR>
<P ID="myP" TITLE="First Time!" onMouseOver="incrementCount(this)">
Roll the mouse over this paragraph a few times.<BR>
Then pause it to view the tooltip.</P>
</BODY>
</HTML>

           
       



-

Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .

Follow Navioo On Twitter

JAVASCRIPT DHTML TUTORIALS

 Navioo Event
» Mouse Event