Results 1 to 4 of 4

Thread: Linking slideshow pics to new window

  1. #1
    Join Date
    Sep 2005
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Linking slideshow pics to new window

    Looking to have the target site open up in a new window using the slideshow, any help please?

  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

    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.
    PLEASE: Include the URL to your problematic webpage that you want help with.
    - John
    ________________________

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

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

    Default

    <script language="JavaScript1.2">

    /***********************************************
    * Flexi Slideshow- © Dynamic Drive (www.dynamicdrive.com)
    * This notice must stay intact for use
    * Visit http://www.dynamicdrive.com/ for full source code
    ***********************************************/

    var variableslide=new Array()

    //variableslide[x]=["path to image", "OPTIONAL link for image" TARGET="_blank", "OPTIONAL text description (supports HTML tags)"]

    variableslide[0]=['images/homecoming_golf_tournament.jpg', 'http://store.appcomm.net/Merchant2/merchant.mv?Screen=PROD&Store_Code=cusports&Product_Code=HGT&Category_Code=HGT', '']
    variableslide[1]=['images/Microtel_Ad.jpg', 'http://www.microtelinn.com', '']
    variableslide[2]=['images/pep_band.jpg', '', '']
    variableslide[3]=['images/sponsor_ads/3dollaroffbanner.jpg', 'http://www.gocamels.com/Sam_Goody_Coupon.htm', '']
    variableslide[4]=['images/store_banner.jpg', 'http://store.appcomm.net/Merchant2/merchant.mv?Screen=SFNT&Store_Code=cusports', '']
    variableslide[5]=['images/Hiester_Banner_Ad.jpg', 'http://www.hiesterautomotive.com', '']

    //configure the below 3 variables to set the dimension/background color of the slideshow

    var slidewidth='600px' //set to width of LARGEST image in your slideshow
    var slideheight='75px' //set to height of LARGEST iamge in your slideshow, plus any text description
    var slidebgcolor='#FFFFFF'

    //configure the below variable to determine the delay between image rotations (in miliseconds)
    var slidedelay=5000

    ////Do not edit pass this line////////////////

    var ie=document.all
    var dom=document.getElementById

    for (i=0;i<variableslide.length;i++){
    var cacheimage=new Image()
    cacheimage.src=variableslide[i][0]
    }

    var currentslide=0

    function rotateimages(){
    contentcontainer='<center>'
    if (variableslide[currentslide][1]!="")
    contentcontainer+='<a href="'+variableslide[currentslide][1]+'">'
    contentcontainer+='<img src="'+variableslide[currentslide][0]+'" border="0" vspace="3">'
    if (variableslide[currentslide][1]!="")
    contentcontainer+='</a>'
    contentcontainer+='</center>'
    if (variableslide[currentslide][2]!="")
    contentcontainer+=variableslide[currentslide][2]

    if (document.layers){
    crossrotateobj.document.write(contentcontainer)
    crossrotateobj.document.close()
    }
    else if (ie||dom)
    crossrotateobj.innerHTML=contentcontainer
    if (currentslide==variableslide.length-1) currentslide=0
    else currentslide++
    setTimeout("rotateimages()",slidedelay)
    }

    if (ie||dom)
    document.write('<div id="slidedom" style="width:'+slidewidth+';height:'+slideheight+'; background-color:'+slidebgcolor+'"></div>')

    function start_slider(){
    crossrotateobj=dom? document.getElementById("slidedom") : ie? document.all.slidedom : document.slidensmain.document.slidenssub
    if (document.layers)
    document.slidensmain.visibility="show"
    rotateimages()
    }

    if (ie||dom)
    start_slider()
    else if (document.layers)
    window.onload=start_slider

    </script>


    sorry

    www.gocamels.com

  4. #4
    Join Date
    Oct 2005
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    for anyone else looking for this answer ...

    search for and change this line
    contentcontainer+='<a href="'+variableslide[currentslide][1]+'">'

    to this
    contentcontainer+='<a href="'+variableslide[currentslide][1]+'"target="_blank">'

    kind regards, John

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
  •