Web Analytics Made Easy -
StatCounter How to create a "target=_blank" link in Drop-in Slideshow Script II (hyperlinked) - CodingForum

Announcement

Collapse
No announcement yet.

How to create a "target=_blank" link in Drop-in Slideshow Script II (hyperlinked)

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • How to create a "target=_blank" link in Drop-in Slideshow Script II (hyperlinked)

    Hi,

    I'd like to use the Dynamic Drive Drop-in Slideshow Script II (hyperlinked) in a top-frame.
    How can I open the linked Site in a new window (target="_blank") ?

    Thank You

  • #2
    here's what I learnt... but still seeking answers myself..

    leftrightslide[0]='<a href="http://www.padi.com" target="_blank"><img src="images/walterhead3.jpg" border=0></a>'
    leftrightslide[1]='<a href="http://www.cnn.com" target="_blank"><img src="images/tamihead.jpg" border=0></a>'

    Hi.. I struggled with this too... until someone told me where to put the code within the script...
    It goes after the page you want to go to ...and before the image that sends them there....


    Unfortunately, I wanted to make a customised pop-up window... without any navigation menus etc... and although I have found scripts to do this... and they work on their own.. haven't found out yet how to put it inside the conveyor script... am hoping that my latest email to John & George will supply the answer... (Or anybody out there - SOMEONE MUST KNOW!!)

    Anyway.. hope this helps ... It sure has kept me busy for the last 4 weeks!!
    cheers.. Jayne
    Jayne SCOTT-ANDREWS

    Comment


    • #3
      Sorry Jayne,

      there must be a misunderstanding ...
      I`d like to use the target=_"blank" with the Drop-in Slideshow Script II (hyperlinked)

      Comment


      • #4
        No worries...

        just got hold of the wrong end of the stick...

        ... Again !!

        Sorry I couldn't help ...
        Jayne
        Jayne SCOTT-ANDREWS

        Comment


        • #5
          Thank You

          Comment


          • #6
            I think I have the solution if you want ALL links of this slideshow to open in new windows. If you only want specific images to open in new windows...then I do NOT have the answer for you (couldn't get that to work).

            Find and adjust the following lines of code (add the bold):

            function movepic(){
            if (curpos<0){
            curpos=Math.min(curpos+degree,0)
            tempobj.style.top=curpos
            }
            else{
            clearInterval(dropslide)
            nextcanvas=(curcanvas=="canvas0")? "canvas0" : "canvas1"
            tempobj=ie4? eval("document.all."+nextcanvas) : document.getElementById(nextcanvas)
            tempobj.innerHTML='<a href="'+droplinks[curimageindex]+'" target=_blank><img src="'+dropimages[curimageindex]+'" border=0></a>'
            nextimageindex=(nextimageindex<dropimages.length-1)? nextimageindex+1 : 0
            setTimeout("rotateimage()",pause)
            }
            }


            AND

            function startit(){
            var crossobj=ie4? eval("document.all."+curcanvas) : document.getElementById(curcanvas)
            crossobj.innerHTML='<a href="'+droplinks[curimageindex]+'" target=_blank><img src="'+dropimages[curimageindex]+'" border=0></a>'
            rotateimage()
            }


            Hope that helps.
            Gordo
            "In the End, we will remember not the words of our enemies, but the silence of our friends."
            - Martin Luther King Jr. (1929-1968)

            Comment


            • #7
              Hi Gordo

              Thanks a lot

              It really works !!
              It's fantastic - thanks a lot again
              have a nice day, bye

              Comment

              Working...
              X