Default Behaviors Reference | Internet Development Index |
Introduction to DHTML Behaviors provides a means for Web developers to extend the current Microsoft® Internet Explorer object model. A number of behaviors have been implemented as part of Internet Explorer 5 and are referred to as default behaviors.
As of Internet Explorer 5.5 and later, the time2 behavior is available only in the Microsoft Win32® platform. This default behavior enables users to add timed, interactive elements to HTML pages. Using the HTML+TIME (Timed Interactive Multimedia Extensions) extensions, any HTML element can be set to appear at a given time, last for a specified duration, and repeat the action if desired.
This section contains links that provide access to the object model exposed by these default behaviors.
Behaviors
anchorClickEnables the browser to navigate to a folder view.
animDefines an instance of the Microsoft DirectAnimation® viewer in an HTML document to render DirectAnimation objects and play DirectAnimation sounds.
clientCapsProvides information about features supported by Internet Explorer, as well as a way for installing browser components on demand.
downloadDownloads a file and notifies a specified callback function when the download is complete.
homePageContains information about a user's homepage.
httpFolderContains scripting features that enable browser navigation to a folder view.
mediaBarProvides a basic user interface (UI) for locating and playing media within the browser window. The Media Bar
saveFavoriteEnables the object to persist data in a favorite Web site.
saveHistoryEnables the object to persist data in the browser history.
saveSnapshotEnables the object to persist data when a Web page is saved.
userDataEnables the object to persist data in user data.
Objects
MediaItemRepresents a single item in a media player playlist.
PlaylistInfoContains information about a media player playlist.
Attributes/Properties
attributeCountSets or retrieves the count of the attributes associated with the media object.
availHeightRetrieves the height of the working area of the system's screen, excluding the Microsoft Windows® taskbar.
availWidthRetrieves the width of the working area of the system's screen, excluding the Windows taskbar.
bufferDepthRetrieves the number of bits per pixel used for colors on the off-screen bitmap buffer.
colorDepthRetrieves the number of bits per pixel used for colors on the destination device or buffer.
connectionTypeRetrieves the type of connection in use.
cookieEnabledRetrieves whether client-side cookies are enabled in the browser.
cpuClassRetrieves a string representing the CPU class.
currentItemSets or retrieves the current media item.
disabledUISets or retrieves a Boolean value that specifies whether an instance of the Media Bar? UI is disabled.
durationSets or retrieves the duration of the current media item.
enabledSets or retrieves a Boolean value that specifies whether the Media Bar player control is enabled.
expiresSets or retrieves the expiration date of data persisted with the userData behavior.
folderSets or retrieves a namespace extension, address, or path.
hasNextItemSets or retrieves a value that indicates whether any successive items follow the current item in the playlist.
heightRetrieves the vertical resolution of the screen.
imageSets or retrieves the DirectAnimation Image (DAImage class) displayed by the anim:DA element.
javaEnabledRetrieves whether the Microsoft virtual machine (Microsoft VM) is enabled.
nameSets or retrieves the name of the media.
nextItemSets or retrieves the next media item in a playlist, if there is one.
openStateSets or retrieves an integer that indicates the open state of the Media Bar player.
platformRetrieves the platform on which the browser is running.
playlistInfoSets or retrieves playlist information, if a playlist exists.
playStateSets or retrieves an integer that indicates the play state of the Media Bar player.
soundSets or retrieves the DirectAnimation sound (DASound class) played by the anim:DA element.
sourceURLSets or retrieves the URL of the media.
staticsRetrieves an object containing the DAStatics class library used with DirectAnimation.
systemLanguageRetrieves the default language that the system is running.
targetSets or retrieves the name of a window or frame that is the target for navigation.
userLanguageRetrieves the current user language.
widthRetrieves the horizontal resolution of the screen.
XMLDocumentRetrieves a reference to the XML Document Object Model (DOM) exposed by the object.
Methods
addComponentRequestAdds the specified component to the queue of components to be installed.
addDABehaviorAdds a DirectAnimation behavior (DABehavior class) to the run list when the behavior is not part of the animation model.
clearComponentRequestClears the queue of all component download requests.
compareVersionsCompares two version numbers.
doComponentRequestDownloads all the components that have been queued using addComponentRequest.
getAttributeRetrieves the value of the specified attribute.
getAttributeNameReturns the name of the attribute whose index has been specified.
getComponentVersionRetrieves the version of the specified component.
getItemInfoReturns the value of the specified attribute for the current media.
isComponentInstalledRetrieves whether the specified component is available.
isHomePageDetermines whether the specified URL refers to the client's home page.
loadLoads an object participating in userData persistence from a UserData store.
navigateNavigates the window to the specified location and displays the contents in folder view.
navigateFrameNavigates the window or frame to the specified location and displays the contents in folder view.
navigateHomePageNavigates the browser to a user's home page.
playNextStarts playback of the next media item in the playlist, if a playlist is present.
playURLLoads media from a URL into the Media Bar and starts playback.
removeAttributeRemoves the specified attribute from the object.
removeDABehaviorRemoves a DirectAnimation behavior (DABehavior class) added by the addDABehavior method.
saveSaves an object participating in userData persistence to a UserData store.
setAttributeSets the value of the specified attribute.
setHomePageSets a user's home page to the specified value.
startDownloadDownloads the specified file.
stopStops playback of the media that is currently playing.
Events
onhideFires when the Media Bar player is hidden.
onloadFires from a persistent element when the page reloads.
onopenstatechangeFires when the Media Bar player changes its open state.
onplaystatechangeFires when the Media Bar player changes its play state.
onsaveFires from a persisted element when the Web page is saved or bookmarked, or when the user navigates away from the page.
onshowFires when the Media Bar player becomes visible.