Results 1 to 5 of 5

Thread: Slide Show-Presentation

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

    Default Slide Show-Presentation

    Hi! I am using the above slide show on my site. Is there any way to alter the code, so that the hyperlink from the images open in a new window?

    Please help.

    http://realestate-ontario.com/Toronto-Condo-Hotels.htm

    Thanks,

    Coolmate

  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

    Find this function:

    Code:
    function rotatelink(){
    if (droplinks[linkindex]!="")
    window.location=droplinks[linkindex]
    }
    Change it to this:

    Code:
    function rotatelink(){
    if (droplinks[linkindex]!="")
    window.open(droplinks[linkindex])
    }
    - John
    ________________________

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

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

    Default

    Thanks for your help.

    I did the above, but click on the picture still opens the hyperlink in full window and NOT in a new window.

    You can see in the source that I have changed the source code, as per your advise.

    What more needs to be done?

    Cheers,

    Coolmate

  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

    I see now that the function we updated was for older browsers. For modern browsers we need to update these two lines, this (in function movepic()):

    Code:
    tempobj.innerHTML=(droplinks[curimageindex]!="")? '<a href="'+droplinks[curimageindex]+'">'+slideimage+'</a>' : slideimage
    to:

    Code:
    tempobj.innerHTML=(droplinks[curimageindex]!="")? '<a href="'+droplinks[curimageindex]+'" target="_blank">'+slideimage+'</a>' : slideimage
    and (in function startit()):

    Code:
    crossobj.innerHTML='<a href="'+droplinks[curimageindex]+'"><img src="'+dropimages[curimageindex]+'" border=0></a>'
    to:

    Code:
    crossobj.innerHTML='<a href="'+droplinks[curimageindex]+'" target="_blank"><img src="'+dropimages[curimageindex]+'" border=0></a>'
    - John
    ________________________

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

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

    Default

    Thanks very much, It worked. Appreciate your help.


    coolmate

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
  •