HTML and CSS Reference
In-Depth Information
Table 11.1 Common attributes of media <object> tags
Attribute
Value
Usage
Valid file name, name of audio file
Required; provides the name of the file to
be played
data
A valid MIME type such as audio/midi, audio/wav,
audio/mpeg, video/quicktime, and so on
Optional; specifies the MIME type of the
media file
type
Numeric, number of pixels
Optional; configures the width of media
control console
width
Numeric, number of pixels
Optional; configures the height of media
control console
height
classid
Uniquely identifies the player software
QuickTime:
classid="clsid:02BF25D5-8C17-4B23-
BC80-D3488ABDDC6B"
Windows Player:
classid="6BF52A52-394A-11d3-B153-
00C04F79FAA6"
Flash Shockwave Player:
classid="clsid:D27CDB6E-AE6D-11cf-
96B8-444553540000"
The classid identifies an ActiveX control
that must be installed on the visitor's PC; if
the ActiveX control is not installed, the
browser can automatically download and
install it
Specifies a relative path for the location of the plug-in
QuickTime:
codebase="http://www.apple.com/
qtactivex/qtplugin.cab"
Windows Player:
codebase="http://activex.microsoft.
com/activex/controls/mplayer/en/
nsmp2inf.cab#Version=6,0,02,902"
Flash Shockwave Player:
codebase = "http://download.macromedia.
com/pub/shockwave/cabs/flash/
swflash.cab#Version=8,0,22,0"
Facilitates the location and download of
plug-in if needed
codebase
Brief text description
Optional; may be displayed by browsers
or assistive technologies
title
Table 11.2 <param /> media attribute values
Parameter
Name
Parameter Value
Usage
Valid file name, name of media file
Required; provides the name of the file to be played
src
Numeric value, or true for continu-
ous play (not uniformly supported)
Optional; determines how many times the media file will
repeat
loop
true (not uniformly supported)
Optional; hides the default media console
hidden
autoplay
true , false
Optional; determines if the media will play automatically when
the page is loaded—if omitted, media may not automatically play
controller
true , false (not uniformly
supported)
Optional; indicates whether the media control console will
display
 
Search WWH ::




Custom Search