home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Kompuutteri Kaikille K-CD 2001 #5
/
K-CD_2001-05.iso
/
WMPSkins
/
Setup.exe
/
skin.js
< prev
next >
Wrap
Text File
|
2000-07-27
|
2KB
|
107 lines
var plIsOpen = false;
var eqIsOpen = false;
var speed = 250;
var isOpen = false;
var isOpen2 = false;
function moveDrawer1() {
righthand.visible="true"
righthandclose.visible="false"
isOpen = true;
plist.visible = true;
}
function closerighthand() {
righthand.visible="false"
righthandclose.visible="true"
}
function displaylefthand() {
lefthand.visible="true"
lefthandclose.visible="false"
isOpen = true;
}
function closelefthand() {
lefthand.visible="false"
lefthandclose.visible="true"
}
function Init()
{
plist.setColumnResizeMode( 0, "Stretches" );
plist.setColumnResizeMode( 1, "AutoSizeData" );
}
function togglePlView() {
if(plIsOpen) {
plist.visible = false;
vPlist.moveto(0,0,speed);
} else {
vPlist.moveto(100,100,speed);
}
plIsOpen = !plIsOpen;
}
function vPListOnEndMove(){
if(plIsOpen) {
plist.visible = true;
} else {
}
}
function togglePlVis(bool) {
if(plIsOpen) {
plist.visible = true;
}
}
function resetEq() {
eq.gainLevel1=0;
eq.gainLevel2=0;
eq.gainLevel3=0;
eq.gainLevel4=0;
eq.gainLevel5=0;
eq.gainLevel6=0;
eq.gainLevel7=0;
eq.gainLevel8=0;
eq.gainLevel9=0;
eq.gainLevel10=0;
}
function OnTimerTick()
{
var position = player.Controls.currentPosition;
var mm = ((position < 600) ? "0" : "")
+ Math.floor(position / 60);
var ss = ((position%60) < 10 ? "0" : "")
+ Math.floor(position % 60);
metadataTime.value = mm + ":" + ss;
}
function OnOpenStateChange()
{
if(player.OpenState == osMediaOpen)
{
UpdateMetadata();
}
}
function UpdateMetadata()
{
metadata.value =
player.currentmedia.getiteminfo("author");
var temp = player.currentmedia.name;
if(temp != "")
{
if(metadata.value != "")
{
metadata.value += " -- ";
}
metadata.value += temp;
}
metadata.scrolling = metadata.textWidth>metadata.width;
}