View Full Version : Need help with making photo album

May 23rd, 2007, 03:39 AM
I need a code that when a person clicks on the link that the next picture in a folder will appear next on the page, in some type of order. Im not sure if i would would have to make a new page for each individual picture and link the photo, and link the next page. Out of the 120 pictures I have, this would be a big pain. Some examples of what I am looking for is like the WoW screen shot database but not so complex, just something simple but function about the same way (http://www.blizzard.com/wow/ssotd/screenshot.aspx). is this not possible with html? if not please refer to to something that could make this work. Thanx guys.


May 27th, 2007, 09:40 PM
Blizzard seem to have re-organised their site so your link no longer points anywhere useful. However, I think I see what you want.

Rename your pictures 0.jpg, 1.jpg, 2.jpg, up to 119.jpg and create a web page, Pictures.html, containing the following code:

<img src=0.jpg border=0 onClick="javascript:goNext()">
i = 0;
function goNext() {
i = (i + 1) % 119;
document.images[0].src = i + ".jpg";