View Full Version : iframe
StealthBlitz 07-22-2003, 07:08 PM im lost, do i put the iframe code in INDEX.html or Right.html
and how do i add links to the right side of m page, do i place the codes for link in the left.html or index.html and how do i position them?
http://www31.brinkster.com/aznmib/index.html
MaGiCSuN 07-22-2003, 07:09 PM 1. depends on which page you want the iframe to appear
2. depends on which page you watn the iframe to appear on
you can use a table for it
<table border=0 cellspacing=0 cellpadding=0>
<tr><td valign="top">links in here</td><td valign="top">iframe code in here</td></tr></table>
put that on ehte page where you want it to appear.
Love,
Mirna
StealthBlitz 07-23-2003, 09:40 PM i want my index page to show the iframe
and i want every linked that is clicked on will open in the iframe
MaGiCSuN 07-23-2003, 09:42 PM put the iframe code on the index.html page
then put links on the index.html page too and target them to the iframe.
in your iframe there should be name="FRAMENAME"
and in the links there should be target="FRAMENAME"
change both FRAMENAME to a name that will match
Love,
Mirna
StealthBlitz 07-23-2003, 10:00 PM can u give a link example with teh target thingy please?
and how do i get the link to show up on the left of my page?
do i place the codes in teh LEFT.html page, or the INDex.html
MaGiCSuN 07-23-2003, 10:07 PM you can just use one page for it, with a table you can divide your page into two parts next to each other (not really it looks like it)
put this on your index.html
<table border=0 cellspacing=0 cellpadding=0 width="100%">
<tr><td valign="top">links in here</td><td valign="top">iframe code in here</td></tr></table>
the iframe code:
<iframe name="FRAMENAME" src="pagethatopenswhenloadingpage.html" frameborder="0" height="#px" width="#px"></iframe>
then your links will look like:
<a href="urlhere.html" target="FRAMENAME">linkname here</a>
Love,
Mirna
StealthBlitz 07-23-2003, 10:15 PM uh.. nothign shows
site:
http://www31.brinkster.com/aznmib/index.html
html used:
<html>
<head>
<title>My Page</title>
</head>
<frameset rows="208,*" border="0" frameborder="0" framespacing="0">
<frame src="top.html" NAME="top" scrolling=no>
<frameset cols="200,*">
<frame src="left.html" NAME="left" scrolling=no>
<frame src="right.html" NAME="right" scrolling=no>
</frameset>
</frameset>
<body>
</body>
<noframes>
<a href="your main page.html">Click Here</a>
</noframes>
</html>
<table border=0 cellspacing=0 cellpadding=0 width="100%">
<tr><td valign="top">
<a href="Enterpage.html" target="FRAMENAME">Testing</a>
</td><td valign="top"><iframe name="FRAMENAME"
src="pagethatopenswhenloadingpage.html"
frameborder="0" height="#px" width="#px"></iframe>
</td></tr></table>
is that correct?
StealthBlitz 07-23-2003, 10:29 PM wait
i changed it, but iframe doesn't appear
<html>
<head>
<title>My Page</title>
</head>
<frameset rows="208,*" border="0" frameborder="0" framespacing="0">
<frame src="top.html" NAME="top" scrolling=no>
<frameset cols="200,*">
<frame src="left.html" NAME="left" scrolling=no>
<frame src="right.html" NAME="right" scrolling=no>
</frameset>
</frameset>
<body>
</body>
<noframes>
<a href="your main page.html">Click Here</a>
</noframes>
</html>
<iframe name="FRAMENAME" src="load.html" frameborder="0"
height="600" width="400"></iframe>
<a href="Enterpage.html" target="FRAMENAME">testing</a>
CryptalClear 07-23-2003, 11:13 PM erm.......maybe it's just me, but doesn't the iframe code need to be in the body section? my page uses an iframe, and i just put it in the right column of my table. Everything works well for me. I think your problem is just that you need to put the code in the right place. Otherwise, if it's put after the </html>, then it won't show! Maybe that will help you?
StealthBlitz 07-23-2003, 11:16 PM oh, THANKSS!!!!, i got one mroe question, how come my right won't move all the way to the bottom of its picture?
http://www31.brinkster.com/aznmib/index.html
MaGiCSuN 07-24-2003, 09:34 AM eumh stealblitz? you can't use frames AND iframes on the same page. You have to choose.
and beside that, why would you use iframes if you are allready using 2 frames so you can target your links ot that one?
so it should be this:
<html>
<head>
<title>My Page</title>
</head>
<frameset rows="208,*" border="0" frameborder="0" framespacing="0">
<frame src="top.html" NAME="top" scrolling=no>
<frameset cols="200,*">
<frame src="left.html" NAME="left" scrolling=no>
<frame src="right.html" NAME="right" scrolling=no>
</frameset>
</frameset>
<body>
</body>
<noframes>
<a href="your main page.html">Click Here</a>
</noframes>
</html>
or this:
<table border=0 cellspacing=0 cellpadding=0 width="100%">
<tr><td valign="top"><a href="Enterpage.html" target="FRAMENAME">testing</a></td><td valign="top"><iframe name="FRAMENAME" src="load.html" frameborder="0"
height="600" width="400"></iframe></td></tr></table>
choose one way, not both. On a frames page you should not have anything beside the frames itself, so no more content.
the content will appear by making an left.html page and top.html and right.html
for the frames you could put your links on the left.html page then you target those links with target="right" so they open into the right frame.
Love,
Mirna
|