⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 player.asp

📁 本程序采用花香内核
💻 ASP
字号:
<!--#include file="mdb.asp"-->
<%
dim RS,sql,strSQL,rs1
dim url,id,ddd,dddd,ftype
id=Request.QueryString("id")
filmid=request("filmid")
ftitle=request("title")
if Trim(id) <> "" and IsNumeric(id) then
Set RS = Server.CreateObject("ADODB.RecordSet")
sql = "select * from vidurl where id = " & id
RS.Open sql, Conn, 3, 3
url=rs("url")
ddd=rs("filmid")
RS.Close
Set RS = nothing
end if
Set rs1 = Server.CreateObject("ADODB.Recordset")
strSQL ="SELECT * FROM vid where vid_id=" & ddd
rs1.open strSQL,Conn,3,3
rs1("hits")=rs1("hits")+1
dddd=rs1("title")
ftype=rs1("runsystem")
rs1.update
sql="UPDATE [user] SET points = points - "&rs1("points")&" where userid="&request.Cookies("HX_USER")("uid")
conn.execute (sql)
rs1.Close
Set rs1 = nothing
Conn.Close
Set Conn = nothing
%>
<HTML><HEAD><TITLE>听雪影院播放器</TITLE>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<SCRIPT>
//加入页面保护
    function rf()
      {return false; }
    document.oncontextmenu = rf
    function keydown()
      {if(event.ctrlKey ==true || event.keyCode ==93 || event.shiftKey ==true){return false;} }
      document.onkeydown =keydown
    function drag()
      {return false;}
    document.ondragstart=drag 
function stopmouse(e) { 
		if (navigator.appName == 'Netscape' && (e.which == 3 || e.which == 2))  
 		return false; 
      else if  
      (navigator.appName == 'Microsoft Internet Explorer' && (event.button == 2 || event.button == 3)) {  
 		alert("听雪影院欢迎你观赏——谢谢!");
		return false;  
 		}
		return true; 
      } 
      document.onmousedown=stopmouse;  
      if (document.layers) 
      window.captureEvents(Event.MOUSEDOWN); 
       window.onmousedown=stopmouse;  

</SCRIPT>
</head>
<body marginwidth="0" leftmargin="0" topmargin="0" bgcolor="#000000" onload="initPlayer()">
<script language="javascript">
function initPlayer()
{
document.player.SetWantMouseEvents(true)
}
function noRB()
{
setTimeout("alert('右键禁止')",400)
}
</script>
<script language="vbscript">
sub player_OnRButtonDown(ByVal nFlags, ByVal nX, ByVal nY)
 if player.getfullscreen() then
  player.SetOriginalSize()
  noRB()
 else
  msgbox("右键禁止")
 end if
End Sub
</script>
<script language="JAVASCRIPT">
<!-- Begin
var ap_name = navigator.appName;
var ap_vinfo = navigator.appVersion;
var ap_ver = parseFloat(ap_vinfo.substring(0,ap_vinfo.indexOf('(')));

var time_start = new Date();
var clock_start = time_start.getTime();
var dl_ok=false;

function init ()
{
if(ap_name=="Netscape" && ap_ver>=3.0)
dl_ok=true;
return true;
}

function get_time_spent ()
{
var time_now = new Date();
return((time_now.getTime() - clock_start)/1000);
}

function show_secs () 
{
var i_total_secs = Math.round(get_time_spent());
var i_secs_spent = i_total_secs % 60;
var i_mins_spent = Math.round((i_total_secs-30)/60);
var s_secs_spent = "" + ((i_secs_spent>9) ? i_secs_spent : "0" + i_secs_spent);
var s_mins_spent = "" + ((i_mins_spent>9) ? i_mins_spent : "0" + i_mins_spent);
document.fm0.time_spent.value = s_mins_spent + ":" + s_secs_spent;
window.setTimeout('show_secs()',1000);
}
init();
window.setTimeout('show_secs()',1);
//  End -->
</script>   
<div align="center"><center><table border="0" cellspacing="0" width="100%" cellpadding="0"><tr>
<td width="100%"><%if len(ftype)=2 then%>    
<table border="0" cellspacing="0" style="border-collapse: collapse" width="560" id="AutoNumber1" bgcolor="#F0F0F0" cellpadding="0" align="center" height="10"><tr>
<td width="283" height="1" bgcolor="#E0E0E0"> <font size="2">欢迎您观看:<%=dddd%></font></td>
<form name="fm0" onSubmit="0"><td width="42" height="1" bgcolor="#E0E0E0">
<input type="text" name="time_spent" size="5" onFocus="this.blur()" style="border-style: groove; border-width: 1; background-color: #EEEEEE"></td></form>
<td width="52" height="1" bgcolor="#E0E0E0">
<input type="button" onclick="if (document.player.GetPlayState()==3) document.player.SetFullScreen()" name value="全屏播放" style="border-style: ridge; border-width: 1">
</tr></table><p align="center">
<object id="player" name="player" classid="clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA" width="560" height="300">
<param name="AUTOSTART" value="-1">
<param name="SRC" value="<%=url%>">
<param name="CONTROLS" value="Imagewindow">
<param name="CONSOLE" value="clip1"></object><br>
<object ID="RP2" CLASSID="clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA" WIDTH="560" HEIGHT="60">
<param name="AUTOSTART" value="-1">
<param name="SRC" value="<%=url%>">
<PARAM NAME=CONTROLS VALUE=ControlPanel,StatusBar>
<param name="CONSOLE" value="clip1"></object>
<%else%>
<script language="JavaScript">
    <!--
    var Real;
    Real='MediaPlayer1.';
    var Mute=false;
    var CanSetPos=true;
    var SetPosStart=false;
    var SetVolStart=false;
    var loop, timer, initialised;
    var speed=50;
    var oldwidth=566,oldheight=502;

    function DoFull()
    {
        eval(Real+'DisplaySize=3');
    }

NetShowServer = "" ;

var mPath = NetShowServer + "";
function LoadVideo(c1,c2) {
 if (c1=="") return;
 video_filename = c1;

 MusicPlayer.Cancel()
 timer=window.setTimeout("video_play()",2000)
}
function video_play(fn) {
 var mName = mPath + video_filename;
 MusicPlayer.Open(mName)
}
    //-->
       </script>
<table border="0" cellspacing="0" style="border-collapse: collapse" width="560" id="AutoNumber1" bgcolor="#F0F0F0" cellpadding="0" align="center" height="10">
<tr><td width="303" height="1" bgcolor="#E0E0E0"><font size="2">欢迎您观看:<%=dddd%> </font></td>
<form name="fm0" onSubmit="0"><td width="42" height="1" bgcolor="#E0E0E0">
<input type="text" name="time_spent" size="5" onFocus="this.blur()" style="border-style: groove; border-width: 1; background-color: #EEEEEE"></td>
</form>
<td width="52" height="1" bgcolor="#E0E0E0">
<input type="button" onMouseDown="DoFull()" value="全屏显示" style="border-style: ridge; border-width: 1">
</tr></table>
<object classid="clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95" height="378" id="MediaPlayer1" width="560">
<param name="AutoStart" value="-1"><param name="ShowStatusBar" value="-1">
<param name="Filename" value="<%=url%>"></object>
</td></tr></table><%end if%></center></div></body></html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -