home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2003 January
/
ChipCD_1.03.iso
/
zkuste
/
wmakeup
/
download
/
claw.wmz
/
claw.js
< prev
next >
Wrap
Text File
|
2000-06-23
|
2KB
|
108 lines
/*
⌐2000 Microsoft Corporation. All rights reserved.
*/
var vidIsRunning = false;
var visPane = 0;
var plPane = 1;
var audPane = 2;
var vidPane = 3;
var currentPane = 0;
var currentFrame = '';
var currentPic = 0;
function OnLoad()
{
pl.setColumnResizeMode(0, "Stretches");
pl.setColumnResizeMode(1, "AutoSizeData");
OnOpenStateChange();
vidIsRunning ? StartVideo() : EndVideo();
}
function OnOpenStateChange()
{
if(player.openState == osMediaOpen)
{
UpdateMetadata();
vidIsRunning =
(player.currentMedia.ImageSourceWidth>0);
}
}
function SetPane(newPane)
{
switch(newPane)
{
case visPane:
visEffects.visible = true;
pl.visible =
sAud.visible =
vid.visible = false;
break;
case plPane:
pl.visible = true;
visEffects.visible =
sAud.visible =
vid.visible = false;
break;
case audPane:
sAud.visible = true;
visEffects.visible =
pl.visible =
vid.visible = false;
break;
case vidPane:
vid.visible = true;
visEffects.visible =
pl.visible =
sAud.visible = false;
break;
}
currentPane = newPane;
}
function StartVideo()
{
SetPane(vidPane);
}
function EndVideo()
{
if(currentPane==vidPane)
{
SetPane(visPane);
}
}
function UpdateMetadata()
{
var name = player.currentmedia.name;
metadata.value =
player.currentmedia.getiteminfo("author");
if(name!="" && metadata.value!="")
{
metadata.value += xSep.toolTip;
}
metadata.value += name;
metadata.scrolling =
(metadata.textWidth>metadata.width);
}
function AdjustAudio()
{
eq.gainLevel1 = bass.value;
eq.gainLevel2 = (8*bass.value + treble.value)/9;
eq.gainLevel3 = (7*bass.value + 2*treble.value)/9;
eq.gainLevel4 = (6*bass.value + 3*treble.value)/9;
eq.gainLevel5 = (5*bass.value + 4*treble.value)/9;
eq.gainLevel6 = (4*bass.value + 5*treble.value)/9;
eq.gainLevel7 = (3*bass.value + 6*treble.value)/9;
eq.gainLevel8 = (2*bass.value + 7*treble.value)/9;
eq.gainLevel9 = ( bass.value + 8*treble.value)/9;
eq.gainLevel10 = treble.value;
}