Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    May 2007
    Location
    Nashville, TN.
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question open image in IFRAME instead of NEW WINDOW from scrolling thumbnails

    Below is a piece of the script for a vertical scrolling slideshow version I am working on. In this version, I want an image "pic3.jpg" to open in an IFRAME instead of in a new window. Coding the Iframe itself is not an issue. Getting the scroller script to put the image in the iframe is another story. ANY IDEAS?
    original coding below (partial)...
    [code]
    <script type="text/javascript">

    myImages=[

    ["pic1.jpg","pic1.jpg","Alt Text"],
    ["pic2.jpg","pic2.jpg","Alt Text"],
    ["pic3.jpg","yourpage.htm","Would like this to open in Iframe"],
    ["pic4.jpg","pic4.jpg","Alt Text"],
    ["pic5.jpg","pic5.jpg","Alt Text"],
    ["pic6.jpg","pic6.jpg","Alt Text"],
    ["pic7.jpg","pic7.jpg","Alt Text"],
    ["pic8.jpg","pic8.jpg","Alt Text"],
    ["pic9.jpg","pic9.jpg","Alt Text"],
    ["pic10.jpg","pic10.jpg","Alt Text"]

    ]

    dir=1 // 0 = up 1 = down
    speed=2
    imageSize=40 // %
    fixedWidth=100 // set a fixed width
    fixedHeight=100 // set a fixed height

    popupLeft= 100 // pixels
    popupTop= 100 // pixels

    biggest=0
    ieBorder=0
    sv3Timer=null

    preload=new Array()
    for(var i=0;i<myImages.length;i++){
    preload[i]=new Image()
    preload[i].src=myImages[i][0]
    }

    function initVS3(){
    scroll1=document.getElementById("scroller1")

  • #2
    Senior Coder
    Join Date
    Aug 2002
    Location
    UK
    Posts
    2,789
    Thanks
    2
    Thanked 14 Times in 14 Posts
    Hello freshair

    Glad you like my script, can you tell me if the iframe is going to be a fixed size?
    The silent one.

    The most dangerous thing in the world is an idea.
    The most dangerous person in the world is the one with an idea.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •