...

View Full Version : open image in IFRAME instead of NEW WINDOW from scrolling thumbnails



freshair
05-06-2007, 01:40 PM
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")

Mr J
05-06-2007, 07:52 PM
Hello freshair

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



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum