home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World Plus! (NZ) 2000 September
/
PCWORLD_PLUS.iso
/
review
/
wmp7.exe
/
RCDATA
/
CABINET
/
wmploc.DLL
/
256
/
138
< prev
next >
Wrap
Text (UTF-16)
|
2000-06-26
|
7KB
|
170 lines
// Windows Media Player - Copyright 2000 Microsoft Corporation.
function InitVisualizations()
{
InitMe();
}
function CloseVisualizations()
{
}
function OnDownloadingMediaViz()
{
AddBanner.image="WMPImage_AdBanner";
var strToolTip = player.currentmedia.getItemInfo("BannerAbstract");
AddBanner.upToolTip = strToolTip;
}
function OnBannerClick()
{
var strTargetURL = player.currentmedia.getItemInfo("BannerInfoURL");
if ( strTargetURL != "")
{
player.launchURL(strTargetURL);
}
}
function OnBannerMouseOver()
{
if ( player.currentmedia.getItemInfo("BannerInfoURL") != "")
{
AddBanner.cursor = "hand";
}
else
{
AddBanner.cursor = "system";
}
}
function VizPrev()
{
if (event.shiftKey)
{
myeffect.previousEffect();
}
else
{
myeffect.previous();
}
var nPreset = myeffect.currentPreset;
mediacenter.effectType = myeffect.currentEffectType;
mediacenter.effectPreset = nPreset;
}
function VizNext()
{
if (event.shiftKey)
{
myeffect.nextEffect();
}
else
{
myeffect.next();
}
var nPreset = myeffect.currentPreset;
mediacenter.effectType = myeffect.currentEffectType;
mediacenter.effectPreset = nPreset;
}
function InitMe()
{
if (osMediaOpen == player.OpenState)
{
if (player.currentmedia.getItemInfo("BannerURL") != "")
{
ShowBanner(true);
}
else
{
ShowBanner(false);
}
if (player.currentMedia.ImageSourceWidth > 0)
{
ShowVisualizations(false);
video1.visible=true;
}
else
{
playlistname.value = player.currentmedia.getiteminfo("Author");
trackname.value = player.currentmedia.name;
VizTitle.value = myeffect.currentEffectTitle + ": " + myeffect.currentPresetTitle;
if (": " == VizTitle.value)
VizTitle.value = "";
ShowVisualizations(true);
video1.visible=false;
}
}
else if (osPlaylistChanging == player.OpenState)
{
ShowVisualizations(false);
video1.visible=false;
ShowBanner(false);
}
else
{
ShowVisualizations(false);
video1.visible=false;
}
}
function ShowVisualizations(state)
{
if (false == mediacenter.showEffects)
{
myeffect.visible=false;
svEffectsControls.visible=false;
}
else
{
myeffect.visible=state;
svEffectsControls.visible=state;
}
Titles.visible=state;
}
function myOnVideoStart()
{
video1.visible=true;
ShowVisualizations(false);
}
function myOnVideoEnd()
{
video1.visible=false;
ShowVisualizations(true);
}
function OnPlayStateChangeViz()
{
InitMe();
}
function OnOpenStateChangeViz()
{
InitMe();
}
function ShowBanner(state)
{
if (state != svBanner.visible)
{
svBanner.visible = state;
if (state == true)
{
svBanner.visible = true;
svScreen.height -= svBanner.height;
}
else
{
svBanner.visible = false;
svScreen.height += svBanner.height;
}
}
}