Windows Media Player SDK banner art
PreviousNext

JScript Files

JScript files are loaded with the scriptFile attribute of the VIEW element. They must be text files and should use the file extension .js. If you have a JScript file that has the same name as the skin definition file, the JScript file will be loaded at the same time as the skin definition file. For example, if you have a skin definition file named laure.wms, and you have a JScript file called laure.js, the laure.js file will be automatically loaded.

You can use Microsoft JScript to create elaborate functionality behind your skin. By creating functions in JScript, you can do almost anything imaginable with skins. For example, you could use a different playlist for every day of the week, but always have the same one on Friday. See Using JScript for more information about using JScript with skins. Note that VBScript, which can be used when embedding the Windows Media Player control in a Web page, is not supported for use with skins.

PreviousNext


© 2000-2001 Microsoft Corporation. All rights reserved.