📄 open.asp
字号:
<!--#include file="articleconn.asp"-->
<html>
<head>
<title>天空网络-电影系统演示站点-播放器</title>
<Script Language="JavaScript">
if(window.name!="天空网络-电影系统演示站点")
IEvar=navigator.appVersion.substring(navigator.appVersion.indexOf('MSIE')+5,navigator.appVersion.indexOf(';',17));
if(IEvar=="6.0")
{
ie6 = true;
width_add = 10;
height_add = 29;
jjjj = 5;
hand_add = -14;
}
else
{
ie6 = false;
width_add = 0;
height_add = 0;
jjjj = 0;
hand_add = 0;
}
b_width = 0;
b_height = 0;
//屏蔽右键
function no_newwin(){
if((event.ctrlKey)&&(event.keyCode==78)){
event.keyCode=0;
event.returnValue=false;
}
}
function click()
{
return false;
}
document.oncontextmenu=click;
document.onmousemove=click;
document.ondragstart=doDragStart
function doDragStart() {event.returnValue=false}
//-----------------------------------------------------------------------------------------
var Real;
Real='mPlayer.';
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;
if ((newleft<movelen+20) && (newleft>=0) && (mPlayer.PlayState<=2) && (mPlayer.OpenState==6)) {
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;
}
}
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 ballmove()
{//移动进度条
movelen = movie.style.pixelWidth-20;
aa = mPlayer.CurrentPosition;
dd = mPlayer.Duration;
if (mPlayer.FILENAME!="" && isFinite(Math.round(aa/dd*movelen)))
{
mblock.style.left = Math.round(aa/dd*movelen);
}
balltime = setTimeout('ballmove();',1000);
}
function SetPosition(Pos)
{
eval(Real+'CurrentPosition='+Pos);
}
function SetVolume(Pos)
{
eval(Real+'Volume=Pos');
}
function SetFastForward()
{
if (mPlayer.CanScan)
eval(Real+'FastForward()');
}
function SetFastReverse()
{
if (mPlayer.CanScan)
eval(Real+'FastReverse()');
}
function SetMute(Status)
{
if (Status)
{
eval(Real+'Mute=true');
}
else
eval(Real+'Mute=false');
eval(Real+'Play()');
}
function GetLength()
{
return eval(Real+'Duration');
}
function GetPosition()
{
tt=eval(Real+'CurrentPosition');
return tt*1000;
}
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)
{
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'");
pause();
}
else
{
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'");
play();
}
}
function Stop() {
if (mPlayer.FILENAME!="")
{
mPlayer.Stop();
if (Playing)
{
Playing = false;
pp001.src = "image/toole_03.gif";
}
if (PauseStatus==0)
{
PauseStatus = 1;
}
mblock.style.left=0;
mPlayer.CurrentPosition = 0;
}
}
function pause(){
Playing = false;
if (mPlayer.FILENAME!="")
{
if (mPlayer.PlayState==2 || mPlayer.OpenState==6)
{
if (PauseStatus==0)
{
PauseStatus = 1;
}
if (mPlayer.PlayState != 0) mPlayer.Pause();
}
}
}
function play(){
Playing = true;
if (mPlayer.FILENAME!="")
{
if (PauseStatus==1)
{
PauseStatus = 0;
}
if (mPlayer.CurrentPosition == mPlayer.Duration || mPlayer.CurrentPosition==0) mblock.style.left=0;
if (mPlayer.PlayState==0 || mPlayer.PlayState==1 || mPlayer.PlayState==8) mPlayer.Play();
}
}
//---------------------------------------------------------------------------------
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()
{//关闭窗口
if (mPlayer.PlayState==2 || mPlayer.OpenState==3)
mPlayer.Stop();
window.close();
}
function DoFull()
{//全屏播放
eval(Real+'DisplaySize=3');
}
function DoMin()
{//最小化窗口
oldwidth=window.screenLeft;
oldheight=window.screenTop;
window.moveTo(-2000,-2000);
window.attachEvent("onfocus",res);
}
function res() {
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -