Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Delay onmouseover effect for 1 second

Posted on 2006-07-08
2
Medium Priority
?
366 Views
Last Modified: 2012-06-22
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>
0
Comment
Question by:kempvet
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 26

Accepted Solution

by:
DireOrbAnt earned 2000 total points
ID: 17067035
<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
 

Author Comment

by:kempvet
ID: 17067069
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

Featured Post

The top UI technologies you need to be aware of

An important part of the job as a front-end developer is to stay up to date and in contact with new tools, trends and workflows. That’s why you cannot miss this upcoming webinar to explore the latest trends in UI technologies!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Boost your ability to deliver ambitious and competitive web apps by choosing the right JavaScript framework to best suit your project’s needs.
This article discusses how to implement server side field validation and display customized error messages to the client.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question