How To Set Time Limit
<p>I'm trying to add time limit to a Javascript code,</p>

<p>Can you help me for the modification,</p>

<p>Details:
There is a button, mouse will follow this button, what i want to do is mouse will not the button x seconds later.</p>

<p>Here is the code:</p>

<pre><code>&lt;script&gt;
var iflag = 0;
var icontainer = document.getElementById('icontainer');    
var standardbody=(document.compatMode=="CSS1Compat")? document.documentElement : document.body



function mouseFollower(e){
if (window.event)
{ // for IE
    icontainer.style.top = (window.event.y-5)+standardbody.scrollTop+'px';
    icontainer.style.left = (window.event.x-5)+standardbody.scrollLeft+'px';
}
else
{
    icontainer.style.top = (e.pageY-5)+'px';
    icontainer.style.left = (e.pageX-5)+'px';
}

}
document.onmousemove = function(e) {
    if (iflag == 0) {mouseFollower(e);}
}

&lt;/script&gt;   
</code></pre>
