|
In here, I would like to talk about iframe, which pretty popular these
days in web design. Iframes can organize your site into neat sections.
It's pretty simple. All you have to do is know how to use the
<iframe> tag. Using iframes gives you all the benefits of
frames and very few of the downsides. That's one of the reason I was using
it for my pages :)
I'll make it easier, download this file
and save it in ur Dreamweaver directory (*ie : C:\Program
Files\Macromedia\Dreamweaver 4\Downloaded Extensions*). To install
this extension, you should have an Extension Managers (from
Macromedia Exchange) installed in ur computer, click here
to download the extension manager
The PD IFrame Object, inserts an iframe into the current active
document.Access the iframe object from either the common object palet or
from the insert menu.
Here is the dialog box when you ready to use it.


Here is some information about the IFrame attributes
Name Attribute The name attribute enables you to
identify your inline frame so that it can be targeted by HTML or
JavaScript links in the parent page or pages in other frames or windows.
By default inline frames are unnamed and the syntax of this attribute is
very simple and it would take the form name="yourName". We provide
two example text links (one HTML link and one JavaScript link) both of
which are located on the same page that contains the inline frame.
Width Attribute This in exactly the same way that you would
treat the width attriblte in the image tag. If scroll bars are used they
would be displayed inside this area, reducing the child page area.
Height Attribute T this in exactly the same way that you
would treat the height attriblte in the image tag. If scroll bars are used
they would be displayed inside this area, reducing the child page
area.
Marginheight Attribute The marginheight attribute sets the
number of pixels from the top of the inline frame to the start of the page
content. For example, marginheight=16 would give a top margin of 16 pixels
in depth. In Microsoft browsers this setting can be over-ridden using the
topmargin attribute in the body tag of the HTML document.
Marginwidth Attribute The marginwidth attribute sets the
number of pixels from the left and right edges of the inline frame to the
left-side start and right-side end of the page content. For example,
marginwidth=30 would give a left margin of 30 pixels wide and a right
margin of 30 pixels wide. In Microsoft browsers this setting can be
over-ridden using the leftmargin attribute in the body tag of the HTML
document.
SRC Attribute The SRC attribute is used to specify the
relative pathname or URL of the HTML document that you want the inline
frame to display when the page is first rendered. An example of a local
usage would be src="yourfolder/index_page.html" and an example of
specifing any page on the World Wide Web would be
src="http://www.masboy.com". Microsoft browsers will return an HTTP
404 Not Found error if they are unable to find the specified document.
Scrolling Attribute The scrolling attribute is used to set
the behaviour of the inline frame scrollbars. Setting the attribute to
scrolling="yes" would set the vertical and horizontal scrollbars to
always being visible. Setting the attribute to scrolling="no" would
set the scrollbars to never being visible. Setting the attribute to
scrolling="auto" would make the scrollbars visible only if there was page
content outside the inline frame display area that a user would need to
scroll to see. Vertical and horizontal scrollbars work independently of
each other with this setting.
Frameborder Attribute The frameborder attribute turns the
border on or off. A value of frameborder=0 turns the
border off and a value of frameborder=1 turns the border on. There
is only one style of border and that is an inset border that is two pixels
wide all the way around the inline frame. The default is the border turned
on.
Here is the code in ur HTML tag : <iframe
name="sample" src="sample.htm" width="350" height="140"
scrolling="Default" frameborder="0" >You can type an error msg for
Netscape 4 and older browsers here</iframe>
Here is the sample :
You're done!
©http://www.masboy.com/
|