Moh
02-01-2008, 12:51 AM
Is there any way I can make a javascript function go through all the images in a directory? Or through images which are listed?
I could use
var image = '1'
function ChangeBG1()
{
image = image+1;
}So it goes threw files called 1,2,3,4,5 but once it reaches the end it won't go back to 1.
Thanks.
Edit: Its to change the background of a div when you click something :p
Moved by Agesilaus (Forum Moderator) from Design & Development: Please post in the correct forum next time. :)
I could use
var image = '1'
function ChangeBG1()
{
image = image+1;
}So it goes threw files called 1,2,3,4,5 but once it reaches the end it won't go back to 1.
Thanks.
Edit: Its to change the background of a div when you click something :p
Moved by Agesilaus (Forum Moderator) from Design & Development: Please post in the correct forum next time. :)