Delay onmouseover effect for 1 second

in the following script there is only one modication that I wish to make, that is I want the mouse to hover over the link for 1 second before the mouseover effect takes place, is this possible

<a  onmouseover="javascript:this.style.cursor='hand';window.open('http://whatever.html','mypage','')"</A>
kempvetAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
DireOrbAntConnect With a Mentor Commented:
<SCRIPT LANGUAGE="JavaScript">
var TimerID = 0;
function StartOver() {
  TimerID = setTimeout('ActivateOver()', 1000);
}

function StopOver() {
  if (TimerID) {
        clearTimeout(TimerID);
            TimerID = 0;
      }
}

function ActivateOver() {
  window.open('http://whatever.html','mypage','');
}
</SCRIPT>

<a href="javascript:;" onmouseover="StartOver()" onmouseout="StopOver()">Test me</a>
0
 
kempvetAuthor Commented:
thanks, I suspected that a function may need to be called, this then saves the hassle when someone is moving their mouse to another page and just flicking over the link,
regards
kempvet
0
All Courses

From novice to tech pro — start learning today.