home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 2004 June
/
PCWorld_2004-06_cd.bin
/
software
/
vyzkuste
/
problemy
/
problemy.exe
/
M2Combo.exe
/
Plugin
/
balance.js
< prev
next >
Wrap
Text File
|
2003-12-16
|
2KB
|
70 lines
/**********************************************************************
=======================================================================
This script is design for MyIE2 sidebar plugin
Requirements:
Windows Media Player 9 Series or later;
IE 6.0;
MyIE2 0.8 Version or later.
Author:
Ptma (or AKing)
Mailto:ptma@163.net
=======================================================================
┤╦╜┼▒╛╙├╙┌MyIE2▓α▒▀└╕▓σ╝■
╧╡═│╨Φ╟≤ú║
Windows Media Player 9 Series ╗≥╕ⁿ╨┬╡─░µ▒╛ú╗
IE 6.0ú╗
MyIE2 0.8 ╗≥╕ⁿ╨┬╡─░µ▒╛íú
╫≈╒▀╨┼╧óú║
Ptma (╙╓ú║AKing)
╡τ╫╙╙╩╝■:ptma@163.net
=======================================================================
*/
//=================================================
var bx,balanceImg;
var Maxbalance, Minbalance;
var balancePos=0;
Maxbalance=110;
Minbalance=60;
curb=32;
//=================================================
function balancemove()
{
if (event.button==1&&(Player.playState == 3)){
left=temp1+event.clientX-bx
if ((left<=Maxbalance)&&(left>=Minbalance))
{balanceImg.style.pixelLeft=left;balanceenddrag();}
else
if(left>Maxbalance)
{balanceImg.style.pixelLeft=Maxbalance;balanceenddrag();}
else
{balanceImg.style.pixelLeft=Minbalance;balanceenddrag();}
return false
}
}
//=================================================
function balanceenddrag(){
if (Player.playState == 3){
curb=balanceImg.style.pixelLeft;
curb=(curb-60)*4-100; //╞╜║Γ╓╡┤╙-100í½+100ú¼┐╔╥╞╢»╛α└δ╬¬ 110-60=50
Setbalance(curb);
//document.onmousemove=null;
}
}
//=================================================
function balancebegindrag(Elm){
if (!document.all)
return
if (!Player.playState == 3)
return
temp1=Elm.style.pixelLeft
balanceImg=Elm
bx=event.clientX;
Elm.onmousemove=balancemove
}
//=================================================
function Setbalance(Pos)
{
Player.settings.balance=Pos;
bal.alt=lngStr("Control","Balance")+": "+Pos;
balancePos=Pos;
}