home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Microsoft Prodotti Consumer
/
MicrosoftConsumer.iso
/
msn
/
MSN.wmz
/
msn.js
< prev
next >
Wrap
Text File
|
2000-07-17
|
3KB
|
137 lines
/*
⌐2000 Averett&Associates. All rights reserved.
*/
var vis = 0;
var vid = 1;
var currentPane = 0;
var vidIsRunning = false;
var temp =false;
var hold = false;
var plview = 2;
var eqview = 3;
var entp = 0;
var wlp = 1;
var morep = 2;
var funp = 3;
function Init()
{
viss.currentEffectType = mediacenter.effectType;
viss.currentPreset = mediacenter.effectPreset;
plst.setColumnResizeMode(0, "Stretches");
OnOpenStateChange();
OnPlayStateChange();
}
function OnClose()
{
mediacenter.effectType = viss.currentEffectType;
mediacenter.effectPreset = viss.currentPreset;
}
function OnOpenStateChange()
{
if(player.OpenState == osMediaOpen)
{
vidIsRunning =
(player.currentMedia.ImageSourceWidth>0);
SetVisibility(vidIsRunning?vid:vis);
}
}
function OnPlayStateChange()
{
switch(player.PlayState)
{
case psStopped:
viss.visible = false;
break;
case psPaused:
viss.visible = false;
break;
case psPlaying:
viss.visible = !vidIsRunning;
break;
}
}
function SetVisibility(newPane)
{
switch(newPane)
{
case vis:
viss.visible = true;
vidd.visible =false;
eqts.visible = false;
plst.visible=false;
break;
case vid:
vidd.visible = true;
viss.visible = false;
eqts.visible = false;
plst.visible=false;
break;
case plview:
if (plst.visible==true)
{plst.visible=false;
OnOpenStateChange();}
else
{vidd.visible = false;
viss.visible = false;
eqts.visible = false;
plst.visible=true;
}
break;
case eqview:
if (eqts.visible==true)
{eqts.visible=false;
OnOpenStateChange();}
else
{vidd.visible = false;
viss.visible = false;
plst.visible=false;
eqts.visible=true;
}
}
currentPane = newPane;
}
function SetLinks(category)
{
switch(category)
{
case entp:
wlb.down=funb.down=moreb.down=false;
wllinks.visible=morelinks.visible=stufflinks.visible=false;
entlinks.visible=!entlinks.visible;
break;
case wlp:
entb.down=funb.down=moreb.down=false;
entlinks.visible=morelinks.visible=stufflinks.visible=false;
wllinks.visible=!wllinks.visible;
break;
case morep:
wlb.down=funb.down=entb.down=false;
wllinks.visible=entlinks.visible=stufflinks.visible=false;
morelinks.visible=!morelinks.visible;
break;
case funp:
wlb.down=entb.down=moreb.down=false;
wllinks.visible=morelinks.visible=entlinks.visible=false;
stufflinks.visible=!stufflinks.visible;
break;
}
}