PDA

View Full Version : Strange but true: Timeouts and Intervals


Brian Nickel
12.06.2001, 17:19
I discovered something strange when I was looking at some scripts of mine, timeouts and intervals go faster when you move your cursor more. It sounds crazy, but I swear its true.

ScriptGuru={
getName:function(){return 'Brian Nickel';},
getEmail:function(){return '[url:fgwe8kp7xx]scriptguru@f2s.com[/url:fgwe8kp7xx]';},
getURL:function(){return '[url:fgwe8kp7xx]http://www.scriptguru.f2s.com[/url:fgwe8kp7xx]';}
};

Dan
12.06.2001, 17:46
Hadn't noticed that one. I have noticed that 10ms in IE is differerent from 10ms in Netscape (even when Netscape isn't stuttering along at 1 frame a second <img src=icon_smile_sad.gif border=0 align=middle>).

<font face='Tahoma'>-------------------------
Dan
www.pupius.net
-------------------------</font id='Tahoma'>

Xanth
12.06.2001, 20:12
Yeah I have noticed that as well.. I always thought it was weird too.. It doesn't always happen but it does sometimes.

<font color=teal>xanth = createElement("person");
xanth.setAttribute("name", "Mike");
xanth.setAttribute("mail", "[url:uti15b6q5m]belgedin@earthlink.net[/url:uti15b6q5m]");
xanth.setAttribute("age", 16)
document.forum.appendChild(xanth);
</font id=teal>

Edited by - Xanth on 06/12/2001 19:13:02