Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
.gif)
| Previous | Next |
Matching the Windows Media Player Colors
Making your online store Web page match the Windows Media Player color scheme is easy. Simply handle the External.OnColorChange event. To specify a function to handle the event, use code like the following when your Web page loads:
// Set up the color change event. external.OnColorChange = OnAppColor;
Each time the user changes the color scheme of Windows Media Player, the Player will call your function. The following example shows a simple function that sets the Web page background to match the External.appColorLight property:
// Match the current color.
function OnAppColor()
{
window.document.bgColor = external.appColorLight;
}
There are other color properties available for your use as well. See External Object for Type 2 Online Stores.
See Also
- External.appColorLight
- External.OnColorChange Event
- Information Common to Type 1 and Type 2 Online Stores
| Previous | Next |