Porsche_maniak
Active Member
Is there a way to make mouseover function for one time only (no repeating of the function in next mouseover's)?
var isFirstMouseOver = true;
function mouseOverHandler(elm)
{
if (isFirstMouseOver)
{
isFirstMouseOver = false;
// do stuff...
}
else
{
// not the 1st time...
}
}
<a href="#" onmouseover="mouseOverHandler(this); return false;">foo</a>
<a href="" onmouseover="alert('Hello!');this.onmouseover='';">Link</a>
or, how about...
Code:<a href="" onmouseover="alert('Hello!');this.onmouseover='';">Link</a>