Results 1 to 3 of 3

Thread: Image Thumbnail Viewer II new window

  1. #1
    Join Date
    Jan 2006
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Image Thumbnail Viewer II new window

    1) Image Thumbnail Viewer II

    2) http://www.dynamicdrive.com/dynamici...thumbnail2.htm

    3) Hi i know this solution has been touched on before, i'm not sure if the script has changed since solution has been posted.
    Basically i just want to open all links from the thumbnail in a new window i.e target="_blank". I have seen the solutions posted before but i am not sure where to insert the line var optlinktarget="_blank" . Does this need to be within the thubnailviwer2.js script itself or within the html which calls it?

    Basically any more detailed instructions would be great, as i seem to be missing the point completely!

    Thank u

  2. #2
    Join Date
    Jul 2006
    Location
    just north of Boston, MA
    Posts
    1,806
    Thanks
    13
    Thanked 72 Times in 72 Posts

    Default

    if you want to open in a new window you do not need a script at all, instead use
    HTML Code:
    <a href="picture" [COLOR="Blue"]target="_blank"[/COLOR]>Link</a>

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

    Default

    I assume you mean get the link inside the enlarged image (that's actually linked to a web site) to open in a new window. Inside the .js file, just add the changes in red:

    Code:
    imageHTML='<a href="'+dest+'" target="_new">'+imageHTML+'</a>'

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
  •