iamtibo
07-17-2008, 08:30 PM
Hi.
I'm working on how to animate a div element through a page.
the example is on this page.
http://iamtibo.com/pleasant/
You can see the square mooving on top of the screen.
What I'm looking for is use javascript to calculate the width of the screen.
And as soon as the square will pass the end of the screen it will disappear and reappear at the origin point..
anyone can help..
You can check the source code to see what I did.
Thanks
I'm working on how to animate a div element through a page.
the example is on this page.
http://iamtibo.com/pleasant/
You can see the square mooving on top of the screen.
What I'm looking for is use javascript to calculate the width of the screen.
And as soon as the square will pass the end of the screen it will disappear and reappear at the origin point..
anyone can help..
You can check the source code to see what I did.
Thanks