HTML
  Home arrow HTML arrow Page 5 - Sample Chapter: HTML 4.01 Programmers Refe...
Dev Articles Forums 
ADO.NET  
Apache  
ASP  
ASP.NET  
C#  
C++  
ColdFusion  
COM/COM+  
Delphi-Kylix  
Design Usability  
Development Cycles  
DHTML  
Embedded Tools  
Flash  
Graphic Design  
HTML  
IIS  
Interviews  
Java  
JavaScript  
MySQL  
Oracle  
Photoshop  
PHP  
Reviews  
Ruby-on-Rails  
SQL  
SQL Server  
Style Sheets  
VB.Net  
Visual Basic  
Web Authoring  
Web Services  
Web Standards  
XML  
Mobile Linux 
App Generation ROI 
IBM® developerWorks 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
HTML

Sample Chapter: HTML 4.01 Programmers Reference
By: Mitchell Harper
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 5 stars5 stars5 stars5 stars5 stars / 8
    2002-07-24

    Table of Contents:

  • Page 4
  • Internet Explorer
  • Using the
  • Hidden Image Elements
  • Inserting a Java Applet with the Object Element
  • Inserting a Flash Animation with the Object Element
  • Conclusion

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT


    Sample Chapter: HTML 4.01 Programmers Reference - Internet Explorer


    (Page 5 of 10 )

    Internet Explorer adds other attributes to the <object> element:
    • align
    • accesskey
    • alt
    • code
    • datafld
    • hidefocus
    • notab
    • type
    • unselectable
    Note: only the align attribute is actually supported in IE 5.5 onwards, the rest are IE 4 only. Now let's look at these in turn:

    align
    The syntax for the align attribute in this context is slightly different from normal:
    align="top | middle | bottom | left | right | absbottom* | texttop* | absmiddle* | baseline*"

    * For explanations of these values, please refer back to Chapter 5, and look at the section on the <img> element. This attribute is deprecated in HTML 4.01.

    accesskey
    This attribute defines the "hot-key" that can be used to activate the element, or switch the input focus to it. This is used where a hyperlink takes the form of an image, rather than a text string. For details of using an image as a hyperlink see Chapter 4. For more about the uses of the accesskey attribute, see Chapter 6.

    alt
    This defines a text alternative to the graphic. See Chapter 5 for more details.

    code
    This attribute defines the URL to the Java class file implementing the object, if this is the object source instead of an image. Its syntax is:

    code="url"

    datafld and datasrc
    These attributes are used to connect the <object> element to a client-side cached data source in Internet Explorer 4, in a technique called data binding. These have since been removed in Internet Explorer 6. For a look at using these attributes, see the "<frame>" section of Chapter 8.

    hidefocus
    This attribute holds a value indicating whether or not the object is indicated visibly when the element is in focus. See Chapter 8 for more information.

    notab
    This attribute was present very briefly in Internet Explorer 3, but was dropped by the time of version 4. It was used to exclude an element from the tabbing order, but now this can be achieved by setting the tabindex attribute to –1.

    type
    This attribute defines the MIME type for the object, as defined in the registry on a Windows Machine. The syntax is:

    type="mime-type"

    where mime-type is a unique text string of a standard format, which tells the browser what kind of information the file contains, and which application to use to read or execute it – as appropriate. The MIME-types for popular image formats are "image/gif", "image/jpeg", and "image/png". This is overridden by the classid attribute.

    unselectable
    This attribute specifies that the element cannot be selected. The syntax is:

    unselectable="on | off"

    If it is set to off (the default), then the element can be selected. Setting it to on makes the object unselectable.

    Tags <object> Can Enclose
    The <object> element operates in conjunction with the <param> element, which is used to specify the different parameters that each object can take. These parameters are values that the object will require at run time. They must be placed at the beginning of the content of the <object> element.

    The <param> Element
    The param element can take the following attributes:
    • name
    • type
    • value
    • valuetype
    plus the universal attributes and core events discussed in Chapter 2. The majority of these additional elements, which are specific to a particular object, will just use a name and a value.

    name
    This attribute specifies the name or property of the parameter. This attribute is mandatory for every <param> element. The syntax is:

    name="string"

    value
    his attribute specifies the value to set for the parameter. The syntax is:

    value="string"

    type
    This attribute has the value of the MIME type that is retrieved if valuetype (the data type of the value attribute) is set to ref. The syntax is:

    type="string"

    valuetype
    This attribute specifies how the parameter value will be obtained. The syntax is:

    valuetype="data | ref | object"

    ref is via a URL, while data is the default, an implicit value, and object is an identifier that refers to the id of another object defined in the page. IE 6 is the first IE version to support valuetype for the <param> element.

    More HTML Articles
    More By Mitchell Harper


     

    HTML ARTICLES

    - Comparing Browser Response to Active Client ...
    - Testing Browser Response to Active Client Pa...
    - Active Client Pages: Completing the Code for...
    - ACP and Browsers: Setting up an Example
    - How Browsers Respond to Active Client Pages
    - Completing a Tree with Active Client Pages
    - HTML Form Verification and ACP
    - Building an ACP Tree
    - Completing an ACP 3D HTML Table Image Gallery
    - Building an ACP 3D HTML Table Image Gallery
    - A Multiple Page Image Gallery with Active Cl...
    - Building an Image Gallery with Active Client...
    - Concluding a Menu for All Browsers
    - A Vertical Menu for All Browsers
    - Downloading Long HTML Pages with ACP







    © 2003-2009 by Developer Shed. All rights reserved. DS Cluster 3 Hosted by Hostway
    For more Enterprise Application Development news, visit eWeek