View Full Version : iFrame Help!
layoutcentral
August 6th, 2007, 06:20 PM
I have an Iframe based layout and when a link on the navigation is clicked, I want the page to open in the main frame... does that make any sense? If you don't know what I'm talking about I might be able to justify =/
wce
August 6th, 2007, 06:26 PM
on the navigation link add:
target="main" or whatever you named the main frame and you'll be all set.
Meghann_78
August 6th, 2007, 06:28 PM
<a href="http://linkhere.com" target="main">link</a>
in the frame coding have the main page titled main.html and use the code above.
It's been a while since I've coded iframes though :/
edit: n/m wce beat me to it :D
marshall_26
August 6th, 2007, 06:50 PM
or target="_top"
layoutcentral
August 7th, 2007, 08:16 AM
I tried that but I guess my frames aren't named or something..... this is the code maybe someone knows what the problem is...
<html>
<head>
<title>Gravity</title>
<link rel="stylesheet" href="kali.css" type="text/css">
<meta name="description" content="Description of your website here.">
<meta name="keywords" content="web shoppe, website, layout, template, design, download">
</head>
<body bgcolor="#000000">
<table border="0" cellpadding="0" cellspacing="0"><tr>
<td width="30" rowspan="2"> </td>
<td><img src="http://i13.tinypic.com/4ouevrt.gif" width="545" height="325" alt="gravity"></td>
<td width="10" rowspan="2"> </td>
<td width="140" rowspan="2" background="http://www.myglitters.net/grav/back2.gif" valign="top" class="menu"><br>
<!-- Begin Welcome Text -->
welcome to gravity. i'd been thinking of doing an abstract layout, as well as a dark one, so here they are as one! pink, because i'm sure you're all aware by now what my favourite colour is. ;)<br>
<br>
<!-- End Welcome Text -->
<hr>
<br>
<!-- Begin Navigation -->
[<a href="#">x</a>] autobio<br>
[<a href="#">x</a>] art & portfolio<br>
[<a href="#">x</a>] poetry & writing<br>
[<a href="#">x</a>] journal<br>
[<a href="#">x</a>] about this site<br>
[<a href="#">x</a>] contact info<br>
[<a href="#">x</a>] links & rings<br>
<br>
<!-- End Navigation -->
<hr>
<br>
<!-- Begin Comment Form -->
have a comment?<br>
<table border="0" cellpadding="1" cellspacing="0"><tr>
<form method="post" enctype="text/plain" action="mailto:YOU@EMAIL.COM">
<td>name:</td>
<td><input type="text" name="name"></td>
</tr><tr>
<td>email:</td>
<td><input type="text" name="email"></td>
</tr><tr>
<td colspan="2" align="center"><textarea name="comments"></textarea></td>
</tr><tr>
<td colspan="2" align="center"><input type="submit" class="button" value="submit"> <input type="reset" class="button" value="reset"></td>
</tr></table>
<br>
<!-- End Comment Form -->
<hr>
<br>
<img src="http://www.myglitters.net/grav/button.gif" width="88" height="31"><br>
use the above button to link to my site. thanks!<br>
<br>
<hr>
<br>
<!-- Do Not Remove -->
<font class="small">design by <a href="http://imbri.com/" target="pop">imbri</a></font>
<!-- End Do Not Remove -->
</tr><tr>
<td background="http://www.myglitters.net/grav/back2.gif"><table width="438" height="100%" border="0" cellpadding="0" cellspacing="0"><tr>
<td width="6" bgcolor="#000000" background="http://www.myglitters.net/grav/left.gif"><img src="http://www.myglitters.net/grav/eft.gif" width="6" height="1"></td>
<td class="main" width="423">
<!-- Begin Content -->
This is a bunch of Latin text designed to show you what the template would look like with actual content. Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat.
<p>
Vetus opinio est iam usque ab heroicis ducta temporibus, eaque et populi Romani et omnium gentium firmate consensu, versari quandam inter homines divinationem, quam Graeci appellant, id est praesensionem et scientiam rerum futurarum. Magnifica quaedam res et salutaris, si modo est ulla, quaque proxime ad deorum vim natura mortalis, possit accedere. Itaque ut alia nos melius multa quam Graeci, sic huic praestantissimae rei nomen nostri a divis, Graeci, ut Plato interpretatur, a furore duxerunt.
<p>
Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat.
<p>
Vetus opinio est iam usque ab heroicis ducta temporibus, eaque et populi Romani et omnium gentium firmate consensu, versari quandam inter homines divinationem, quam Graeci appellant, id est praesensionem et scientiam rerum futurarum. Magnifica quaedam res et salutaris, si modo est ulla, quaque proxime ad deorum vim natura mortalis, possit accedere. Itaque ut alia nos melius multa quam Graeci, sic huic praestantissimae rei nomen nostri a divis, Graeci, ut Plato interpretatur, a furore duxerunt.
<!-- End Content -->
</td>
<td width="9" bgcolor="#000000" background="http://www.myglitters.net/grav/right.gif"><img src="http://www.myglitters.net/grav/right.gif" width="9" height="1"></td>
</tr></table></td>
</tr></table>
</body>
</html>
edit// Theses prob. aren't frames lol I guess they are tables =X
Jen
August 7th, 2007, 08:21 AM
Monica, I dont see any iframes?
layoutcentral
August 7th, 2007, 08:25 AM
Monica, I dont see any iframes?
lol I just realized they are tables and all of this time I was saying they're iframes
I just wnat to be able to click a link and have it oopen in the main table :/
Jen
August 7th, 2007, 08:31 AM
lol, its ok.
Im no expert in html but I dont think there is a way. Now you were using frames, ,not iframes, then you could open up your links in the main frame.
Maybe there is, maybe someone knows, but I've never run into that option before.
layoutcentral
August 7th, 2007, 08:33 AM
Thats alright, I have thought of an alternative, but I don't know if it's going to work either. Is there a way to open a new page in the same window vs. in a new window or a pop up?
Jen
August 7th, 2007, 08:35 AM
I believe it's target="_self"
Opens in current window
brassdragon
August 7th, 2007, 08:35 AM
use target="_self" i think.
layoutcentral
August 7th, 2007, 08:38 AM
That worked, Thanks Jen *rep*
I am just going to slap the code for the layout on each mach and change the main content :biggrin: Thanks Again!
Jen
August 7th, 2007, 08:42 AM
Yeah that would be best since your not using frames.
Glad it worked :)
vBulletin® v3.7.1, Copyright ©2000-2012, Jelsoft Enterprises Ltd.