Forum Moderators: phranque

Message Too Old, No Replies

Slideshow question

interpage slideshows

         

jonwald

2:30 pm on Apr 15, 2005 (gmt 0)

10+ Year Member



Hi y'all, this is my situation. On one page I have a slideshow of images. On another page I have information about those images. (I'd like to keep these pages separate for design reasons.) Is it possible to click a link on the first page, and by doing so change both the image on that page and the text on the other page?

Thanks,

Jonathan

in case it's needed, this is my basic slideshow script:

<SCRIPT LANGUAGE="JavaScript">

var num=1
img1 = new Image ()
img1.src = "images/noises-small-1.jpg"
img2 = new Image ()
img2.src = "images/noises-small-2.jpg"
img3 = new Image ()
img3.src = "images/noises-small-3.jpg"
img4 = new Image ()
img4.src = "images/Noises-Small-4.jpg"

text1 = "Text for Picture One"
text2 = "Text for Picture Two"
text3 = "Text for Picture Three"
text4 = "Text for Picture Four"

function slideshowUp()
{
num=num+1
if (num==5)
{num=1}
document["theatrestill"].src=eval("img"+num+".src")
document.jon.wald.value=eval("text"+num)
}

function slideshowBack()
{
num=num-1
if (num==0)
{num=4}
document["theatrestill"].src=eval("img"+num+".src")
document.jon.wald.program.value=eval("text"+num)
}

</SCRIPT>