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.
What Netscape version is that? Netscape 6 and 7 are offsprings from the
Mozilla browser project so there shouldn't be much of a difference
between Netscape 7.2 and Mozilla 1.7 for instance or Firefox 1.0.
As for the timeout value, such a short timeout can not be followed, use
25 or even 50ms as that is closer to the interval the OS dependant
timing mechanism needed to implement setTimeout provides.
Also could you post a URL to a test case where the problem occurs?
--
Martin Honnen
http://JavaScript.FAQTs.com/
.