Results 1 to 3 of 3

Thread: Photo Album script v2.0

  1. #1
    Join Date
    Aug 2007
    Posts
    28
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Photo Album script v2.0

    1) Script Title: Photo Album script v2.0

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...photoalbum.htm

    3) Describe problem:

    I would like to get this script to work in reverse by showing the last image from the array first and working it's way up the array list.

    Can anyone help me, I'd apreciate it very much.

  2. #2
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    Sure, just add the below line in red to your images array:

    Code:
    var myvacation=new Array()
    myvacation[0]=["../photo1.jpg", "", "photo1-large.jpg"]
    myvacation[1]=["photo2.jpg", "Our car", ""]
    myvacation[2]=["photo3.jpg", "Our dog", "photo3-large.jpg"]
    myvacation[3]=["photo4.jpg", "Our hotel", "http://www.gohawaii.com/"]
    myvacation[4]=["photo5.jpg", "Our Computer", "http://www.google.com", "_new"]
    myvacation[5]=["photo6.jpg", "Our house", "photo6-large.jpg"]
    myvacation[6]=["photo7.jpg", "Our Friends", "http://www.ask.com"]
    
    myvacation.reverse()
    This reverses the contents of the array before passing it into the script.

  3. #3
    Join Date
    Aug 2007
    Posts
    28
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    That worked

    Thank You

Bookmarks

Posting Permissions

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