Printer Friendly Version Print this thread
Email this thread to a friend eMail this thread to a friend
Featured Web Site Template

Hundreds More at Free Site Templates.com!

Web Site Partners
Sponsored Links
Jet City Software
 
Whos Here ?
There are 0 guests and 1 members in the forums right now.
Reflects user activity within the last 5 minutes
Moderator(s): Prowler, jcokos
Member Message

scjvs
Joined: Mar 30, 2005
# Posts: 7

View the profile for scjvs Send scjvs a private message

Posted: 2005-Mar-30 23:10
Edit Message Delete Message Reply to this message

Hello there

I was wondering if anyone would know a good deal about
targeting IFRAMES.

What I'm trying to do is get three IFRAMES to work together
on one webpage. I have two frames up and running on my webpage
(please don't ask me for the website address not on ftp server yet)
they're not javascript iframes, and all I want is the third iframe to
target the second iframe.

So far I have Frame 1 that has links in it (which showed up automatically)
and those links go and target the second frame.

What I'm trying to do is have information in the third IFRAME show up
automatically as well just like the first IFRAME. And the links on the
third IFRAME target the second IFRAME.

BASICALLY ALL I WANT IS FOR TWO IFRAMES TO TARGET THE THIRD IFRAME BUT THE
FRAMES ARE NOT TOGETHER, THEY'RE IN DIFFERENT TABLES, WHICH IS HOW I HAVE
THEM SET UP.

I hope this message was thorough enough for anyone who reads this a good
idea of what I'm trying to do. Also I appologize in advanced for the reader
who had to read this message. smile






scjvs
Joined: Mar 30, 2005
# Posts: 7

View the profile for scjvs Send scjvs a private message

Posted: 2005-Mar-31 20:16
Edit Message Delete Message Reply to this message

never mind I figured it out just now. I'm so happy smile.

I was aggrivated for the past day and a half trying to
figure it out what I was doing wrong but now I know.
thanks any way. I will post my code up for any one who
would like to use my code for their website. I hope
it helps anyone who uses it.

As far as I know I'm just happy just to get the code to work.
VICTORY WAS SWEET TODAY



scjvs
Joined: Mar 30, 2005
# Posts: 7

View the profile for scjvs Send scjvs a private message

Posted: 2005-Mar-31 20:37
Edit Message Delete Message Reply to this message

Remember I was trying to figure out how to get 1 frame, just 1 to be the main target by two other frames. Well,
I couldnt figure out how to make two frames target one frame
for ex: frame1 and frame3 targets frame 2....

The result would be whatever links there was in frame1 and
frame3, information is put into frame2.

But instead i made links on my webpage itself
(not in frames) and had links made in a frame to show up in
frame 1.

For ex: frame1 is targeted by two links and frame2's links target frame1.


I know i know less talk, more code. Well here it is...


<!----HERE IS THE CODE I USED FOR A FRAME IN MY
INDEX.HTML PAGE---->


<html>

<head>
<title> Super sample 2 </title>

</head>


<body>


<a HREF="example01.html" TARGET="myiframe3">LINK 1</a>
<a HREF="example02.html" TARGET="myiframe3">LINK 2</a>
<br><br>

<iframe SRC="example01.html" NAME="myiframe3">
info for non-compatible browsers go here
</iframe>


<!----THIS WHOLE THING IS A FRAME---->


<center><IFRAME SRC="fr3.html" TARGET="myifame3" FRAMEBORDER="1" WIDTH= "83%" HEIGHT= "450" SCROLLING= "no" NAME="up"></IFRAME></center>


<!----END OF FRAME---->


</body>
</html>


<!----HERE IS THE CODE I USED ON ANOTHER WEBPAGE---->

<html>

<head> <title>

SCJVS CONVEYOR BELT FRAME

</title>


</head>


<body>

<!----CONVEYOR BELT SLIDESHOW---->


<center><script type="text/javascript">

/***********************************************
* Conveyor belt slideshow script- © Dynamic Drive DHTML code library (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at [link] for full source code
***********************************************/


//Specify the slider's width (in pixels)
var sliderwidth="290px"
//Specify the slider's height
var sliderheight="280px"
//Specify the slider's slide speed (larger is faster 1-10)
var slidespeed=3
//configure background color:
slidebgcolor="black"

//Specify the slider's images
var leftrightslide=new Array()
var finalslide=''
leftrightslide[0]='<a href="http://"><img src="pics/green intro.bmp" border=1></a>'
leftrightslide[1]='<a href="votech calendar.html" TARGET="myiframe3"><img src="pics/computer circuit.jpg" border=1></a>'
leftrightslide[2]='<a href="http://"><img src="pics/tp1.bmp" border=1></a>'
leftrightslide[3]='<a href="http://"><img src="pics/tp2.bmp" border=1></a>'
leftrightslide[4]='<a href="http://"<img src="pics/orangeyellow.jpg" border=1></a>'

//Specify gap between each image (use HTML):
var imagegap=" "

//Specify pixels gap between each slideshow rotation (use integer):
var slideshowgap=5


////NO NEED TO EDIT BELOW THIS LINE////////////

var copyspeed=slidespeed
leftrightslide='<nobr>'+leftrightslide.join(imagegap)+'</nobr>'
var iedom=document.alldocument.getElementById
if (iedom)
document.write('<span id="temp" style="visibility:hidden;position:absolute;top:-100px;left:-9000px">'+leftrightslide+'</span>')
var actualwidth=''
var cross_slide, ns_slide

function fillup(){
if (iedom){
cross_slide=document.getElementById? document.getElementById("test2"wink : document.all.test2
cross_slide2=document.getElementById? document.getElementById("test3"wink : document.all.test3
cross_slide.innerHTML=cross_slide2.innerHTML=leftrightslide
actualwidth=document.all? cross_slide.offsetWidth : document.getElementById("temp"wink.offsetWidth
cross_slide2.style.left=actualwidth+slideshowgap+"px"
}
else if (document.layers){
ns_slide=document.ns_slidemenu.document.ns_slidemenu2
ns_slide2=document.ns_slidemenu.document.ns_slidemenu3
ns_slide.document.write(leftrightslide)
ns_slide.document.close()
actualwidth=ns_slide.document.width
ns_slide2.left=actualwidth+slideshowgap
ns_slide2.document.write(leftrightslide)
ns_slide2.document.close()
}
lefttime=setInterval("slideleft()",30)
}
window.onload=fillup

function slideleft(){
if (iedom){
if (parseInt(cross_slide.style.left)>(actualwidth*(-1)+8))
cross_slide.style.left=parseInt(cross_slide.style.left)-copyspeed+"px"
else
cross_slide.style.left=parseInt(cross_slide2.style.left)+actualwidth+slideshowgap+"px"

if (parseInt(cross_slide2.style.left)>(actualwidth*(-1)+8))
cross_slide2.style.left=parseInt(cross_slide2.style.left)-copyspeed+"px"
else
cross_slide2.style.left=parseInt(cross_slide.style.left)+actualwidth+slideshowgap+"px"

}
else if (document.layers){
if (ns_slide.left>(actualwidth*(-1)+8))
ns_slide.left-=copyspeed
else
ns_slide.left=ns_slide2.left+actualwidth+slideshowgap

if (ns_slide2.left>(actualwidth*(-1)+8))
ns_slide2.left-=copyspeed
else
ns_slide2.left=ns_slide.left+actualwidth+slideshowgap
}
}


if (iedomdocument.layers){
with (document){
document.write('<table border="0" cellspacing="0" cellpadding="0"><td>')
if (iedom){
write('<div style="position:relative;width:'+sliderwidth+';height:'+sliderheight+';overflow:hidden">')
write('<div style="position:absolute;width:'+sliderwidth+';height:'+sliderheight+';background-color:'+slidebgcolor+'" onMouseover="copyspeed=0" onMouseout="copyspeed=slidespeed">')
write('<div id="test2" style="position:absolute;left:0px;top:0px"></div>')
write('<div id="test3" style="position:absolute;left:-1000px;top:0px"></div>')
write('</div></div>')
}
else if (document.layers){
write('<ilayer width='+sliderwidth+' height='+sliderheight+' name="ns_slidemenu" bgColor='+slidebgcolor+'>')
write('<layer name="ns_slidemenu2" left=0 top=0 onMouseover="copyspeed=0" onMouseout="copyspeed=slidespeed"></layer>')
write('<layer name="ns_slidemenu3" left=0 top=0 onMouseover="copyspeed=0" onMouseout="copyspeed=slidespeed"></layer>')
write('</ilayer>')
}
document.write('</td></table>')
}
}
</script></center>



<!----END OF CONVEYOR BELT SLIDESHOW---->


</body>
</html>


----------ALL I USED WAS 5 HTML DOCUMENTS/WEBPAGES
1. INDEX.HTML --->WHERE FRAMES/FRAME CODE GOS
2. EXAMPLE1.HTML --->SHOWS UP IN FRAME1
3. EXAMPLE2.HTML --->SHOWS UP IN FRAME1
4. FRAME2.HTML --->SHOWS UP IN FRAME2
5. EXAMPLE3.HTML --->SHOWS UP IN FRAME1 (LINK IN
FRAME 2 -IMAGE- TARGETS THE
EXAMPL3.HTML TO SHOW UP IN
FRAME1)



----------NOT ONLY DID I MAKE AN LINK TO A FRAME USING
WORDS, BUT ALSO MADE IMAGES A LINK TO FRAME1------

Please whomever at least looked at this forum let me know
What you think, and again i hope this helps anyone smile

SCJVS


[ Message was edited by: bhartzer 07/14/2005 01:44 pm ]





jderouen
Joined: Jul 13, 2005
# Posts: 2

View the profile for jderouen Send jderouen a private message

Posted: 2005-Jul-13 22:43
Edit Message Delete Message Reply to this message

I want to use an Amazon affiliate link on my site, but want it to open up into it's own window and not replace my website window. Is there any way to do this? Here's the current code:

[code]<iframe src="http://rcm.amazon.com/e/cm?t=sparkynet&o=1&p=8&l=bn1&mode=dvd&browse=163431&fc1=&=1&lc1=&lt1=&f=ifr&bg1=&f=ifr" marginwidth="0" marginheight="0" width="120" height="240" border="0" frameborder="0" style="border:none;" scrolling="no"></iframe>[code]

Any help would be appreciated!

Thanks,
Joe DeRouen



Mark Wolk
Joined: Sep 19, 1999
# Posts: 660

View the profile for Mark Wolk Send Mark Wolk a private message

Posted: 2005-Jul-14 21:39
Edit Message Delete Message Reply to this message

In your Amazon interface, click on Get HTML and then "Customize link". There, you have the option of opening the link in the same window.



scjvs
Joined: Mar 30, 2005
# Posts: 7

View the profile for scjvs Send scjvs a private message

Posted: 2005-Jul-29 03:00
Edit Message Delete Message Reply to this message

Thank You for the information, I've already figured this code out a long time ago. Sorry for any inconvenience this may have caused anyone. Forgot my password sad but got back in. smile


You are not permitted to post messages in this forum or topic, because of one or more of the following reasons:
  1. You have not yet logged in, or registered properly as a member
  2. You are a member, but no longer have posting rights.
  3. This is a private forum, for which you do not have permissions.

If you are a recent member, it's possible that you simply have not yet confirmed your account. Please check your email for a message entitled 'JimWorld Forums: Confirm Your Account' and follow the instructions contained within.

If you cannot find this message, click here to Re-Send it.

If you are still experiencing problem, please read the Login Assistance Article for some advice on what may be causing your login not to work properly.

Switch to Advanced Editor and ... Create a New Topic or Reply to this Thread

New posts Forum is locked
© 1995  ·  iWeb, Inc  ·  DBA JimWorld Productions