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

📄 softdown1.asp

📁 网络电视免费版
💻 ASP
📖 第 1 页 / 共 3 页
字号:
            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"

⌨️ 快捷键说明

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