PDA

View Full Version : IFrame Help!



DJ-Bahrami
01-10-2005, 09:52 AM
Hey People

Do you know for e.g you load up a page on navigator on a site

It comes up in the iframe

I Wanna make mine do that Does anybody Know How to Make the page load up in the iframe Please remember sign up on forum! www.habb-bot.net.tc

Tomm
01-10-2005, 10:08 AM
Set the targate to the iframe :)

Sygon
01-10-2005, 10:52 AM
set the target to the iframes name

tleftye
01-10-2005, 12:08 PM
your Iframe could should include a box called : name=THE NAME YOU GAVE IT

e.g. <iframe code blablabla .. name=_iframe>

then you will need to put this beginh your link : target=_iframe

e.g. <...."/main.htm" target=_iframe>

I hope this helped you abit :)

DJ-Bahrami
02-10-2005, 08:20 AM
Nope Still Dont Work :S

craigg.
02-10-2005, 08:26 AM
Inserting IFrames


HTML Code:



<iframe name=" --1--" src=" --2-- " width=" --3-- " height=" --4-- " frameborder=" --5-- " scrolling=" --6-- "></iframe>


1. Give your IFrame a name Eg: Frame1, Content
2. Source of the page that will be loaded Eg: Welcome.Htm
3. Width of the Iframe in PIXELS Eg: 350
4. Hight of the Iframe in PIXELS Eg: 420
5. Do you want your Iframe to have borders? If so how big in PIXELS Eg:1
-+ If you do not wish to have a border, Its Simply 0
6. Do you want your Iframe to have scroll bars? Yes/No/Auto
-+ Auto is if the document has more content than the hight of your IFrame, It puts scroll bars in for you.


Complete Iframe:


<iframe name="FRAME1" src="Home.htm" width="100" height="100" frameborder="0" scrolling="Auto"></iframe>


Transparent IFrames

+ Insert a normall iframe (Above)


You should have something like below in your code view of your Iframe:



<TD COLSPAN=9 align="left" valign="top" bgcolor="# Hex code here Or Image source "><iframe name="Frame1" src="Home.htm" width="100" height="100" frameborder="0" scrolling="auto"></iframe>&nbsp;</TD>


With the source page that will be loaded change the CSS to:


<style type="text/css"> <!-- body,td,th { font-family: Font; font-size: - px; background-color: transparent } body { background-color: transparent } --> </style>


That will give you a transparent IFrame.

Linking IFrames
Pritty Simple thing to do:



<a href="Home.htm" target=" The Frame name it will be loaded too "> Home </a>

Sygon
02-10-2005, 08:55 AM
Ok Look im gonna explain it the simplest ok your iframe
<iframe src="YOUR PAGE NAME HERE" name="NAME YOUR IFRAME HERE" frameborder="0">

Thats you iframe sorted now lets get to the links ok say i want hello to link to habbox.com this would be the code <p><a href="<A href="http://www.habbox.com" target="NAME YOUR IFRAME HERE"> hello</a></p">http://www.habbox.com" target="NAME YOUR IFRAME HERE"> hello</a></p> and thats it itll open in the iframe

DJ-Bahrami
02-10-2005, 08:58 AM
thanks the guide was realy helpfull rep+ for both of you :D

DJ-Bahrami
04-10-2005, 05:30 PM
soz for double posting does that go in the url of sitE?

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