![]() |
Previous | Next |
Global attributes are attributes that provide easy access to certain player elements or objects from anywhere within a skin.
The player global attribute is a reference to the Player object, and is used to access the primary functionality of Windows Media Player.
Example:
<BUTTON
onclick="jscript:player.controls.play();"
/>
The theme global attribute is a reference to the THEME element. This is the proper way to access THEME attributes, rather than by specifying an ID within the THEME element.
Example:
<TEXT
value="open"
onclick="jscript:theme.openView('newView');"
/>
The view global attribute is a reference to the current VIEW. This can be used instead of the ID specified within the various VIEW elements.
Example:
<BUTTON
id=”quitbutton”
onclick=”jscript:view.close();”
/>
The event global attribute is used to access event attributes from within event handlers.
Example:
<BUTTON
onclick=”jscript:if (event.altKey == true) myText.value=’ALT’;”
/>
Previous | Next |