PDA

View Full Version : coding image rotation


carol
08-13-2003, 10:50 AM
Hi i was wondering if anyone could help me with advice on this problem

What i am trying to acheive is i have five images

I want the first to load with the webpage
then every 20 seconds i want that image to change to another one.
After all 5 have been displayed i want the last image to stay for one minute
Then i want the whole sequence to start again

Would anyone know any links that would help me to work out how to create this.
I am assuming i will need some sort of timer (but i am not sure of the name of the timer function in asp)

Thanks
Carol

Danne
08-13-2003, 03:56 PM
In javascript you can use setTimeout or setInterval.

var timer = setTimeout('changeImageSrc();', 20000);

Roy Sinclair
08-13-2003, 03:56 PM
What you want to do is called a slideshow.

http://www.codingforums.com/search.php?s=&action=showresults&searchid=155573&sortby=lastpost&sortorder=descending

The link will list a huge number of threads on all sorts of slideshows and various things people wanted them to do. You will also find some links to various slideshow scripts which are already written so you can find one which will suit your needs.

carol
08-14-2003, 02:26 AM
Thanks for the link and the timeout code

I have found heaps there that i should be able to convert to fit the problem i have

I had origanally thought of a slideshow but was thinking on the lines or flash mx and desided i didn't want to use this option incase users didn't have a flash player and started looking for image rotation not realizing it was still classed as a slide show.

So thanks for your help it is greatly appreciated:)

Cheers Carol