Results 1 to 5 of 5

Thread: Help with Photo Album script v2.0

  1. #1
    Join Date
    Apr 2009
    Posts
    3
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Help with 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:
    Can somebody help me? I am trying to put this script on a page. The pictures are perfectly positioned, but for some reason it is not generationg the pagination div. So I cannot view more than one set of photos. Does somebody know whats wrong and how to fix it?

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Perhaps you only have enough images for one 'page'. But it could be any number of things. The easiest way for us to tell would be to have a look:

    Please post a link to the page on your site that contains the problematic code so we can check it out.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. #3
    Join Date
    Apr 2009
    Posts
    3
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    I was finishing the site up before i posted it online.
    But since I am really trying to get this done, I put the unfinished site on the internet for now.

    the page is www.kvlandscapeatoz.com/album.html

    As you can see from the src, I have four images that i am trying to display in a 1x2 fashion. So in theory, there should be two pages

    Note that this site is still quite a ways from being done.

    thank you for your help.
    Last edited by DannyV; 04-24-2009 at 07:07 PM. Reason: I left out some information that I felt was important.

  4. #4
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Your table is too high. Ordinarily that would just place the pagination links down lower. But something else on your page, perhaps the height of the table's container element is preventing them from being seen.

    Try 300 instead of 600 (change highlighted and red):

    Code:
    <script type="text/javascript">
    
    //Define your own array to hold the photo album images
    //Syntax: ["path_to_thumbnail", "opt_image_title", "opt_destinationurl", "opt_linktarget"]
    
    var myvacation=new Array()
    myvacation[0]=["bna1asmall.jpg", "Before", "bna1a.jpg"]
    myvacation[1]=["bna1bsmall.jpg", "After", "bna1b.jpg"]
    myvacation[2]=["bna2asmall.jpg", "Before", "bna2a.jpg"]
    myvacation[3]=["bna2bsmall.jpg", "After", "bna2b.jpg"]
    
    //initiate a photo gallery
    //Syntax: new photogallery(imagearray, cols, rows, tablewidth, tableheight, opt_[paginatetext_prefix, paginatetext_linkprefix])
    var thepics=new photogallery(myvacation, 2, 1, '700px', '300px')
    
    //OPTIONAL: Run custom code when an image is clicked on, via "onselectphoto"
    //DELETE everything below to disable
    //Syntax: function(img, link){}, whereby img points to the image object of the image, and link, its link object, if defined
    thepics.onselectphoto=function(img, link){
    if (link!=null) //if this image is hyperlinked
    window.open(link.href, "", "width=650, height=500, status=1, resizable=1")
    return false //cancel default action when clicking on image, by returning false instead of true
    }
    
    </script>
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  5. The Following User Says Thank You to jscheuer1 For This Useful Post:

    DannyV (04-24-2009)

  6. #5
    Join Date
    Apr 2009
    Posts
    3
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    Thank you very much that seems to work perfectly.

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
  •