Re: Need simple delay loop
by "Dusty" <designsbydusty(at)tiadon.com>
|
| Date: |
Sat, 17 Aug 2002 16:39:46 -0500 |
| To: |
<john(at)woram.com>, <hwg-techniques(at)hwg.org> |
| References: |
woram |
| |
todo: View
Thread,
Original
|
|
> If this function is called, the image instantly leaps from its present
> position to a new position at 500 pixels (left edge of image), as if
> the "for" counter wasn't even there. I would like the image to move
> *slowly* across the page. I figured a setTimeout() or maybe a
> setInterval() would do the job, but still can't figure out how to get
> it to work.
Here's a link that is a tutorial on just this issue:
http://www.the-cool-place.co.uk/javascript/tutorial/javascript2.html
There are several "examples" on the tutorial web page. Search for
the one toward the end of the page titled "try this out".
Good Luck!
HWG hwg-techniques mailing list archives,
maintained by Webmasters @ IWA
This page is part of a preserved archive of archives.hwg.org. The site is no longer active and its content is not maintained. For enquiries about this archive, write to archive(at)iwanet.org.