open image in IFRAME instead of NEW WINDOW

This is a discussion on "open image in IFRAME instead of NEW WINDOW" within the JavaScript Forum section. This forum, and the thread "open image in IFRAME instead of NEW WINDOW are both part of the Program Your Website category.



Go Back   Webforumz.com > Main Forums > Program Your Website > JavaScript Forum

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old May 4th, 2007, 18:13
New Member
Join Date: May 2007
Location: Nashville, TN.
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Post 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.
Reply With Quote

Reply

Tags
window, vertical, scroller, jpg, image, iframe

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
how can have iframe links to open in a new window? onSPOT Web Page Design 1 Mar 10th, 2008 07:43
Open another new window from javascript window thehermitage JavaScript Forum 10 Jan 27th, 2008 19:42
Change open in new window to open in same window nsr500rossi JavaScript Forum 2 Jan 18th, 2008 14:13
[SOLVED] open new window from main window AdRock Other Programming Languages 1 Nov 1st, 2007 02:45
Set content for IFRAME in New Window noodlegarage JavaScript Forum 0 Feb 7th, 2007 07:44


All times are GMT. The time now is 23:56.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43