Results 1 to 3 of 3

Thread: DHTML slide show(manual)

  1. #1
    Join Date
    Jun 2005
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default DHTML slide show(manual)

    DHTML slide show(manual)
    http://www.dynamicdrive.com/dynamici...dhtmlslide.htm


    I was wondering how one could modify it so that the pictures would open up(when clicked) in a new window(I tried myself to do so, but didn't manage - I'm lame at js )

    robb

  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

    Change this:
    Code:
    function transport(){
    window.location=photoslink[which]
    }
    to this:
    Code:
    function transport(){
    window.open(photoslink[which],'photoWin','width=300, height=300, top=250, left=250')
    }
    Set the width and height to the maximum for the displayed images plus about 15 for each dimension, top and left to the position on the screen where you want the window to appear.
    - John
    ________________________

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

  3. #3
    Join Date
    Jun 2005
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    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
  •