Page 1 of 1

Simple yes/no answer. javaScript delayed actions?

Posted: Thu Sep 02, 2004 8:20 pm
by Chris Corbyn
Hi,

Is it possible to write JavaScript so that actions can be automatically carried out at delayed intervals. For example, once a user clicks a "Go" button an image switches sources to a new image every ten seconds (like a slideshow) or a beep is sounded every minute a user takes an online quiz.

I also wondered if there was anything you can do with JavaScript that would make in image fade into view on rollover but I don't want to use Flash to acheive it. Unless I could just create an animated gif with one loop that fades in :idea:

Kind regards,

Chris

Re: Simple yes/no answer. javaScript delayed actions?

Posted: Thu Sep 02, 2004 8:23 pm
by feyd
d11wtq wrote:Is it possible to write JavaScript so that actions can be automatically carried out at delayed intervals. For example, once a user clicks a "Go" button an image switches sources to a new image every ten seconds (like a slideshow) or a beep is sounded every minute a user takes an online quiz.
It can be done.
I also wondered if there was anything you can do with JavaScript that would make in image fade into view on rollover but I don't want to use Flash to acheive it. Unless I could just create an animated gif with one loop that fades in :idea:
It's possible.

Posted: Thu Sep 02, 2004 8:34 pm
by Chris Corbyn
Thanks I'll have a play with it tomorrow. I was planning on combining the two ideas of delaying image loading and making them fade in (a bunch of screenshots) to get a nice effect without using flash.

I've got a javascript text book but all it talks about is form validation and boring stuff like that.

Probably should get some sleep now...... :?