Results 1 to 3 of 3

Thread: DHTML Slideshow Script & Links

  1. #1
    Join Date
    Jan 2006
    Location
    Kyabram, Victoria. Australia
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default DHTML Slideshow Script & Links


    I am currently creating a photo gallery for my website (unfortunately isn't available on the web as yet) and a few of the pictures are using iframe linked back to a file containing the dhtml slideshow script. So I can have more than one slide show playing on the same page at once, it works rather well.

    Now the problem is I cannot get the script to load a new (_blank) page that contains the full size picture, I can get it to open inside the iframe, and I can get it to open a new window but no picture appears. using the below.

    <td height="150" colspan="3" valign="top">
    <script>
    if (linkornot==1)
    document.write('<a href="javascript:transport()" target="_blank">')
    document.write('<img src="'+photos[0]+'" name="photoslider" style="filter:revealTrans(duration=2,transition=23)" border=0 >')
    if (linkornot==1)
    document.write('</a>')
    </script></td>
    </tr>

    Can anyone please point me in the right direction, I really prefer to use this script as it allows me to have previous and next buttons with ease.


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

    Default

    Warning: Please include a link to the DD script in question in your post. See this thread for the proper posting format for asking a question.

    I'll have to guess which script you're referring to on DD, as you didn't post a link. Assuming it's DHTML Slideshow, you can get the links to open in a new window by changing the function:

    Code:
    function transport(){
    window.location=photoslink[which]
    }
    to:

    Code:
    function transport(){
    window.open(photoslink[which])
    }

  3. #3
    Join Date
    Jan 2006
    Location
    Kyabram, Victoria. Australia
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Yes it was DHTML Slideshow, sorry I said it but didn't link it.
    Thank you, that has solved my issue.

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
  •