Simple yes/no answer. javaScript delayed actions?

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Simple yes/no answer. javaScript delayed actions?

Post 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
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

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

Post 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.
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post 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...... :?
Post Reply