home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2004 October
/
Chip_2004-10_cd1.bin
/
opsys
/
wmakeup
/
downloads
/
Juke2.wmz
/
STSJUKE2.JS
< prev
next >
Wrap
Text File
|
2004-07-25
|
2KB
|
94 lines
var pl_isOpen = false;
var eq_isOpen = false;
var visPane = 0;
var currentPane = 0;
var speed = 500;
function OnLoad()
{
{ OnOpenStateChange(); OnPlayStateChange();}
updateMetadata(); OnStatusChange();
}
function OnOpenStateChange()
{ if(player.OpenState == osMediaOpen)
{ UpdateMetadata(); }}
function OnPlayStateChange()
{ UpdateMetadata(); }
function UpdateMetadata()
{
metadata.value =
player.currentmedia.getiteminfo("#author");
if(metadata.value == "")
{
metadata.value =
player.currentmedia.getiteminfo("author");
}
if(metadata.value != "")
{
metadata.value += " -- ";
}
metadata.value += player.currentmedia.name;
}
function showPlaylist() {
if(pl_isOpen){
pl.visible = true;
} else {
pl.visible = false;}}
function movePldrawer() {
if (pl_isOpen) {
Pldrawer.moveTo(210,134,500);
openPl.upToolTip = "Open Playlist";
pl_isOpen = false;
pl.visible = false;
} else {
Pldrawer.moveTo(390,134,500);
openPl.upToolTip = "Close Playlist";
pl_isOpen = true;
pl.visible = false;}}
function moveEqdrawer() {
if (eq_isOpen) {
EQdrawer.moveTo(210,134,500);
openEq.upToolTip = "Open Equalizer";
eq_isOpen = false;
} else {
EQdrawer.moveTo(30,134,500);
openEq.upToolTip = "Close Equalizer";
eq_isOpen = true; }
function shuffle(){
shufTxt.visible = player.settings.getMode('shuffle');}
function mute(){
muteTxt.visible = player.settings.getMode('mute');} }
function OnStatusChange()
{
AlbumArtBox.backgroundImage = "";
AlbumArtBox.backgroundImage = "WMPImage_AlbumArtLarge";
}