Log In · Register

 

Resource Center Links


This Month's Contests | Hosts Looking for Hostees | Hostees looking for Hosts | Big Book of Resources

Submission Guidelines

iframe.., how to set them up.
*mishyerr*
post Apr 4 2005, 09:46 PM
Post #1





Guest






I need to learn how to use simple, simple frames. B/C I am dying, repeating the same freaking codes 10000 times when I could frame the page into a little easy box. Comprehendo? So please help me on how to do the framing .. my English webpage project is due tomorrow..

sample: pip.com

PLEASE HELP *bows to everyone
 
 
Start new topic
Replies
sweetxsimplicity
post Apr 5 2005, 12:17 AM
Post #2


hi, my name is brianna! =]
*******

Group: Official Member
Posts: 5,764
Joined: Jun 2004
Member No: 22,114



Iframes have taken over normal frames in my opinion, why? They are much easier to use, you can do fun things with them, and it looks alot nicer. I prefer I-frames, now. IFrames alows the person creating the page to display more than one webpage in a single page. They can be made to any dimensions which is a plus, unlike regular frames. To get the frames where you want on your page, you must use a technique called Div Positioning.

Getting the IFrame where you want it
To get the IFrame where you want to go, you MUST copy and paste the code below into your webpage, first:



Change the numbers for the values top, and left, to move the frame around the page. The larger the number for the top value, the further down your IFrame will go. The larger your number gets on the left value, the further right it will go. Somewhat confusing, but once you get a hang of it you can do many things with Div Positioning

The actual IFrame code
Replace the text "YOUR IFRAME WILL GO HERE" with the following code:



The YOURPAGE.html should be replaced with what the webpage you want to view in the Iframe should be. If your using PHP, than replace it with YOURPAGE.php


This is all you need to know about Iframes. Have questions? Email Me at jessiez@pixigirl.nu

View your IFrame
test out how your Iframe looks. It should look something like below:



Targeting your IFrame
To get links to direct pages into the frame, its quite simple. Once the page is inside the IFrame, base links will automatically target the IFrame. On the outside though, when creating a link, this is how you target it,

<a href="LINKHERE" target="frame">

That code for links will always target the frames. If your in a frame, and you want your target to be out of the frame, you can use the code

<a href="URL HERE" target=_blank>
 

Posts in this topic


Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members: