Inline frames, often referred to as IFrames or floating frames, allow you to create freestanding, scrollable framed widgets anywhere on the page without the need or hassle of having to work with framesets or frames. For end users to see an IFrame, they must be using Internet Explorer 4 or later or Netscape 6 or later. As of Dreamweaver 8, there is no visual way to create an IFrame; you must create IFrames by coding them by hand in Code view. To add an IFrame, follow these steps:


Create a new page by selecting New from the File menu. Choose the HTML option and click Create.


In the new page, immediately switch to Code view and place your cursor in the <body> tag.


Choose Insert, HTML, Frames, Floating Frame. Notice that the <iframe></iframe> tags are inserted.


The <iframe> tag has several attributes you need to add to make it work correctly. The most important is the src attribute. The src attribute (short for source), specifies which document/URL you want to use in the floating frame. For demonstration purposes, point it to http://www.yahoo.com.


Specify a unique name, a width, and a height. The formatted tag should look something like this:

 <iframe src="/books/4/493/1/html/2/http://www.yahoo.com" name="myFrame" width="400" height="200"> </iframe> 


Save your work and preview the page in the browser. The result will resemble Figure 8.19.

Figure 8.19. IFrames allow you to create freestanding, scrollable panes anywhere on the page.

Macromedia Dreamweaver 8 Unleashed
Macromedia Dreamweaver 8 Unleashed
ISBN: 0672327600
EAN: 2147483647
Year: 2005
Pages: 237
Authors: Zak Ruvalcaba

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net