Iframes
|
What is an iframe? An iframe or inline frame enables your visitor to view a page from your site or from a site anywhere else from the net without having to reload your page.
the code for the iframe above is as follows: <iframe src="http://neo-faeriewings.comuv.com/tutorials/frame1.html" name="frame1" width="350" height="100" frameborder=1></iframe>
The above frames are what we call interaction frames. Both are pages from different locations and yet when you put them together here you are able to control one frame from another frame! The code for the above frames are as follows:
<iframe src="http://neo-faeriewings.comuv.com/tutorials/frame2.html" name="frame2" width="150" height="300" frameborder=1></iframe> Now, what are the contents of the first frame and the second frame? This is our navigation area!<P>
click <a href="http://neo-faeriewings.comuv.com/tutorials/frame4.html" target="frame3"> HERE for frame 4</a><br> If you notice the name of the second frame it is "frame3" thus the target of the link should be on the frame we want it to open! The contents on the second frame is simply the following:
This is frame 3. Click on the links on the left frame and see what happens!
height: can also be set in pixel or page percentage frameborder: if you want to place a border around your frames, just enter the number you want depending on how thick you want the border is. If you do not want any border, set the border to 0
To make your iframe background transparent use this iframe code:
and then on the pages you want to put in your frames put this code in the body tag:
Example:
The code for the above frame would be: Don't forget to put the body style code on your files: <body style="background:transparent">. If you fail to do it, your frames will not be transparent!
|
Labels: basic, html, iframes, tutorial