home account info subscribe login search My ITKnowledge FAQ/help site map contact us


 
Brief Full
 Advanced
      Search
 Search Tips
To access the contents, click the chapter and section titles.

Platinum Edition Using HTML 4, XML, and Java 1.2
(Publisher: Macmillan Computer Publishing)
Author(s): Eric Ladd
ISBN: 078971759x
Publication Date: 11/01/98

Bookmark It

Search this book:
 
Previous Table of Contents Next


Attributes:

The <IFRAME> tag can take the following attributes:

  ALIGN—Controls how the floating frame is aligned, and can be set to TOP, MIDDLE, BOTTOM, LEFT, or RIGHT.TOP, MIDDLE, and BOTTOM alignments make text appear next to the frame, starting at the top, middle, or bottom of the frame. Setting ALIGN to LEFT or RIGHT floats the frame in the left or right margin and enables text to wrap around it.
  FRAMEBORDER—Setting FRAMEBORDER to 1 turns on the floating frame’s borders; setting it to 0 turns them off.
  HEIGHT—Specifies the height of the floating frame in pixels.
  LONGDESC—Set equal to the URL of a resource that contains more detail about the contents of the floating frame.
  MARGINHEIGHT—Specifies the size (in pixels) of the top margin of the floating frame.
  MARGINWIDTH—Specifies the size (in pixels) of the left margin of the floating frame.
  NAME—Gives the floating frame a unique name so it can be targeted by other tags (such as <A>, <FORM>, and <AREA>).
  SCROLLING—Controls the presence of scrollbars on the floating frame. Setting SCROLLING to YES makes the browser always put scrollbars on the floating frame, setting it to NO suppresses the scrollbars, and setting it to the default of AUTO enables the browser to decide whether the scrollbars are needed.
  SRC—Tells the browser the URL of the HTML file to load into the floating frame. SRC is a required attribute of the <IFRAME> tag.
  WIDTH—Specifies the width of the floating frame in pixels.

Example:

<IFRAME SRC= “float_content.html “ WIDTH= “50% “ HEIGHT= “50% “ ALIGN=”RIGHT”
  SCROLLING= “NO “ NAME= “floater “ FRAMEBORDER=1>
Your browser does not support floating frames. :(
</IFRAME>

Executable Content Tags

One of the ways in which Web pages have become more dynamic is through their support of executable content, such as Java applets and ActiveX controls. These page elements are downloaded to the browser and run in its memory space to produce dynamic content on the browser screen.

HTML 4.0 supports two ways for placing executable content: the <APPLET> tag for Java applets and the <OBJECT> tag for other executable objects. These tags, along with the supporting <PARAM> tag, are profiled in this section.

<APPLET>

Type:

Container

Function:

Places a Java applet on a page. The <APPLET> tag has been deprecated in favor of using the more generic <OBJECT> tag to place applets.

Syntax:

<APPLET WIDTH= “width_in_pixels “ HEIGHT= “height_in_pixels “
  CODEBASE= “base_URL_for_applet “ CODE= “applet_class file “
  OBJECT= “serialized_applet_file “ NAME= “applet_name “
  ARCHIVE= “archive_list “ ALT= “text_alternative “
  ALIGN= “TOP|MIDDLE|BOTTOM|LEFT|RIGHT “
  HSPACE= “pixels “ VSPACE= “pixels “>
...
</APPLET>

Attributes:

As the following list demonstrates, many of the <APPLET> tag’s attributes are the same as those for the <IMG> tag:

  ALIGN—Positions adjacent text at the TOP, MIDDLE, or BOTTOM of the applet window, or you can float the window in the LEFT or RIGHT margin.
  ALT—Provides a text-based alternative to the applet.
  ARCHIVE—Set equal to a comma-delimited list of archive locations.
  CODE—Specifies the class file.
  CODEBASE—Set equal to the URL of the code.
  HEIGHT—Specifies the height of the applet window in pixels. HEIGHT is a required attribute of the <APPLET> tag.
  HSPACE—Controls the amount of whitespace (in pixels) to the left and right of the applet window.
  NAME—Gives the applet a unique name so that it can be referenced by other Java applets.
  OBJECT—Provides the name of a serialized applet file.
  VSPACE—Controls the amount of whitespace (in pixels) above and below the applet window.
  WIDTH—Specifies the width of the applet window in pixels. WIDTH is a required attribute of the <APPLET> tag.


NOTE:  Either the CODE or the OBJECT attribute must be used in an <APPLET> tag. If they are both used and they each specify a different class name, the browser should return an error message.

Example:

<APPLET WIDTH=250 HEIGHT=200 CODE= “marquee.class “ NAME= “marquee “
  ALT= “Scrolling text marquee applet “ ALIGN= “RIGHT “
  HSPACE=5 VSPACE=12>
  <PARAM NAME= “message “ VALUE= “Hello World! “>
...
</APPLET>

Related Tags:

Parameters are passed to a Java applet using the <PARAM> tag.

<PARAM>

Type:

Standalone

Function:

Passes a parameter to a Java applet (<APPLET>) or other executable object (<OBJECT>).

Syntax:

<PARAM ID= “unique_identifier “ NAME= “parameter_name “
 VALUE= “parameter_value “ VALUETYPE= “DATA|REF|OBJECT “
 TYPE= “expected_content_type “>


Previous Table of Contents Next


Products |  Contact Us |  About Us |  Privacy  |  Ad Info  |  Home

Use of this site is subject to certain Terms & Conditions, Copyright © 1996-2000 EarthWeb Inc.
All rights reserved. Reproduction whole or in part in any form or medium without express written permission of EarthWeb is prohibited. Read EarthWeb's privacy statement.