欢迎光临
我们一直在努力

进来

建站超值云服务器,限时71元/月

<%option explicit%>
<!–#include file="articleconn.asp"–>
<%
dim rs,sql,strsql,zhuinew
dim url,id,ddd,dddd
id    = request.querystring("id")
filmid=request("filmid")
if trim(id) <> "" and isnumeric(id) then
set rs = server.createobject("adodb.recordset")
sql = "select * from url where id = " & id
rs.open sql, conn, 3, 3
url=rs("url")
ddd=rs("filmid")
rs.close
set rs = nothing
end if
strsql ="select * from film where id=" & ddd
set zhuinew = server.createobject("adodb.recordset")
zhuinew.open strsql,conn,3,3
zhuinew("hits")=zhuinew("hits")+1
filmtype=zhuinew("runsystem")
zhuinew.update
zhuinew.close
set zhuinew = nothing
conn.close
set conn = nothing
if filmtype<>"realplay" then
%>
<head>
<meta name="generator" content="microsoft visual studio 6.0">
<meta http-equiv="content-type" content="text/html; charset=gb2312">
<script language=javascript>
<!–
function change_volume(vol,maxvolloc,minvolloc)
{
    //计算播放器的音量
    var tvolume;
    tvolume=100-(vol/(math.abs(maxvolloc-minvolloc)+1))*100;
    vodplayer.setvolume(tvolume);
}

var strtitle="";
var err_noneplayer="您的系统中没有安装real player播放器,请在主页上下载。\n\nmovie播放器将关闭。";
var err_filenotfind="对不起,未发现你要点播的文件。\n\n请更换其他影片!";
var err_notlocateserver="无法定位movie服务器。请更换其他影片!";
var err_unkownerror="在线用户过多,服务器限制,请抢线或稍后观看!";
var firstplay=true;
var startplay=true;
    
function player_play() {
    if (startplay)
    {
        vodplayer.autostart=true;
    }
    else
    {
        vodplayer.doplay();
    }
}

function player_stop() {
    vodplayer.dostop();
    vodplayer.currentposition=0;
}

function player_pause() {
    vodplayer.dopause();
}

function readystatechange() {
    switch (document.readystate)
    {
        case "complete":
            try
            {
                parent.frames["chromewinr"].setplaycontrolstatus(true);
                parent.frames["chromewinr"].setstopcontrolstatus(false);
                parent.frames["chromewinr"].setpausecontrolstatus(false);
                parent.frames["chromewinr"].enable_control();
            }
            catch (e)
            {
            }
            break;
        deault:
            break;
    }
}

function player_fullscreen() {
    vodplayer.setfullscreen();
}
//–>
</script>
<script language=vbscript>
sub vodplayer_onbuffering(lflags,lpercentage)
    if (lpercentage=100) then
        startplay=false
        call parent.frames("chromewinr").playvod()
        if (firstplay) then
            firstplay=false
            call window.formhandle.submit()
        end if    
        exit sub
    end if
    call parent.frames("chromewinr").disablevod()
end sub

sub vodplayer_onerrormessage(useverity, urmacode, uusercode, puserstring, pmoreinfourl, perrorstring)
    select case vodplayer.getlasterrorrmacode()
        case -2147221496
            call parent.frames("chromewinr").disablevod()
            window.alert(err_filenotfind)
        case -2147221433,-2147221428,-2147221417,-2147217468
            call parent.frames("chromewinr").disablevod()
            window.alert(err_notlocateserver)
        case else
            call parent.frames("chromewinr").disablevod()
            window.alert(err_unkownerror)
    end select
end sub

sub vodplayer_onplaystatechange(lnewstate)
    select case vodplayer.getplaystate()
        case 0:
            call parent.frames("chromewinr").stopvod()
        case 3:
            call parent.frames("chromewinr").playvod()
        case 4:
            call parent.frames("chromewinr").pausevod()
    end select
end sub
</script>
<script id=clienteventhandlersjs language=javascript>
<!–
function document_oncontextmenu() {
    event.returnvalue=false;
}

function document_ondragstart() {
    event.returnvalue=false;
}

function document_onselectstart() {
    event.returnvalue=false;
}
//–>
</script>
<script language=javascript for=document event=oncontextmenu>
<!–
document_oncontextmenu()
//–>
</script>
<script language=javascript for=document event=ondragstart>
<!–
document_ondragstart()
//–>
</script>
<script language=javascript for=document event=onselectstart>
<!–
document_onselectstart()
//–>
</script>

</head>
<body oncontextmenu="return false" onselectstart="return false" bgcolor=black topmargin=0 leftmargin=0 rightmargin=0 bottommargin=0>

<table border=0 cellpadding=0 cellspacing=0 width=319 height=240>
    <tr><td align=center valign=middle>
        <object classid="clsid:cfcdaa03-8be4-11cf-b84b-0020afbbccfa" height=222 id=vodplayer width=319 viewastext>
            <param name="autostart" value="-1">
            <param name="shuffle" value="0">
            <param name="prefetch" value="0">
            <param name="nolabels" value="0">
            <param name="controls" value="imagewindow">
            <param name="console" value="player">
            <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>
                <object classid=clsid:cfcdaa03-8be4-11cf-b84b-0020afbbccfa height=18 id=player width=319 viewastext>
                         <param name="controls" value="positionslider">
                         <param name="console" value="_master">
                 </object>
    </td></tr>
</table>
            
                            
<script language=javascript>
<!–
function setfilename()
{
    var readystatus=new array(4);
    var i=0;
                    
    for (i=0;i<4;i++)
    readystatus[i]=false;
                    
    if (typeof(parent.frames["chromewint"])!="undefined")
    {
        if (parent.frames["chromewint"].document.readystate=="complete" )
            readystatus[0]=true;
    }
                    
    if (typeof(parent.frames["chromewinl"])!="undefined")
    {
        if (parent.frames["chromewinl"].document.readystate=="complete" )
            readystatus[1]=true;
    }
                    
    if (typeof(parent.frames["chromewinr"])!="undefined")
    {
        if (parent.frames["chromewinr"].document.readystate=="complete" )
            readystatus[2]=true;
    }
                    
    if (typeof(parent.frames["chromewinb"])!="undefined")
    {
        if (parent.frames["chromewinb"].document.readystate=="complete" )
            readystatus[3]=true;
    }
                    
    if (readystatus[0] && readystatus[1] && readystatus[2] && readystatus[3])
    {
        window.clearinterval(timeid);
        try
        {
        
            vodplayer.setvolume(50);
            vodplayer.source="<%=url%>";
            vodplayer.setwanterrors(true);
            vodplayer.setenablecontextmenu(false);
            readystatechange();
        
        }
        catch (e)
        {
            window.alert(err_noneplayer);
            top.window.close();
        }
    }
    delete readystatus;
}

var timeid;
            
timeid=window.setinterval("setfilename()",100,"javascript");
//–>
</script>
<%end if%>
我嫌麻烦没有整理,自己看把

赞(0)
版权申明:本站文章部分自网络,如有侵权,请联系:west999com@outlook.com 特别注意:本站所有转载文章言论不代表本站观点! 本站所提供的图片等素材,版权归原作者所有,如需使用,请与原作者联系。未经允许不得转载:IDC资讯中心 » 进来
分享到: 更多 (0)

相关推荐

  • 暂无文章