open1.asp
资源名称:qnmov30.rar [点击查看]
上传用户:qyswxdl
上传日期:2013-06-01
资源大小:1373k
文件大小:65k
源码类别:
家庭/个人应用
开发平台:
ASP/ASPX
- <!--#include file="articleconn.asp"-->
- <!--#include file="inc/config.asp"-->
- <%=timmb%><%=timemb%><%=mbname%><%=why%>
- <%'网吧用户IP自动登录
- function LockmbIP(sip)
- dim str1,str2,str3,str4
- dim num,csk
- lockmbIP=false
- if isnumeric(left(sip,2)) then
- str1=left(sip,instr(sip,".")-1)
- sip=mid(sip,instr(sip,".")+1)
- str2=left(sip,instr(sip,".")-1)
- sip=mid(sip,instr(sip,".")+1)
- str3=left(sip,instr(sip,".")-1)
- str4=mid(sip,instr(sip,".")+1)
- if isNumeric(str1)=0 or isNumeric(str2)=0 or isNumeric(str3)=0 or isNumeric(str4)=0 then
- else
- num=cint(str1)*256*256*256+cint(str2)*256*256+cint(str3)*256+cint(str4)-1
- sql20="select count(*) from goip where mbname<>'' and ip1 <="&num&" and ip2 >="&num&""
- set csk=conn.execute(sql20)
- Set csk3=Server.CreateObject("ADODB.Recordset")
- sql21="select * from goip where mbname<>'' and ip1 <="&num&" and ip2 >="&num&""
- csk3.open sql21,conn,1,3
- if csk3.eof and csk3.bof then
- else
- mbname=csk3("mbname")
- timmb=csk3("tim")
- timemb=csk3("time")
- why=csk3("why")
- sip1=csk3("sip1")
- sip2=csk3("sip2")
- end if
- if csk(0)>0 then
- lockmbIP=true
- end if
- set csk=nothing
- end if
- end if
- end function
- if LockmbIP(Request.ServerVariables("REMOTE_ADDR")) then
- if now() > timemb then
- response.write"<script>alert('您的网吧帐号已经到期请尽快续费!nn到期日期:"& timemb &"');window.close();</Script>"
- response.end
- end if
- dim sql
- dim rs
- articleid=request("film2")
- urlid=request("film1")
- if articleid="" or urlid="" then
- response.redirect "error.asp?id=4"
- response.end
- end if
- set rs=server.createobject("adodb.recordset")
- sql="select serverip,canlook,movietype,title,count from learning where articleid="&articleid
- rs.open sql,conn,1,1
- serverip=rs("serverip")
- set rsb=server.createobject("adodb.recordset")
- rsb.open "select * from tolook",conn,1,3
- rsb.addnew
- rsb("title")=rs("title")
- rsb("userip")=request.servervariables("remote_addr")
- rsb("userid")=mbname
- rsb("lookordown")="网吧在线"
- rsb("looktime")=now()
- rsb.update
- rsb.close
- set rsb=nothing
- response.cookies(""&urlid&"")="yes"
- %>
- <html>
- <head>
- <title>万众电影-播放器</title>
- <Script Language="JavaScript">
- 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='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()');
- }
- function DoMin()
- {//最小化窗口
- oldwidth=window.screenLeft;
- oldheight=window.screenTop;
- window.moveTo(-2000,-2000);
- window.attachEvent("onfocus",res);
- }
- function res() {
- window.moveTo(oldwidth,oldheight);
- window.detachEvent("onfocus",res)
- }
- </Script>
- <script language="VBScript">
- sub Mute
- imagesrc=document.all("silent").src
- singlechar=mid(imagesrc,instr(imagesrc,".gif")-1,1)
- if singlechar="8" then
- document.all("silent").src="image/toole_08_down.gif"
- document.all("silent").alt="恢复"
- else
- document.all("silent").src="image/toole_08.gif"
- document.all("silent").alt="静音"
- end if
- rPlayer.setMute(not rPlayer.GetMute())
- end sub
- </script>
- <script for="window" event="onresize" LANGUAGE="JavaScript">
- //改变窗口大小了限制
- if (toole.style.display=='block' && ((document.body.clientWidth<440) || (document.body.clientHeight<300+hand_add)))
- {
- window.resizeTo(440+width_add,428+height_add+hand_add);
- }
- if (toole.style.display=='none' && ((document.body.clientWidth<262) || (document.body.clientHeight<252+hand_add)))
- {
- window.resizeTo(262+width_add,252+height_add+hand_add);
- }
- Image1.style.height = MP1.style.pixelHeight-24;
- </script>
- <SCRIPT FOR="rPlayer" EVENT="Buffering(bStart)" LANGUAGE="JavaScript">
- if (bStart == 0){
- Image1.style.visibility = "hidden";
- }
- else{
- Image1.style.visibility = "visible";
- }
- </SCRIPT>
- <SCRIPT FOR="rPlayer" EVENT="PlayStateChange(lOldState, lNewState)" LANGUAGE="JavaScript">
- if (lNewState==0 || lNewState==8){
- Playorpasue();
- }
- </SCRIPT>
- <SCRIPT FOR="rPlayer" EVENT="OpenStateChange(lOldState, lNewState)" LANGUAGE="JavaScript">
- if (lNewState==0){
- Playorpasue();
- }
- </SCRIPT>
- <SCRIPT FOR="rPlayer" EVENT="Error()" LANGUAGE="JavaScript">
- if (rPlayer.ErrorCode==-1072889837)
- Play_Mess.innerHTML="<font color="red" size=3>无法连接到服务器,可能是网络问题,请重试。</font>";
- if (rPlayer.ErrorCode==-2147220992)
- Play_Mess.innerHTML="<font color="red" size=3>没有适当的解码器,请重试或安装新的微软播放器。</font>";
- if (rPlayer.ErrorCode==-2147220945)
- Play_Mess.innerHTML="<font color="red" size=3>文件格式错,请通知我们,我们将尽快进行维修。</font>";
- if (rPlayer.ErrorCode==-1072889830)
- Play_Mess.innerHTML="<font color="red" size=3>文件打不开,请通知我们,我们将尽快进行维修。</font>";
- if (rPlayer.ErrorCode==-2146697211)
- Play_Mess.innerHTML="<font color="red" size=3>无法访问这个服务器,可能是代理服务器不可用。</font>";
- if (rPlayer.ErrorCode==-1072887822)
- Play_Mess.innerHTML="<font color="red" size=3>无法连接到一个广播频道。</font>";
- </SCRIPT>
- <SCRIPT FOR="rPlayer" EVENT="Warning(lType, lParam, sDescription)" LANGUAGE="JScript">
- Play_Mess.innerHTML="<font color="red" size=3>"+sDescription+"</font>";
- </SCRIPT>
- <SCRIPT LANGUAGE="VBScript">
- Sub rplayer_OnBuffering(lFlags,lPercentage)
- if (lPercentage=100) then
- StartPlay=false
- if (FirstPlay) then
- Image1.style.visibility = "visible"
- else
- MP1.style.visibility = "visible"
- Image1.style.visibility = "hidden"
- end if
- exit sub
- end if
- End Sub
- Sub rplayer_OnErrorMessage(uSeverity, uRMACode, uUserCode, pUserString, pMoreInfoURL, pErrorString)
- select case rPlayer.GetLastErrorRMACode()
- case -2147221496
- window.alert("您的网络繁忙暂时中断!")
- case -2147221433,-2147221428,-2147221417,-2147217468
- window.alert("您的网络繁忙暂时中断!")
- case else
- window.alert("在线用户过多,服务器限制,请抢线或稍后观看!")
- end select
- end sub
- </SCRIPT>
- <script language="JavaScript">
- var dragapproved=false;
- var eventsource,x,y;
- function move()
- {//移动窗口
- if (event.button==1&&dragapproved) //改变被拖动元素在页面上的位置
- {
- top.window.moveBy(event.clientX-x, event.clientY-y);
- return false;
- }
- }
- function size()
- {//改变窗口大小
- if (event.button==1&&dragapproved)
- {
- top.window.resizeTo(event.clientX+5+width_add-jjjj, event.clientY+5+height_add-jjjj);
- return false;
- }
- }
- function drags()
- {
- if (event.srcElement.className=="drag") //捕捉鼠标和被拖动元素的当前位置
- {
- dragapproved=true;
- x=event.clientX;
- y=event.clientY;
- document.onmousemove=move;
- }
- if (event.srcElement.className=="rs001") //捕捉鼠标和被拖动元素的当前位置
- {
- dragapproved=true;
- document.onmousemove=size;
- }
- }
- document.onmousedown=drags; //鼠标左键按下时,准备拖动
- document.onmouseup=new Function("dragapproved=false");//鼠标左键放开时,拖动停止
- function mini(type)
- {//精简与正常窗口切换
- if (type==1)
- {
- toole.style.display='none';
- scroll01.style.display='none';
- minitoole.style.display='block';
- window.resizeTo(333+width_add,305+height_add+hand_add);
- }
- if (type==0)
- {
- toole.style.display='block';
- scroll01.style.display='block';
- minitoole.style.display='none';
- window.resizeTo((440+width_add),428+height_add+hand_add);
- }
- }
- //---------------------------------------------------------------------------------
- //显示影片进度条时间
- function scrollPositionMouseMove(obj, event)
- {
- iCurrentX=event.x;
- if(parseInt(iCurrentX)>=movelen+20)
- return;
- if(window.MP1!=null)
- {
- iTotalTime=GetLength();
- iPlayTime=parseInt(iCurrentX*iTotalTime/(movelen+20));
- Hour=parseInt(iPlayTime/(60*60*1000));
- Min=parseInt((iPlayTime-Hour*60*60*1000)/(60*1000));
- Sec=parseInt((iPlayTime-Hour*60*60*1000-Min*60*1000)/1000);
- if(String(Hour).length<2)
- strHour="0"+String(Hour);
- else
- strHour=String(Hour);
- if(String(Min).length<2)
- strMin="0"+String(Min);
- else
- strMin=String(Min);
- if(String(Sec).length<2)
- strSec="0"+String(Sec);
- else
- strSec=+String(Sec);
- if(Hour!=0)
- scrollInfo.replaceAdjacentText("afterBegin",strHour+":"+strMin+":"+strSec);
- else
- scrollInfo.replaceAdjacentText("afterBegin",strMin+":"+strSec);
- scrollInfo.style.top=event.y+12;
- scrollInfo.style.left=event.x+15;
- scrollInfo.style.visibility = "visible";
- }
- }
- function scrollPositionMouseOut()
- {
- scrollInfo.style.visibility = "hidden";
- }
- //-------------------------------------------------------------------------------------
- function onLond001()
- {
- setvol();
- ballmove();
- }
- </script>
- </head>
- <body bgcolor="#000000" scroll="no" leftmargin="0" topmargin="0" onunLoad="init();" onLoad="onLond001();" onkeydown="no_newwin()">
- <center>
- <TABLE width="100%" height="100%" BORDER="0" CELLPADDING="0" CELLSPACING="0">
- <TR>
- <TD colspan="3">
- <table id="mini_head" border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse; display: block;" bordercolor="#111111" width="100%">
- <tr>
- <td background="image/mini_Header_02.gif">
- <img border="0" src="image/mini_Header_01.gif" width="4" height="6"></td>
- <td background="image/mini_Header_02.gif" align="right">
- <img border="0" src="image/mini_Header_03.gif" width="3" height="6"></td>
- </tr>
- </table>
- <table id="head" border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse; display: none;" bordercolor="#111111" width="100%">
- <tr>
- <td background="image/Header_02.gif">
- <img border="0" src="image/Header_01.gif" width="135" height="20" onmouseover="this.style.cursor='move'" id="mydiv1" class="drag" alt="移动窗口"><img border="0" src="image/Header_03.gif" width="2" height="20"></td>
- <td background="image/Header_02.gif"></td>
- <td align="right" background="image/Header_02.gif">
- <img border="0" src="image/Header_07.gif" align="absmiddle" width="9" height="9" alt="最小化" onmousedown="DoMin()" onmouseover="this.style.cursor='hand'"><img border="0" src="image/1pix.gif" width="8" height="1"><img border="0" src="image/Header_06.gif" align="absmiddle" width="9" height="9" id="fill001" ALT="最大化" onmousedown="DoFill()" onmouseover="this.style.cursor='hand'"><img border="0" src="image/1pix.gif" width="10" height="1"><img border="0" src="image/Header_05.gif" align="absmiddle" width="9" height="9" ALT="关闭窗口" onmousedown="closewin()" onmouseover="this.style.cursor='hand'"><img border="0" src="image/1pix.gif" width="3" height="1"><img border="0" src="image/Header_04.gif" align="absmiddle" width="5" height="20" onmouseover="this.style.cursor='hand'"></td>
- </tr>
- </table>
- <Script language="JavaScript">
- if (!ie6)
- {
- mini_head.style.display = "none";
- head.style.display = "block";
- }
- </Script>
- </TD>
- </TR>
- <TR>
- <TD background="image/player_01.gif"><IMG SRC="images/Spacer.gif" WIDTH="7" HEIGHT="1" id="left002"></TD>
- <TD><IMG SRC="image/1pix.gif" WIDTH="200" HEIGHT="1" id="temp002"></TD>
- <TD background="image/player_02.gif" style="background-position:right;"><IMG SRC="images/Spacer.gif" WIDTH="6" HEIGHT="1" id="right002"></TD>
- </TR>
- <TR>
- <TD background="image/player_01.gif" width="7" HEIGHT="99%" id="left001"></TD>
- <TD width="99%">
- <object ID="rPlayer" CLASSID="clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA" HEIGHT="100%" WIDTH="100%">
- <param name="_ExtentX" value="25982">
- <param name="_ExtentY" value="2408">
- <param name="AUTOSTART" value="-1">
- <param name="SHUFFLE" value="0">
- <param name="PREFETCH" value="0">
- <param name="NOLABELS" value="0">
- <param name="SRC" value="govodurl.asp?urlid=<%=urlid%>&serverip=<%=serverip%>">
- <param name="CONTROLS" value="ImageWindow">
- <param name="CONSOLE" value="Clip1">
- <param name="LOOP" value="0">
- <param name="NUMLOOP" value="0">
- <param name="CENTER" value="0">
- <param name="MAINTAINASPECT" value="0">
- <param name="BACKGROUNDCOLOR" value="#000000">
- </object>
- <script language="javascript">
- rPlayer.SetEnableContextMenu(false);
- rPlayer.SetWantErrors(true);
- </script>
- </TD>
- <TD background="image/player_02.gif" style="background-position:right;" width="6" HEIGHT="99%" id="right001"></TD>
- </TR>
- <tr>
- <td colspan="3">
- <table id="scroll01" border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%">
- <tr>
- <td background="image/scroll_02.gif" width="3%">
- <img border="0" src="image/scroll_01.gif" width="3" height="15"></td>
- <td background="image/scroll_02.gif" width="2%" align="right">
- <img border="0" src="image/scroll_03.gif" width="2" height="15"></td>
- <td background="image/scroll_04.gif" width="70%">
- <DIV onmouseup="Total_Up()" onmousemove="scrollPositionMouseMove(this, event)" onmouseout="scrollPositionMouseOut()" onmousedown="ChangePos()" id="movie" style="CURSOR: hand; POSITION: relative; TOP: 1px; LEFT: 0px; WIDTH: 100%; HEIGHT: 8px"><DIV id="mblock" style="LEFT: 0px; POSITION: absolute; TOP: 0px; HEIGHT: 8px"><IMG alt="播放进度" src="image/scroll_07.gif" width="20" height="8" border="0"></DIV>
- <DIV id="scrollInfo" style="BORDER: orange 1px ridge; FONT-SIZE: 9px; VISIBILITY: hidden; BACKGROUND: #c0c0c0; POSITION: absolute; zIndex: 9">00:00</DIV>
- </DIV>
- </td>
- <td background="image/scroll_02.gif" width="10%">
- <img border="0" src="image/scroll_05.gif" width="2" height="15"></td>
- <td align="center" background="image/scroll_02.gif" width="9%">
- <img border="0" src="image/scroll_08.gif" width="2" height="14"><img border="0" src="image/1pix.gif" width="1" height="1"><img border="0" src="image/scroll_09.gif" width="7" height="15" alt="左声道" onmousedown="rPlayer.Balance=-10000" onmouseover="this.style.cursor='hand'"><img border="0" src="image/1pix.gif" width="1" height="1"><img border="0" src="image/scroll_08.gif" width="2" height="14"><img border="0" src="image/1pix.gif" width="1" height="1"><img border="0" src="image/scroll_10.gif" width="7" height="15" alt="立体声" onmousedown="rPlayer.Balance=0" onmouseover="this.style.cursor='hand'"><img border="0" src="image/1pix.gif" width="1" height="1"><img border="0" src="image/scroll_08.gif" width="2" height="14"><img border="0" src="image/1pix.gif" width="1" height="1"><img border="0" src="image/scroll_11.gif" width="7" height="15" alt="右声道" onmousedown="rPlayer.Balance=10000" onmouseover="this.style.cursor='hand'"><img border="0" src="image/1pix.gif" width="1" height="1"><img border="0" src="image/scroll_08.gif" width="2" height="14"></td>
- <td align="right" background="image/scroll_02.gif" width="6%">
- <img border="0" src="image/scroll_06.gif" width="4" height="15"></td>
- </tr>
- </table>
- <table id="toole" border="0" cellpadding="0" cellspacing="0" style="display:block; border-collapse: collapse" bordercolor="#111111" width="100%" background="image/toole_02.gif">
- <tr>
- <td background="image/toole_02.gif">
- <img border="0" src="image/toole_01.gif" width="4" height="49"><img border="0" src="image/1pix.gif" width="10" height="1"><img id="pp001" border="0" src="image/toole_04.gif" width="36" height="49" ALT="播放" onmousedown="Playorpasue()" onmouseout="this.src='image/toole_04.gif'" onmouseover="this.src='image/toole_04_over.gif';this.style.cursor='hand'"><img border="0" src="image/toole_05.gif" width="25" height="49" ALT="停止" onmousedown="Stop()" onmouseout="this.src='image/toole_05.gif'" onmouseover="this.src='image/toole_05_over.gif';this.style.cursor='hand'"><img border="0" src="image/1pix.gif" width="10" height="1"><img border="0" src="image/toole_06.gif" width="25" height="49" ALT="快退" onmousedown="BackpositionSet()" onmouseout="this.src='image/toole_06.gif'" onmouseover="this.src='image/toole_06_over.gif';this.style.cursor='hand'"><img border="0" src="image/toole_07.gif" width="25" height="49" ALT="快进" onmousedown="FastpositionSet()" onmouseout="this.src='image/toole_07.gif'" onmouseover="this.src='image/toole_07_over.gif';this.style.cursor='hand'"><img border="0" src="image/1pix.gif" width="6" height="1"></td>
- <td background="image/toole_02.gif" align="right">
- <img src="image/toole_08.gif" style="cursor:hand;" alt="静音" name="silent" width="26" height="49" onclick="vbscript:Mute" border="0"></td>
- <td background="image/toole_02.gif" style="background-repeat: no-repeat;">
- <DIV onmouseup="Total_Up()" onmousemove="volgo()" id="volume" style="LEFT: 0px; WIDTH: 70px; POSITION: relative;HEIGHT: 23px" valgin="top" align="center"><DIV id="vblock"><IMG src="image/toole_16.gif" width="25" height="49" border="0" ALT="减小音量" onmousedown="RealdecreseVolume()" onmouseout="this.src='image/toole_16.gif'" onmouseover="this.src='image/toole_16_over.gif';this.style.cursor='hand'"><IMG src="image/toole_17.gif" width="25" height="49" border="0" ALT="增强音量" onmousedown="RealincreaseVolume()" onmouseout="this.src='image/toole_17.gif'" onmouseover="this.src='image/toole_17_over.gif';this.style.cursor='hand'"></DIV>
- </DIV>
- </td>
- <td background="image/toole_12.gif" style="background-repeat: no-repeat;">
- <MARQUEE id="Play_Mess" WIDTH="100" SCROLLAMOUNT="8" SCROLLDELAY="200" style="margin-left: 8; margin-right: 10;"><FONT color=#284717 size=2>万众电影欢迎您观看:<%=rs("title")%></FONT></MARQUEE>
- </td>
- <td background="image/toole_02.gif">
- <img border="0" src="image/1pix.gif" width="6" height="1"><img border="0" src="image/toole_09.gif" width="25" height="49" alt="全屏播放" onmousedown="DoFull()" onmouseout="this.src='image/toole_09.gif'" onmouseover="this.src='image/toole_09_over.gif';this.style.cursor='hand'"><img border="0" src="image/toole_10.gif" width="25" height="49" alt="精简模式" onclick="mini(1);" onmouseout="this.src='image/toole_10.gif'" onmouseover="this.src='image/toole_10_over.gif';this.style.cursor='hand'"></td>
- <td background="image/toole_02.gif" align="right">
- <img border="0" src="image/toole_13.gif" width="13" height="17" onmouseover="this.style.cursor='se-resize'" id="mydiv100" class="rs001" alt="改变窗口大小"><img border="0" src="image/toole_14.gif" width="4" height="49"></td>
- </tr>
- </table>
- <table id="minitoole" border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse; display:none;" bordercolor="#111111" width="100%">
- <tr>
- <td width="33%" background="image/miniToole_02.gif">
- <img border="0" src="image/miniToole_01.gif" width="3" height="20"><img border="0" src="image/1pix.gif" width="10" height="1"><img border="0" src="image/miniToole_03.gif" width="6" height="20"><img border="0" src="image/miniToole_03.gif" width="6" height="20"><img border="0" src="image/miniToole_04.gif" width="18" height="20" ALT="播放" onmousedown="play()" onmouseover="this.style.cursor='hand'"><img border="0" src="image/miniToole_03.gif" width="6" height="20"><img border="0" src="image/miniToole_05.gif" width="18" height="20" ALT="暂停" onmousedown="pause()" onmouseover="this.style.cursor='hand'"><img border="0" src="image/miniToole_03.gif" width="6" height="20"><img border="0" src="image/miniToole_06.gif" width="18" height="20" ALT="停止" onmousedown="Stop()" onmouseover="this.style.cursor='hand'"><img border="0" src="image/miniToole_03.gif" width="6" height="20"><img border="0" src="image/miniToole_03.gif" width="6" height="20"><img border="0" src="image/miniToole_07.gif" width="18" height="20" ALT="快退" onmousedown="BackpositionSet()" onmouseover="this.style.cursor='hand'"><img border="0" src="image/miniToole_03.gif" width="6" height="20"><img border="0" src="image/miniToole_08.gif" width="18" height="20" ALT="快进" onmousedown="FastpositionSet()" onmouseover="this.style.cursor='hand'"><img border="0" src="image/miniToole_03.gif" width="6" height="20"><img border="0" src="image/miniToole_03.gif" width="6" height="20"><img border="0" src="image/miniToole_09.gif" width="33" height="20" alt="全屏播放" onmousedown="DoFull()" onmouseover="this.style.cursor='hand'"><img border="0" src="image/miniToole_03.gif" width="6" height="20"><img border="0" src="image/miniToole_10.gif" width="33" height="20" alt="正常模式" onclick="mini(0);" onmouseover="this.style.cursor='hand'"><img border="0" src="image/miniToole_03.gif" width="6" height="20"><img border="0" src="image/miniToole_03.gif" width="6" height="20"></td>
- <td width="33%" background="image/miniToole_02.gif">
- </td>
- <td width="34%" background="image/miniToole_02.gif" align="right">
- <img class="rs001" border="0" src="image/miniToole_12.gif" width="8" height="11" onmouseover="this.style.cursor='se-resize'" alt="改变窗口大小"><img border="0" src="image/miniToole_11.gif" width="3" height="20"></td>
- </tr>
- </table>
- </td>
- </tr>
- </TABLE>
- </center>
- </body>
- </html>
- <%
- rs.close
- set rs=nothing
- rst.close
- set rst=nothing
- conn.close
- set conn=nothing
- %>
- <% response.end
- end if
- if LockIP(Request.ServerVariables("REMOTE_ADDR")) then
- response.write"<script>alert('您的IP已经被限制不能访问本系统,请和管理员联系!!');window.close();</Script>"
- response.end
- end if
- '用户IP限制
- function LockIP(sip)
- dim str1,str2,str3,str4
- dim num
- LockIP=false
- if isnumeric(left(sip,2)) then
- str1=left(sip,instr(sip,".")-1)
- sip=mid(sip,instr(sip,".")+1)
- str2=left(sip,instr(sip,".")-1)
- sip=mid(sip,instr(sip,".")+1)
- str3=left(sip,instr(sip,".")-1)
- str4=mid(sip,instr(sip,".")+1)
- if isNumeric(str1)=0 or isNumeric(str2)=0 or isNumeric(str3)=0 or isNumeric(str4)=0 then
- else
- num=cint(str1)*256*256*256+cint(str2)*256*256+cint(str3)*256+cint(str4)-1
- sql="select count(*) from LockIP where ip1 <="&num&" and ip2 >="&num&""
- set rs_ip=conn.execute(sql)
- if rs_ip(0)>0 then
- LockIP=true
- end if
- set rs_ip=nothing
- end if
- end if
- end function
- i=0
- articleid=request("film2")
- urlid=request("film1")
- if articleid="" or urlid="" then
- response.redirect "error.asp?id=4"
- response.end
- end if
- if chkcookie(request.cookies("userid"))="" or request.cookies("password")="" then
- response.write "<script language=javascript>{window.alert('对不起,你还未登陆');window.open('login.asp');window.close();}</script>"
- response.end
- else
- Set lrs= Server.CreateObject("ADODB.Recordset")
- sql="select * from online where username='"&Replace(request.cookies("userid"), "'", "''")&"'"
- lrs.open sql,conn,1,3
- if lrs.eof then
- onli=1
- end if
- sqll="select * from users where userid='"&Replace(request.cookies("userid"), "'", "''")&"'"
- set rsl=server.createobject("adodb.recordset")
- rsl.open sqll,conn,1,1
- if request.cookies("login")<>rsl("login") or onli=1 then
- response.write "<script language=javascript>{window.alert('对不起,你还未登陆');window.open('login.asp');window.close();}</script>"
- response.end
- end if
- end if
- set rs=server.createobject("adodb.recordset")
- sql="select serverip,canlook,movietype,title,count from learning where articleid="&articleid
- rs.open sql,conn,1,1
- set rst=server.createobject("adodb.recordset")
- sql="select money,oklook,lasthits,usercount,baoyue from users where userid='"&request.cookies("userid")&"' and password='"&request.cookies("password")&"'"
- rst.open sql,conn,1,3
- if rst("baoyue")=1 then
- if rs("canlook")<>0 then
- if now() > rst("money") then
- response.write"<script>alert('你没有包月或者你包月的时间已经到期!');window.close();</Script>"
- response.end
- end if
- end if
- end if
- serverip=rs("serverip")
- if rs("canlook")>rst("oklook") and rst("baoyue")=1 then
- response.write"<script>alert('很抱歉你的用户等级不够,只有黄金会员和计点会员才可以在线观看!nn升级到黄金会员或者使用计点会员。');window.close();</Script>"
- response.end
- end if
- tdate=date()
- if rst("lasthits")=tdate then
- sql="update users set dnlook=dnlook+1,nlook=nlook+1 where userid='"&request.cookies("userid")&"' and password='"&request.cookies("password")&"'"
- conn.Execute(sql)
- else
- conn.Execute("update users set dnlook=1,lasthits='"&tdate&"' where userid='"&request.cookies("userid")&"' and password='"&request.cookies("password")&"'")
- end if
- set rst=server.createobject("adodb.recordset")
- sql="select money,nlook,oklook,lasthits,dnlook,baoyue,usercount from users where userid='"&request.cookies("userid")&"' and password='"&request.cookies("password")&"'"
- rst.open sql,conn,1,3
- if rst("baoyue")=0 then
- set rsb00=server.createobject("adodb.recordset")
- rsb00.open "select * from tolook where title='"&rs("title")&"' and userid='"&request.cookies("userid")&"'",conn,1,3
- set rsb02=server.createobject("adodb.recordset")
- rsb02.open "select * from tolook where title='"&rs("title")&"' and userid='"&request.cookies("userid")&"'",conn,1,3
- do while not rsb02.eof
- i=i+1
- rsb02.movenext
- loop
- if rsb00.eof and rsb00.bof and rst("usercount")<rs("count") then
- response.write"<script>alert('你点数不够哦!请购买点数或者升级到包月会员后再进行下载吧!nn购买点数或者升级到黄金会员。');window.close();</Script>"
- response.end
- end if
- if rst("usercount")<rs("count") and i>4 then
- response.write"<script>alert('你点数不够哦!请购买点数或者升级到包月会员后再进行下载吧!nn购买点数或者升级到黄金会员。');window.close();</Script>"
- response.end
- end if
- set rsb01=server.createobject("adodb.recordset")
- rsb01.open "select * from tolook where title='"&rs("title")&"' and userid='"&request.cookies("userid")&"'",conn,1,3
- if rsb01.eof and rsb01.bof or i>4 then
- sql="update users set usercount=usercount-'"&rs("count")&"' where userid='"&request.cookies("userid")&"' and password='"&request.cookies("password")&"'"
- conn.Execute(sql)
- end if
- else
- if rst("oklook")<2 then
- if rst("dnlook")>pthy then '每天看10集
- response.write"<script>alert('你是普通会员今天观看已经超过"&pthy&"集!请明天再观看吧!nn重新续费12个月升级到黄金会员。');window.close();</Script>"
- response.end
- end if
- elseif rst("oklook")<3 then
- if rst("dnlook")>bjhy then '每天看15集
- response.write"<script>alert('你是白金会员今天观看已经超过"&bjhy&"集!请明天再观看吧!nn重新续费12个月升级到黄金会员。');window.close();</Script>"
- response.end
- end if
- elseif rst("oklook")<4 then
- if rst("dnlook")>hjhy then '每天看30集
- response.write"<script>alert('你是黄金会员今天观看已经超过"&hjhy&"集!请明天再观看吧!nn重新续费升级到钻石会员。');window.close();</Script>"
- response.end
- end if
- end if
- end if
- set rsb=server.createobject("adodb.recordset")
- rsb.open "select * from tolook",conn,1,3
- rsb.addnew
- rsb("title")=rs("title")
- rsb("userip")=request.servervariables("remote_addr")
- rsb("userid")=chkcookie(request.cookies("userid"))
- rsb("lookordown")="在线"
- rsb("looktime")=now()
- rsb.update
- rsb.close
- set rsb=nothing
- response.cookies(""&urlid&"")="yes"
- %>
- <html>
- <head>
- <title><%=homes%>-播放器</title>
- <Script Language="JavaScript">
- 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='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()');
- }
- function DoMin()
- {//最小化窗口
- oldwidth=window.screenLeft;
- oldheight=window.screenTop;
- window.moveTo(-2000,-2000);
- window.attachEvent("onfocus",res);
- }
- function res() {
- window.moveTo(oldwidth,oldheight);
- window.detachEvent("onfocus",res)
- }
- </Script>
- <script language="VBScript">
- sub Mute
- imagesrc=document.all("silent").src
- singlechar=mid(imagesrc,instr(imagesrc,".gif")-1,1)
- if singlechar="8" then
- document.all("silent").src="image/toole_08_down.gif"
- document.all("silent").alt="恢复"
- else
- document.all("silent").src="image/toole_08.gif"
- document.all("silent").alt="静音"
- end if
- rPlayer.setMute(not rPlayer.GetMute())
- end sub
- </script>
- <script for="window" event="onresize" LANGUAGE="JavaScript">
- //改变窗口大小了限制
- if (toole.style.display=='block' && ((document.body.clientWidth<440) || (document.body.clientHeight<300+hand_add)))
- {
- window.resizeTo(440+width_add,428+height_add+hand_add);
- }
- if (toole.style.display=='none' && ((document.body.clientWidth<262) || (document.body.clientHeight<252+hand_add)))
- {
- window.resizeTo(262+width_add,252+height_add+hand_add);
- }
- Image1.style.height = MP1.style.pixelHeight-24;
- </script>
- <SCRIPT FOR="rPlayer" EVENT="Buffering(bStart)" LANGUAGE="JavaScript">
- if (bStart == 0){
- Image1.style.visibility = "hidden";
- }
- else{
- Image1.style.visibility = "visible";
- }
- </SCRIPT>
- <SCRIPT FOR="rPlayer" EVENT="PlayStateChange(lOldState, lNewState)" LANGUAGE="JavaScript">
- if (lNewState==0 || lNewState==8){
- Playorpasue();
- }
- </SCRIPT>
- <SCRIPT FOR="rPlayer" EVENT="OpenStateChange(lOldState, lNewState)" LANGUAGE="JavaScript">
- if (lNewState==0){
- Playorpasue();
- }
- </SCRIPT>
- <SCRIPT FOR="rPlayer" EVENT="Error()" LANGUAGE="JavaScript">
- if (rPlayer.ErrorCode==-1072889837)
- Play_Mess.innerHTML="<font color="red" size=3>无法连接到服务器,可能是网络问题,请重试。</font>";
- if (rPlayer.ErrorCode==-2147220992)
- Play_Mess.innerHTML="<font color="red" size=3>没有适当的解码器,请重试或安装新的微软播放器。</font>";
- if (rPlayer.ErrorCode==-2147220945)
- Play_Mess.innerHTML="<font color="red" size=3>文件格式错,请通知我们,我们将尽快进行维修。</font>";
- if (rPlayer.ErrorCode==-1072889830)
- Play_Mess.innerHTML="<font color="red" size=3>文件打不开,请通知我们,我们将尽快进行维修。</font>";
- if (rPlayer.ErrorCode==-2146697211)
- Play_Mess.innerHTML="<font color="red" size=3>无法访问这个服务器,可能是代理服务器不可用。</font>";
- if (rPlayer.ErrorCode==-1072887822)
- Play_Mess.innerHTML="<font color="red" size=3>无法连接到一个广播频道。</font>";
- </SCRIPT>
- <SCRIPT FOR="rPlayer" EVENT="Warning(lType, lParam, sDescription)" LANGUAGE="JScript">
- Play_Mess.innerHTML="<font color="red" size=3>"+sDescription+"</font>";
- </SCRIPT>
- <SCRIPT LANGUAGE="VBScript">
- Sub rplayer_OnBuffering(lFlags,lPercentage)
- if (lPercentage=100) then
- StartPlay=false
- if (FirstPlay) then
- Image1.style.visibility = "visible"
- else
- MP1.style.visibility = "visible"
- Image1.style.visibility = "hidden"
- end if
- exit sub
- end if
- End Sub
- Sub rplayer_OnErrorMessage(uSeverity, uRMACode, uUserCode, pUserString, pMoreInfoURL, pErrorString)
- select case rPlayer.GetLastErrorRMACode()
- case -2147221496
- window.alert("找不到影片源文件,请将这个错误告诉我们,我们会尽快修复!")
- case -2147221433,-2147221428,-2147221417,-2147217468
- window.alert("您的网络繁忙暂时中断!")
- case else
- window.alert("在线用户过多,服务器限制,请抢线或稍后观看!")
- end select
- end sub
- </SCRIPT>
- <script language="JavaScript">
- var dragapproved=false;
- var eventsource,x,y;
- function move()
- {//移动窗口
- if (event.button==1&&dragapproved) //改变被拖动元素在页面上的位置
- {
- top.window.moveBy(event.clientX-x, event.clientY-y);
- return false;
- }
- }
- function size()
- {//改变窗口大小
- if (event.button==1&&dragapproved)
- {
- top.window.resizeTo(event.clientX+5+width_add-jjjj, event.clientY+5+height_add-jjjj);
- return false;
- }
- }
- function drags()
- {
- if (event.srcElement.className=="drag") //捕捉鼠标和被拖动元素的当前位置
- {
- dragapproved=true;
- x=event.clientX;
- y=event.clientY;
- document.onmousemove=move;
- }
- if (event.srcElement.className=="rs001") //捕捉鼠标和被拖动元素的当前位置
- {
- dragapproved=true;
- document.onmousemove=size;
- }
- }
- document.onmousedown=drags; //鼠标左键按下时,准备拖动
- document.onmouseup=new Function("dragapproved=false");//鼠标左键放开时,拖动停止
- function mini(type)
- {//精简与正常窗口切换
- if (type==1)
- {
- toole.style.display='none';
- scroll01.style.display='none';
- minitoole.style.display='block';
- window.resizeTo(333+width_add,305+height_add+hand_add);
- }
- if (type==0)
- {
- toole.style.display='block';
- scroll01.style.display='block';
- minitoole.style.display='none';
- window.resizeTo((440+width_add),428+height_add+hand_add);
- }
- }
- //---------------------------------------------------------------------------------
- //显示影片进度条时间
- function scrollPositionMouseMove(obj, event)
- {
- iCurrentX=event.x;
- if(parseInt(iCurrentX)>=movelen+20)
- return;
- if(window.MP1!=null)
- {
- iTotalTime=GetLength();
- iPlayTime=parseInt(iCurrentX*iTotalTime/(movelen+20));
- Hour=parseInt(iPlayTime/(60*60*1000));
- Min=parseInt((iPlayTime-Hour*60*60*1000)/(60*1000));
- Sec=parseInt((iPlayTime-Hour*60*60*1000-Min*60*1000)/1000);
- if(String(Hour).length<2)
- strHour="0"+String(Hour);
- else
- strHour=String(Hour);
- if(String(Min).length<2)
- strMin="0"+String(Min);
- else
- strMin=String(Min);
- if(String(Sec).length<2)
- strSec="0"+String(Sec);
- else
- strSec=+String(Sec);
- if(Hour!=0)
- scrollInfo.replaceAdjacentText("afterBegin",strHour+":"+strMin+":"+strSec);
- else
- scrollInfo.replaceAdjacentText("afterBegin",strMin+":"+strSec);
- scrollInfo.style.top=event.y+12;
- scrollInfo.style.left=event.x+15;
- scrollInfo.style.visibility = "visible";
- }
- }
- function scrollPositionMouseOut()
- {
- scrollInfo.style.visibility = "hidden";
- }
- //-------------------------------------------------------------------------------------
- function onLond001()
- {
- setvol();
- ballmove();
- }
- </script>
- </head>
- <body bgcolor="#000000" scroll="no" leftmargin="0" topmargin="0" onunLoad="init();" onLoad="onLond001();" onkeydown="no_newwin()">
- <center>
- <TABLE width="100%" height="100%" BORDER="0" CELLPADDING="0" CELLSPACING="0">
- <TR>
- <TD colspan="3">
- <table id="mini_head" border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse; display: block;" bordercolor="#111111" width="100%">
- <tr>
- <td background="image/mini_Header_02.gif">
- <img border="0" src="image/mini_Header_01.gif" width="4" height="6"></td>
- <td background="image/mini_Header_02.gif" align="right">
- <img border="0" src="image/mini_Header_03.gif" width="3" height="6"></td>
- </tr>
- </table>
- <table id="head" border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse; display: none;" bordercolor="#111111" width="100%">
- <tr>
- <td background="image/Header_02.gif">
- <img border="0" src="image/Header_01.gif" width="135" height="20" onmouseover="this.style.cursor='move'" id="mydiv1" class="drag" alt="移动窗口"><img border="0" src="image/Header_03.gif" width="2" height="20"></td>
- <td background="image/Header_02.gif"></td>
- <td align="right" background="image/Header_02.gif">
- <img border="0" src="image/Header_07.gif" align="absmiddle" width="9" height="9" alt="最小化" onmousedown="DoMin()" onmouseover="this.style.cursor='hand'"><img border="0" src="image/1pix.gif" width="8" height="1"><img border="0" src="image/Header_06.gif" align="absmiddle" width="9" height="9" id="fill001" ALT="最大化" onmousedown="DoFill()" onmouseover="this.style.cursor='hand'"><img border="0" src="image/1pix.gif" width="10" height="1"><img border="0" src="image/Header_05.gif" align="absmiddle" width="9" height="9" ALT="关闭窗口" onmousedown="closewin()" onmouseover="this.style.cursor='hand'"><img border="0" src="image/1pix.gif" width="3" height="1"><img border="0" src="image/Header_04.gif" align="absmiddle" width="5" height="20" onmouseover="this.style.cursor='hand'"></td>
- </tr>
- </table>
- <Script language="JavaScript">
- if (!ie6)
- {
- mini_head.style.display = "none";
- head.style.display = "block";
- }
- </Script>
- </TD>
- </TR>
- <TR>
- <TD background="image/player_01.gif"><IMG SRC="images/Spacer.gif" WIDTH="7" HEIGHT="1" id="left002"></TD>
- <TD><IMG SRC="image/1pix.gif" WIDTH="200" HEIGHT="1" id="temp002"></TD>
- <TD background="image/player_02.gif" style="background-position:right;"><IMG SRC="images/Spacer.gif" WIDTH="6" HEIGHT="1" id="right002"></TD>
- </TR>
- <TR>
- <TD background="image/player_01.gif" width="7" HEIGHT="99%" id="left001"></TD>
- <TD width="99%">
- <object ID="rPlayer" CLASSID="clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA" HEIGHT="100%" WIDTH="100%">
- <param name="_ExtentX" value="25982">
- <param name="_ExtentY" value="2408">
- <param name="AUTOSTART" value="-1">
- <param name="SHUFFLE" value="0">
- <param name="PREFETCH" value="0">
- <param name="NOLABELS" value="0">
- <param name="SRC" value="govodurl.asp?urlid=<%=urlid%>&serverip=<%=serverip%>">
- <param name="CONTROLS" value="ImageWindow">
- <param name="CONSOLE" value="Clip1">
- <param name="LOOP" value="0">
- <param name="NUMLOOP" value="0">
- <param name="CENTER" value="0">
- <param name="MAINTAINASPECT" value="0">
- <param name="BACKGROUNDCOLOR" value="#000000">
- </object>
- <script language="javascript">
- rPlayer.SetEnableContextMenu(false);
- rPlayer.SetWantErrors(true);
- </script>
- </TD>
- <TD background="image/player_02.gif" style="background-position:right;" width="6" HEIGHT="99%" id="right001"></TD>
- </TR>
- <tr>
- <td colspan="3">
- <table id="scroll01" border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%">
- <tr>
- <td background="image/scroll_02.gif" width="3%">
- <img border="0" src="image/scroll_01.gif" width="3" height="15"></td>
- <td background="image/scroll_02.gif" width="2%" align="right">
- <img border="0" src="image/scroll_03.gif" width="2" height="15"></td>
- <td background="image/scroll_04.gif" width="70%">
- <DIV onmouseup="Total_Up()" onmousemove="scrollPositionMouseMove(this, event)" onmouseout="scrollPositionMouseOut()" onmousedown="ChangePos()" id="movie" style="CURSOR: hand; POSITION: relative; TOP: 1px; LEFT: 0px; WIDTH: 100%; HEIGHT: 8px"><DIV id="mblock" style="LEFT: 0px; POSITION: absolute; TOP: 0px; HEIGHT: 8px"><IMG alt="播放进度" src="image/scroll_07.gif" width="20" height="8" border="0"></DIV>
- <DIV id="scrollInfo" style="BORDER: orange 1px ridge; FONT-SIZE: 9px; VISIBILITY: hidden; BACKGROUND: #c0c0c0; POSITION: absolute; zIndex: 9">00:00</DIV>
- </DIV>
- </td>
- <td background="image/scroll_02.gif" width="10%">
- <img border="0" src="image/scroll_05.gif" width="2" height="15"></td>
- <td align="center" background="image/scroll_02.gif" width="9%">
- <img border="0" src="image/scroll_08.gif" width="2" height="14"><img border="0" src="image/1pix.gif" width="1" height="1"><img border="0" src="image/scroll_09.gif" width="7" height="15" alt="左声道" onmousedown="rPlayer.Balance=-10000" onmouseover="this.style.cursor='hand'"><img border="0" src="image/1pix.gif" width="1" height="1"><img border="0" src="image/scroll_08.gif" width="2" height="14"><img border="0" src="image/1pix.gif" width="1" height="1"><img border="0" src="image/scroll_10.gif" width="7" height="15" alt="立体声" onmousedown="rPlayer.Balance=0" onmouseover="this.style.cursor='hand'"><img border="0" src="image/1pix.gif" width="1" height="1"><img border="0" src="image/scroll_08.gif" width="2" height="14"><img border="0" src="image/1pix.gif" width="1" height="1"><img border="0" src="image/scroll_11.gif" width="7" height="15" alt="右声道" onmousedown="rPlayer.Balance=10000" onmouseover="this.style.cursor='hand'"><img border="0" src="image/1pix.gif" width="1" height="1"><img border="0" src="image/scroll_08.gif" width="2" height="14"></td>
- <td align="right" background="image/scroll_02.gif" width="6%">
- <img border="0" src="image/scroll_06.gif" width="4" height="15"></td>
- </tr>
- </table>
- <table id="toole" border="0" cellpadding="0" cellspacing="0" style="display:block; border-collapse: collapse" bordercolor="#111111" width="100%" background="image/toole_02.gif">
- <tr>
- <td background="image/toole_02.gif">
- <img border="0" src="image/toole_01.gif" width="4" height="49"><img border="0" src="image/1pix.gif" width="10" height="1"><img id="pp001" border="0" src="image/toole_04.gif" width="36" height="49" ALT="播放" onmousedown="Playorpasue()" onmouseout="this.src='image/toole_04.gif'" onmouseover="this.src='image/toole_04_over.gif';this.style.cursor='hand'"><img border="0" src="image/toole_05.gif" width="25" height="49" ALT="停止" onmousedown="Stop()" onmouseout="this.src='image/toole_05.gif'" onmouseover="this.src='image/toole_05_over.gif';this.style.cursor='hand'"><img border="0" src="image/1pix.gif" width="10" height="1"><img border="0" src="image/toole_06.gif" width="25" height="49" ALT="快退" onmousedown="BackpositionSet()" onmouseout="this.src='image/toole_06.gif'" onmouseover="this.src='image/toole_06_over.gif';this.style.cursor='hand'"><img border="0" src="image/toole_07.gif" width="25" height="49" ALT="快进" onmousedown="FastpositionSet()" onmouseout="this.src='image/toole_07.gif'" onmouseover="this.src='image/toole_07_over.gif';this.style.cursor='hand'"><img border="0" src="image/1pix.gif" width="6" height="1"></td>
- <td background="image/toole_02.gif" align="right">
- <img src="image/toole_08.gif" style="cursor:hand;" alt="静音" name="silent" width="26" height="49" onclick="vbscript:Mute" border="0"></td>
- <td background="image/toole_02.gif" style="background-repeat: no-repeat;">
- <DIV onmouseup="Total_Up()" onmousemove="volgo()" id="volume" style="LEFT: 0px; WIDTH: 70px; POSITION: relative;HEIGHT: 23px" valgin="top" align="center"><DIV id="vblock"><IMG src="image/toole_16.gif" width="25" height="49" border="0" ALT="减小音量" onmousedown="RealdecreseVolume()" onmouseout="this.src='image/toole_16.gif'" onmouseover="this.src='image/toole_16_over.gif';this.style.cursor='hand'"><IMG src="image/toole_17.gif" width="25" height="49" border="0" ALT="增强音量" onmousedown="RealincreaseVolume()" onmouseout="this.src='image/toole_17.gif'" onmouseover="this.src='image/toole_17_over.gif';this.style.cursor='hand'"></DIV>
- </DIV>
- </td>
- <td background="image/toole_12.gif" style="background-repeat: no-repeat;">
- <MARQUEE id="Play_Mess" WIDTH="100" SCROLLAMOUNT="8" SCROLLDELAY="200" style="margin-left: 8; margin-right: 10;"><FONT color=#284717 size=2><%=homes%>欢迎您观看:<%=rs("title")%></FONT></MARQUEE>
- </td>
- <td background="image/toole_02.gif">
- <img border="0" src="image/1pix.gif" width="6" height="1"><img border="0" src="image/toole_09.gif" width="25" height="49" alt="全屏播放" onmousedown="DoFull()" onmouseout="this.src='image/toole_09.gif'" onmouseover="this.src='image/toole_09_over.gif';this.style.cursor='hand'"><img border="0" src="image/toole_10.gif" width="25" height="49" alt="精简模式" onclick="mini(1);" onmouseout="this.src='image/toole_10.gif'" onmouseover="this.src='image/toole_10_over.gif';this.style.cursor='hand'"></td>
- <td background="image/toole_02.gif" align="right">
- <img border="0" src="image/toole_13.gif" width="13" height="17" onmouseover="this.style.cursor='se-resize'" id="mydiv100" class="rs001" alt="改变窗口大小"><img border="0" src="image/toole_14.gif" width="4" height="49"></td>
- </tr>
- </table>
- <table id="minitoole" border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse; display:none;" bordercolor="#111111" width="100%">
- <tr>
- <td width="33%" background="image/miniToole_02.gif">
- <img border="0" src="image/miniToole_01.gif" width="3" height="20"><img border="0" src="image/1pix.gif" width="10" height="1"><img border="0" src="image/miniToole_03.gif" width="6" height="20"><img border="0" src="image/miniToole_03.gif" width="6" height="20"><img border="0" src="image/miniToole_04.gif" width="18" height="20" ALT="播放" onmousedown="play()" onmouseover="this.style.cursor='hand'"><img border="0" src="image/miniToole_03.gif" width="6" height="20"><img border="0" src="image/miniToole_05.gif" width="18" height="20" ALT="暂停" onmousedown="pause()" onmouseover="this.style.cursor='hand'"><img border="0" src="image/miniToole_03.gif" width="6" height="20"><img border="0" src="image/miniToole_06.gif" width="18" height="20" ALT="停止" onmousedown="Stop()" onmouseover="this.style.cursor='hand'"><img border="0" src="image/miniToole_03.gif" width="6" height="20"><img border="0" src="image/miniToole_03.gif" width="6" height="20"><img border="0" src="image/miniToole_07.gif" width="18" height="20" ALT="快退" onmousedown="BackpositionSet()" onmouseover="this.style.cursor='hand'"><img border="0" src="image/miniToole_03.gif" width="6" height="20"><img border="0" src="image/miniToole_08.gif" width="18" height="20" ALT="快进" onmousedown="FastpositionSet()" onmouseover="this.style.cursor='hand'"><img border="0" src="image/miniToole_03.gif" width="6" height="20"><img border="0" src="image/miniToole_03.gif" width="6" height="20"><img border="0" src="image/miniToole_09.gif" width="33" height="20" alt="全屏播放" onmousedown="DoFull()" onmouseover="this.style.cursor='hand'"><img border="0" src="image/miniToole_03.gif" width="6" height="20"><img border="0" src="image/miniToole_10.gif" width="33" height="20" alt="正常模式" onclick="mini(0);" onmouseover="this.style.cursor='hand'"><img border="0" src="image/miniToole_03.gif" width="6" height="20"><img border="0" src="image/miniToole_03.gif" width="6" height="20"></td>
- <td width="33%" background="image/miniToole_02.gif">
- </td>
- <td width="34%" background="image/miniToole_02.gif" align="right">
- <img class="rs001" border="0" src="image/miniToole_12.gif" width="8" height="11" onmouseover="this.style.cursor='se-resize'" alt="改变窗口大小"><img border="0" src="image/miniToole_11.gif" width="3" height="20"></td>
- </tr>
- </table>
- </td>
- </tr>
- </TABLE>
- </center>
- </body>
- </html>
- <%
- rs.close
- set rs=nothing
- rst.close
- set rst=nothing
- conn.close
- set conn=nothing
- %>