home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Minami 40
/
MINAMI40.ISO
/
Extra
/
MPSetup.exe
/
1033
/
RCDATA
/
CABINET
/
wmploc.DLL
/
256
/
SETTINGSCOMMON.JS
< prev
next >
Wrap
Text File
|
2002-12-14
|
873b
|
45 lines
// Windows Media Player - Copyright 2002 Microsoft Corporation.
var g_kAlphaToTime = 330;
var g_kAlphaDisabled = 0x80;
var g_kLinkColor = '#ABD5FD';
var g_kDisabledColor = '#9F9F9F'
function PlayingDVD()
{
return ( (player.currentPlaylist.count>0) && (player.currentPlaylist.item(0).sourceURL.indexOf("wmpdvd:")==0));
}
function OnOpenStateChangeEvent(NewState, pfnHandler)
{
switch (NewState)
{
case osPlaylistOpenNoMedia:
case osMediaOpen:
pfnHandler();
break;
}
}
function SetDisabledUI(disabled)
{
if (!(helper.isXPOrBetter)) return;
if (disabled)
{
DisabledGray.visible=true;
}
else
{
DisabledGray.alphaBlendTo(0,g_kAlphaToTime);
}
}
function DoACCKeyPress(keyCode, dofunction)
{
if ( (keyCode==32) || (keyCode==13) )
{
dofunction();
}
}