
May 4th, 2007, 18:13
|
|
New Member
|
|
Join Date: May 2007
Location: Nashville, TN.
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
open image in IFRAME instead of NEW WINDOW
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?
 I've tried linking iframes, putting the scroller in one iframe, but that isn't working any better in this case to get an image to show in another iframe from the vertical scroller coding. I guess, I need help with coding below. I put back the original code so you can see where I am coming from. (this is partial, but the part in question).
- Code: Select all
<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")
Many thanks for your eyes and opinion!
Last edited by freshair; May 4th, 2007 at 20:58.
|