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

📄 softdown1.asp

📁 网络电视免费版
💻 ASP
📖 第 1 页 / 共 3 页
字号:
<!--#include file="config.asp"-->
<%
	if request.QueryString("ID")="" then
		response.write "不能连接或者没有指定下载节目"
		response.end
	end if
	
	set rs=server.createobject("adodb.recordset")
	sql="select Address,SoftID from "&CategoryName&"_SoftLink where Id=" & cstr(request.QueryString("ID"))
	 rs.open sql,conn,1,1
 	if not rs.eof then
        Address=trim(rs("Address"))
	SoftID=trim(rs("SoftID"))	
	else
	Address="http://www.mesky.net"
	SoftID=""
 	end if	
	rs.close
	
if SoftID<>"" then
	
	sql="select * from "&CategoryName&"_SoftInfo where SoftID="&SoftID&""
	rs.open sql,conn,1,1
	
	DayDate=trim(rs("DayDate"))
	WeekDate=trim(rs("WeekDate"))
	MonthDate=trim(rs("MonthDate")) 
	AllHits=trim(rs("AllHits"))
	avgGrade=trim(rs("avgGrade"))

		
	sql="update "&CategoryName&"_SoftLink set Hits=Hits+1 where Id=" & cstr(request.QueryString("ID"))
	conn.execute sql
	
	sql="update "&CategoryName&"_SoftInfo set AllHits=AllHits+1,DayHits=DayHits+1,WeekHits=WeekHits+1,MonthHits=Monthhits+1 where SoftId=" & SoftID
	conn.execute sql
	
	if datediff("d",DayDate,date)>=1 then
	sql="update "&CategoryName&"_SoftInfo set DayDate=Now(),DayHits=1 where SoftId=" & SoftID
	conn.execute sql
	end if
	
	if datediff("Ww",WeekDate,date)>=1 then
	sql="update "&CategoryName&"_SoftInfo set WeekDate=Now(),WeekHits=1 where SoftId=" & SoftID
	conn.execute sql
	end if	
	
	if datediff("M",MonthDate,date)>=1 then
	sql="update "&CategoryName&"_SoftInfo set MonthDate=Now(),MonthHits=1 where SoftId=" & SoftID
    conn.execute sql
	end if
	
	rs.close
end if
	set rs=nothing
	CloseDatabase

        if left(address,1)<>"/" then
        add=address
        'response.redirect(address)
	else
	response.redirect "ftp://www.mesky.net" & address 
	end if
	%>

<html>
<head>
<title><%="webname"%>-播放器</title>
<Script Language="JavaScript">
if(window.name!="<%="webname"%>"){window.location='index.asp';}
    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)

⌨️ 快捷键说明

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