iFrames

Team-Fly    

Macromedia® DreamWeaver® MX Unleashed
By Matthew Pizzi, Zak Ruvalcaba
Table of Contents
Chapter 7.  Framesets


iFrames, which is short for inline frames, are part of the HTML 4.0 specification. What's interesting and useful about an iFrame is that you do not need to build an entire frameset. What makes iFrames so useful is their capability to display scrollbars automatically. Therefore, you can have a region within your document that isn't obviously a frame and have a great deal of information or text that is scrollable.

For end users to see an iFrame, they must be using Internet Explorer 4 or later or Netscape 6 or later. Unfortunately, there is no easy way to create an iFrame within Dreamweaver; you must do it by hand. You may notice that in the code view, an iFrame button (also known as the floating frame button) in the Insert panel under the Frame tab becomes active. This will simply insert the <iframe></iframes> tags into the code for you.

The <iframe> tag has several attributes that you need to address. The most important is the source. The source specifies which HTML document you want to use in the floating frame. Next you have to specify the name of the frame as well the position. The final tag should look something like this:

 <iframe src = "/foldername/filename.html" name="frameName" style ="position:absolute;  graphics/ccc.gifwidth:100px; height:150px; top:120px; left:300px;></iframe>  

It's important to note that in the Dreamweaver authoring environment, iFrames appear as layers. However, after you test it in a browser, it appears as an iFrame.


    Team-Fly    
    Top


    Macromedia Dreamweaver MX Unleashed
    Macromedia Dreamweaver MX 2004 Unleashed
    ISBN: 0672326310
    EAN: 2147483647
    Year: 2002
    Pages: 321

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