Click to See Complete Forum and Search --> : rollover pictures and wait function


nonsparker
02-12-2003, 04:14 PM
is there any way that i can make pictures that pop up when people mouseover somethign pop up after a certin amount of time? just in case the user does not mouseover the right area the site is http://ajcook.open-creations.com/clc/Mission_Vision.html

AdamBrill
02-12-2003, 07:48 PM
Try something like this:

<script language=javascript>
function change()
{
alert("RAN!");
}
function mouseon()
{
timer = setTimeout("change()",1000);
}
function mouseoff()
{
window.clearTimeout(timer);
}
</script>


Then, the link should look like this:

<a href="http://www.whatever.com" onmouseover="mouseon();" onmouseout="mouseoff();" >The Link</a>

That will wait one second. Hope that helps...