Image Slide Show
Posted on 2004-11-04
im looking for a function that i can pass an array to that will aloow me to skip through images.
I need to be able to pass any number of images in my array.
The function must then step through each of the values and replace an image on my site (this has an id of "graph").
It must also update a hidden form var.
At the moment i have this script that will chage the image and hidden var this may be of use, i dont know.
hiddenObj = document.getElementById('stock');
hiddenObj.value = stock;
imgObj = document.getElementById('stock_graph');
imgObj.src = "graphs/" + stock + ".gif";
One other issue is that these graphs are not loaded, so the script will need to load the image before the change.
I also need the abilty to pause and go back and forward using buttons.
I need this to work in Win IE 6, firefox, Safari.
An example of the array i would like to pass is below.
is this possible or would i have to change the link to somehting like
and let the function use the @ as a record seperator.