Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    May 2007
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Need help with making photo album

    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.

    -Matt

  • #2
    Regular Coder
    Join Date
    May 2007
    Location
    UK
    Posts
    180
    Thanks
    0
    Thanked 18 Times in 18 Posts
    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:

    Code:
    <html><head><title>Pictures</title></head><body>
    <img src=0.jpg border=0 onClick="javascript:goNext()">
    <script>
    i = 0;
    function goNext() {
    	i = (i + 1) % 119;
    	document.images[0].src = i + ".jpg";
    }
    </script></body></html>


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •