I want to generate a JavaScript picture viewer that will allow the user to click to next or previous icon and show the next or previous picture in place of the default picture. You can get a general idea of what I am referring to here:
http://www.cnn.com/2007/POLITICS/02/08/cia.leak/index.html
Instead of having it stop at the third picture, I want it to loop back to the first picture when the user clicks next. The picture IDs are being generated from a DB and needs to be flexible to accomidate from as few as 2 pictures to as many as infinity.
In addition, I want to be able to change the "alt" property of the image, as well as the caption that resides below the image in another cell. You can view my page here:
http://www.emp-corp.com/contact/press/showArticle1.asp?newsID=60
Thanks for any help you may provide.
http://www.cnn.com/2007/POLITICS/02/08/cia.leak/index.html
Instead of having it stop at the third picture, I want it to loop back to the first picture when the user clicks next. The picture IDs are being generated from a DB and needs to be flexible to accomidate from as few as 2 pictures to as many as infinity.
In addition, I want to be able to change the "alt" property of the image, as well as the caption that resides below the image in another cell. You can view my page here:
http://www.emp-corp.com/contact/press/showArticle1.asp?newsID=60
Thanks for any help you may provide.