Click to See Complete Forum and Search --> : how it works?...(delay)


atilla selem
January 31st, 2003, 01:22 AM
hi,
this seems an easy question in windows programming
but since i'm a newbie in web pro, it became a must to ask it,
How Sleep(seconds)...is coded in JavaScript...
i wanna put my delay in a function while it puts some images one by one but with some delay...

so which class should i use in JavaScript?
i tried a few times but it says "error on Page"....
coding was wrong i think...

thx a lot,,,

vickers_bits
February 5th, 2003, 03:41 AM
you can delay a call to a function using
setTimeout("myFunction();",1000)
1st parameter is the function name
2nd parameter is delay time in ms (1000=1 sec)