ycc
Dec 17th 2008, 4:42 am
Hello,
I am trying to slide a layer using Javascript.
Moving the layer by changing the layer.style property will move the layer in one jump. However, when I try to move the layer GRADUALLY, through a Javascript FOR-loop the layer does not move gradually.
I have introduced delay in the loop. However, when the page executes the execution will be delayed BEFORE the layer starts moving and finally, after the delay, the layer jumps, in one step, to its final location. (It does not slide gradually.)
Having done most of my programming in the 1980's I would say "The graphics buffer is not flushed continuously."
What can one do to slide the layer gradually?
I am a beginner here and I apologize if the code I produce is unclear and redundant. I have mostly copied it from free sources as acknowledged.
You can try it out here, I have tried to make the page short:
http://web.telia.com/~u17103363/doc/tst_01.htm
Thanks
ycc
I am on a trip and can only follow the forum at irregular intervals, but I will definitely read all replies very carefully in due course. Thanks :)
I am trying to slide a layer using Javascript.
Moving the layer by changing the layer.style property will move the layer in one jump. However, when I try to move the layer GRADUALLY, through a Javascript FOR-loop the layer does not move gradually.
I have introduced delay in the loop. However, when the page executes the execution will be delayed BEFORE the layer starts moving and finally, after the delay, the layer jumps, in one step, to its final location. (It does not slide gradually.)
Having done most of my programming in the 1980's I would say "The graphics buffer is not flushed continuously."
What can one do to slide the layer gradually?
I am a beginner here and I apologize if the code I produce is unclear and redundant. I have mostly copied it from free sources as acknowledged.
You can try it out here, I have tried to make the page short:
http://web.telia.com/~u17103363/doc/tst_01.htm
Thanks
ycc
I am on a trip and can only follow the forum at irregular intervals, but I will definitely read all replies very carefully in due course. Thanks :)