Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Simple Picture Album/Viewer

Status
Not open for further replies.

BLarche

Programmer
Joined
Nov 29, 2004
Messages
25
Location
US
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.
 
This is from one of those free sites that puts all sorts of advertising on the page, but feel free to copy the Javascript code from this page and modify it as you need.


Lee
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top