Subj : JavaScript style changes
To : netscape.public.mozilla.jseng
From : scarp
Date : Wed Mar 23 2005 10:26 am
Hello,
I have a problem with Mozilla's and Moz Firefox's JavaScript Engine.
There is a function on my Website, which moves a
pixel by pixel
(this_div.style.left = old_position+1+"px";). It calls itself recursive
by the window.setTimeout() method (1ms timeout). On all other browsers
(IE, Netscape, Opera) this thing works fine, but Mozilla lets this
move so slow, that you really might waste your time, if you visit the
page...
So where's the problem and how can I fix it? I also tried the
window.setInterval() method, but it's really the same result. If you use
while{ }, then the
doesn't "move", it rather is on the endposition
from the beginning.
Can anybody help me?
.