PDA

View Full Version : Iframe Help ?????



Mr Me
15-01-2007, 09:11 PM
Okay so this have probly been posted over and over agian but my tiny brain can't find them lol

So all i need is when you click a link ont he site its only the content box that changes not the whole page, I have looked ont he forum but its so confusin yet seems so simple :s

Okay thank you!

Ceoxe
16-01-2007, 12:13 AM
I beleive you mean this code, change the target to the name of your main content box' name. the rest is self-explanitory

<a href="linkhere" target="iframename">LINK</a>

H0BJ0B
16-01-2007, 12:22 AM
To make the acutual iframe:

<iframe name="iframename" src="URL HERE" width="100&#37;" height="350px"></iframe>

Ceoxe
16-01-2007, 12:31 AM
that is just making it bigger/smaller/wider he wnats it so when you click a link it only links to a certain iFRame not the whole page.

MrChaz
16-01-2007, 12:42 AM
Just make a link, and make the source of it, the iframe name.

Decode
17-01-2007, 08:40 PM
The Iframe:

<iframe src="URL" height="100px" width="100%" frameborder="0" name="frame"></iframe>


A Link Into The Frame:

<a href="page.htm" target="frame">My Page</a>

Nether$
19-01-2007, 06:57 PM
<html>
<head>

<base target="framename"></head>
<body>
The iframe


<iframe src="Look Below" height="200px" width="50&#37;" frameborder="0" name="framename">Text here that people who dont have iframes enabled to see</iframe>Links that will display in the iframe

<a href="page.html">Page</a>Page to open in same window, not the iframe

<a href="page.html" target="_self">Page</a>Link to open in new windon

<a href="page.html" target="_blank">Page</a>Link in the iframe to open a page in the whole of the page that the iframe is in

<a href="page.html" target="_parent">Page</a>Link to iframe if you do not put the base thing in, NOTE: i suggest you use this anyway to help browser compatabillaty

<a href="page.html" target="_framename">Page</a></body>
</html>

Look below: The url of the page that will be displaied in the iframe when the page is loaded
Hope it helped!

Want to hide these adverts? Register an account for free!