📄 open1.asp
字号:
function doDragStart() {event.returnValue=false}
//-----------------------------------------------------------------------------------------
var Real;
Real='rPlayer.';
var Mute=false;
var CanSetPos=true;
var SetPosStart=false;
var SetVolStart=false;
var loop, timer, initialised;
var speed=50;
var oldwidth=566,oldheight=502;
moveon=false;movelen=300;rm_tollen=0;timelen=0;volumlen=56;iScrollLength=140;
document.onmouseup=Total_Up;
function Total_Up(){
if(event.button!=2){
if(SetPosStart){
setpos();
ballmove();
}
if(SetVolStart) setvol();
}
}
function moves()
{
if(CanSetPos&&event.button!=2)
{
orix=event.x;
orileft=mblock.style.pixelLeft;
if(moveon)
{
clearTimeout(balltime);
}
SetPosStart=true;
}
else
return false;
}
function ChangePos() {
newleft=event.x;
{
SetPosStart=false;
if (event.x < movelen+10)
newleft=event.x-10;
else
newleft=movelen-1;
if (event.x < 10)
newleft=0;
rm_tollen = GetLength();
rcp=Math.round((newleft/movelen)*rm_tollen);
SetPosition(rcp);
mblock.style.left = newleft;
play()
}
}
function movego()
{
if(SetPosStart)
{
newx=event.x;
disx=newx-orix;
newleft=orileft+disx;
if(newleft>-1&&newleft<movelen) mblock.style.left=newleft;
}
}
function setpos()
{
SetPosStart=false;
newleft=mblock.style.pixelLeft;
rm_tollen = GetLength();
rcp=Math.round((newleft/movelen)*rm_tollen);
SetPosition(rcp);
}
function vols()
{
if(event.button!=2)
{
orix=event.x;
orileft=vblock.style.pixelLeft;
SetVolStart=true;
}
}
function volgo()
{
if(SetVolStart)
{
newx=event.x;
disx=newx-orix;
newleft=orileft+disx;
if(newleft>5&&newleft<=volumlen) vblock.style.left=newleft;
}
}
function setvol()
{//设置音量
SetVolStart=false;
newleft=vblock.style.pixelLeft;
newvol=-(Math.round((volumlen-newleft)*2000/(volumlen-6)));
SetVolume(newvol);
}
function RealincreaseVolume(){
if(window.rPlayer!=null)
{
if(volumlen >= 100 )
volumlen = 100;
else
volumlen += 10;
rPlayer.SetVolume(volumlen);
}}
function RealdecreseVolume()
{
if(window.rPlayer!=null)
{
if(volumlen <= 0 )
volumlen = 0;
else
volumlen -= 10;
rPlayer.SetVolume(volumlen);
}}
//-----------------------------------------------------------------------------------------
function ballmove()
{//移动进度条
movelen = movie.style.pixelWidth-20;
aa = rPlayer.GetPosition();
dd = rPlayer.Getlength();
if (rPlayer.FILENAME!="" && isFinite(Math.round(aa/dd*movelen)))
{
mblock.style.left = Math.round(aa/dd*movelen);
}
balltime = setTimeout('ballmove();',1000);
}
function SetPosition(Pos)
{
eval(Real+'SetPosition(Pos)');
}
function SetVolume(Pos)
{
eval(Real+'Volume=Pos');
}
function SetFastForward()
{
if (rPlayer.CanScan)
eval(Real+'FastForward()');
}
function SetFastReverse()
{
if (rPlayer.CanScan)
eval(Real+'FastReverse()');
}
function GetLength()
{
return eval(Real+'GetLength()');
}
function GetPosition()
{
tt=eval(Real+'GetPosition()');
return tt*1000;
}
function SetMute(Status)
{
if (Status)
{
eval(Real+'Mute=true');
}
else
eval(Real+'Mute=false');
eval(Real+'Play()');
}
function FastpositionSet() {
if(window.rPlayer!=null)
{
var iLength=rPlayer.GetLength();
var iPosition=rPlayer.GetPosition();
var FastPosition=iLength/20;
if ((iPosition+FastPosition)<=iLength)
{
iPosition=iPosition+FastPosition;
rPlayer.SetPosition(iPosition);
}
}
}
function BackpositionSet() {
if(window.rPlayer!=null)
{
var iLength=rPlayer.GetLength();
var iPosition=rPlayer.GetPosition();
var BackPosition=iLength/20;
if (iPosition>=BackPosition)
{
iPosition=iPosition-BackPosition;
rPlayer.SetPosition(iPosition);
}
}
}
function ClickSound(aa)
{
if (Mute)
{
Mute=false;
SetMute(Mute);
aa.src='image/toole_08_over.gif';
}
else
{
Mute=true;
SetMute(Mute);
aa.src='image/toole_08_down.gif';
}
}
//-------------------------------------------------
var PauseStatus = 0;
var Fill = false;
var Playing=true;
function Playorpasue()
{
if (Playing)
{
pause();
}
else
{
play();
}
}
function Stop() {
{
rPlayer.DoStop();
if (Playing)
{
Playing = false;
pp001.src = "image/toole_03.gif";
pp001.onmouseover=new Function("this.src = 'image/toole_03_over.gif'");
pp001.onmouseout=new Function("this.src = 'image/toole_03.gif'");
}
if (PauseStatus==0)
{
PauseStatus = 1;
}
mblock.style.left=0;
}
}
function pause(){
pp001.src = "image/toole_03.gif";
pp001.onmouseover=new Function("this.src = 'image/toole_03_over.gif'");
pp001.onmouseout=new Function("this.src = 'image/toole_03.gif'");
Playing = false;
{
{
if (PauseStatus==0)
{
PauseStatus = 1;
}
rPlayer.DoPause();
}
}
}
function play(){
pp001.src = "image/toole_04.gif";
pp001.onmouseover=new Function("this.src = 'image/toole_04_over.gif'");
pp001.onmouseout=new Function("this.src = 'image/toole_04.gif'");
Playing = true;
{
if (PauseStatus==1)
{
PauseStatus = 0;
}
rPlayer.DoPlay();
}
}
//---------------------------------------------------------------------------------
function DoFill()
{//最大化/还原窗口
if (Fill)
{//还原窗口
window.moveTo((screen.width-b_width)/2,(screen.height-b_height)/2);
window.resizeTo(b_width+width_add,b_height+height_add);
fill001.src = "image/Header_06.gif";
Fill = false;
fill001.alt = "最大化";
}
else
{//最大化窗口
window.moveTo(0,0);
b_width = document.body.clientWidth;
b_height = document.body.clientHeight;
window.resizeTo(screen.width,screen.height);
fill001.src = "image/Header_08.gif";
Fill = true;
fill001.alt = "还原";
}
}
function closewin()
{//关闭窗口
rPlayer.DoStop();
window.close();
}
function DoFull()
{//全屏播放
eval(Real+'SetFullScreen()');
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -