Results 1 to 3 of 3

Thread: DHTML Slide Show in specific popups

  1. #1
    Join Date
    Jul 2005
    Posts
    67
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Question DHTML Slide Show in specific popups

    DHTML Slide Show Script
    http://www.dynamicdrive.com/dynamici...dhtmlslide.htm

    Hello, I was wondering how to link each of my images to specific width/height popups as each large image is different in size.

    Is this possible?

    This is an amazing scrip by the way.

    Thanks,
    Martin

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

    Default

    Sure. First, replace array photolink[] with:

    Code:
     
    //Set corresponding URLs for above images. Define ONLY if variable linkornot equals "1"
    photoslink[0]=["http://google.com", 500, 400] //pop up window
    photoslink[1]=["http://yahoo.com"]
    photoslink[2]=[""]
    Then, replace function transport() with:

    Code:
     
    function transport(){
    if (typeof photoslink[which][1]!="undefined")
    window.open(photoslink[which][0], "", "width="+photoslink[which][1]+", height="+photoslink[which][2]+'"')
    else
    window.location=photoslink[which][0]
    }
    Here the first link ("google.com") will load in a controlled popup window.

  3. #3
    Join Date
    Jul 2005
    Posts
    67
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Default

    Thank you very much...its perfect!
    Much appreciated.

    Martin

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
  •