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

📄 index.asp

📁 结合了某度和AH的个人主页 功能比较完整
💻 ASP
字号:
<%
url=request("url")
%> 
<HTML><HEAD><TITLE>MEDIA</TITLE>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<STYLE type=text/css>TD {
	FONT-SIZE: 12px; COLOR: #e4c59a
}
A {
	COLOR: #cccccc; TEXT-DECORATION: none
}
</STYLE>

<SCRIPT language=JavaScript>
<!-- Hide
function killErrors() {
return true;
}
window.onerror = killErrors;
//容错
// -->
</SCRIPT>

<SCRIPT language=JavaScript>
<!--
var srcc = window;
srcc = srcc.toString()
start = srcc.indexOf("?");
end = srcc.length;
if (start==-1){
srcc = "<%=url%>"
}

if (start!=-1){
srcc = srcc.substring(start+1,end);
}

//alert(srcc)



 day=17;
 month=5;
 year=2002;
 hour=18;
    if ( navigator.appName == "Netscape" )
    {
        navigator.plugins.refresh();
        document.write("\x3C" + "applet MAYSCRIPT Code=NPDS.npDSEvtObsProxy.class")
        document.writeln(" width=352 height=288 name=appObs\x3E \x3C/applet\x3E")
    }
var Player;
var isplaying;
var movelen;
var history;
var ispause;
var isstop;
history=false;
movelen=0;
isstop=false;
isplaying=false;
ispause=false;
mute=false;
Player="document.NSPlay";
var playfile='';
function preload(imgname,imgsrc)
{
	eval(imgname+'=new Image()')
	eval(imgname+'.src="images\/'+imgsrc+'"')
}
preload("play1","play.gif")
preload("play2","play_b.gif")
preload("stop1","stop.gif");
preload("stop2","stop_b.gif");
preload("sound1","sound.gif");
preload("sound2","sound_b.gif");
preload("volume","volume.gif");
preload("pause1","pause.gif");
preload("pause2","pause_b.gif");
preload("full1","full.gif");
preload("full2","full_b.gif");

function playy(src){
var abc
abc = src + ""
playhistory(abc)
}
function doPlay(){

  if(!isplaying){
    if (eval(Player).FileName=='') return;
	eval(Player).Play();
	if (eval(Player).FileName!=filename)
if(!ispause){	  
movelen=0;
}
    document.play.src=play2.src;
    document.stop.src=stop1.src;
    document.pause.src=pause1.src;
    isplaying=true;  
    ispause = false;
    isstop=false;
  }
}    


function DoStop()
{
  if(isplaying){
	eval(Player).CurrentPosition=0;
	eval(Player).Stop();
	document.play.src=play1.src;
    document.stop.src=stop2.src;
    document.pause.src=pause1.src;
    if (document.seek.style.visibility=="visible")
      document.seek.style.left=136;
    isstop=true;
    isplaying=false;
    ispause=false;
   } 
}


function DoPause()
{
if(isplaying){
   eval(Player).Pause();
   isplaying = false
   ispause = true
   isstop=false;
	document.play.src=play1.src;
    document.pause.src=pause2.src;
    document.stop.src=stop1.src;
}
}


function SetPosition(Pos)
{
	if (!isplaying) return;
	eval(Player).CurrentPosition=+Pos;
}

function SetVolume(Pos)
{
eval(Player).volume=Pos;
}

function SetMute()
{
	if (!isplaying) return
	
	if (mute){
		eval(Player).Mute=false
	    document.sound.src=sound1.src;	    
	    document.vol.style.visibility="visible";
	    mute=false	
	}	
	else{
	  eval(Player).Mute=true;
	  document.sound.src=sound2.src;
	  document.vol.style.visibility="hidden";
	  mute=true
	}  
}
function GetLength()
{
	return eval(Player).Duration;
}
function GetPosition()
{
	tt=eval(Player).CurrentPosition
	return tt;
}
function SetSource(srcname)
{
	if (srcname==filename){
	  history=false;
	  //eval(Player).AutoRewind=true;
	  document.seek.style.visibility="hidden";
	 } 
	 else{
	  document.seek.style.visibility="visible"; 
	  //eval(Player).AutoRewind=false;
	  history=true
	 } 
	eval(Player).FileName=srcname;
	document.play.src=play2.src;
    document.stop.src=stop1.src;
    isplaying=true;
}
function SetWH(widthpx,heightpx)
{
	eval(Player).width=widthpx
	eval(Player).height=heightpx
}
function SetDisplaySize(setting)
{
	if (isplaying)
  	  eval(Player).DisplaySize=setting
	//全屏 setting=3
	//100% setting=0
	// 50% setting=1
	//200% setting=2 
}
            


var x,theImg;

var Maxvol, Minvol


Maxvol=300;
Minvol=250;
cur=280;
function move(){
  if (event.button==1&&isplaying){
    left=temp1+event.clientX-x
      
    if ((left<=Maxvol)&&(left>=Minvol))
      theImg.style.pixelLeft=left
     else 
       if(left>Maxvol) 
         theImg.style.pixelLeft=Maxvol
         else
           theImg.style.pixelLeft=Minvol 
   // document.form1.pos.value=theImg.style.pixelLeft
  return false
  }
}
function enddrag(){
  
 //这里设置音量
 if (isplaying){
   cur=theImg.style.pixelLeft;
   cur=Math.floor((Maxvol-cur)/(Maxvol-Minvol)*(-2000)); 
   SetVolume(cur);
   document.onmousemove=null;
  } 

}


function begindrag(Elm){
  if (!document.all)
    return
  if (!isplaying)
    return   
  temp1=Elm.style.pixelLeft   
  theImg=Elm
  x=event.clientX;
  document.onmousemove=move     
}




var Start, End;
var seeking;
seeking=false

Start=136;
End=214;


function beginseek(Elm){
  if (!document.all)
    return
  if (!isplaying)
    return   
  temp1=Elm.style.pixelLeft   
  theImg=Elm
  x=event.clientX;
  seeking=true
  document.onmousemove=moveseek     
}

function moveseek(){
  if (event.button==1&&isplaying){
    left=temp1+event.clientX-x
      
    if ((left<=End)&&(left>=Start))
      theImg.style.pixelLeft=left
     else 
       if(left>End) 
         theImg.style.pixelLeft=End
         else
           theImg.style.pixelLeft=Start 
   // document.form1.pos.value=theImg.style.pixelLeft
  return false
  }
}

function enddragseek(){
  
 //这里设置时间搜索
 if (isplaying){
   movelen=GetLength()
   cur=theImg.style.pixelLeft;
   if (cur==End)
     DoStop();
   else{  
     cur=Math.floor((cur-Start)*movelen/(End-Start)); 
     SetPosition(cur);
     seeking=false;
     document.onmousemove=null;
    } 
  } 

}

function changeseek(){
  if (eval(Player).PlayState!=2) return;
  if (!history) return;
  if (!seeking){
    if (movelen==0)
      movelen=GetLength();  
    cur=GetPosition();
    cur=Math.floor((End-Start)*cur/movelen);
    document.seek.style.pixelLeft=Start+cur;
  }  
  //alert(isplaying+''+history);
  setTimeout("changeseek()",1000);
    
   //} 
  
  
}

function playhistory(src){
  SetSource(src);  
}
function showchoose() 
{ 
 if (document.all.menu1.style.display=="none") 
  document.all.menu1.style.display="block"; 
  else 
  {
  playhistory(document.formdisco.getyy.value+document.formdisco.getmm.value+document.formdisco.getdd.value+".wmv")
  document.all.menu1.style.display="none"; 
  }
} 

//-->
</SCRIPT>

<SCRIPT language=JScript event="PlayStateChange(lOldState, lNewState)" 
for=NSPlay>
    if (lNewState==2){
      movelen=GetLength();      
      changeseek();
    }      

</SCRIPT>

<SCRIPT language=JScript event=EndOfStream(lResult) for=NSPlay>
    DoStop()    
</SCRIPT>

</HEAD>
<BODY text=#000000 bgColor=#86540c oncontextmenu="event.returnValue=false" leftMargin=1 topMargin=0 onload=playhistory(srcc) onkeydown="KeyDown()">
<script language="Javascript"><!--
function KeyDown(){ 
if ((window.event.altKey)&&
((window.event.keyCode==37)|| //屏蔽 Alt+ 方向键 ←
(window.event.keyCode==39))){ //屏蔽 Alt+ 方向键 →
alert("不准你使用ALT+方向键前进或后退网页!");
event.returnValue=false;
}
if ((event.keyCode==8) || //屏蔽退格删除键
(event.keyCode==116)|| //屏蔽 F5 刷新键
(event.ctrlKey && event.keyCode==82)){ //Ctrl + R
event.keyCode=0;
event.returnValue=false;
}
if ((event.ctrlKey)&&(event.keyCode==78)) //屏蔽 Ctrl+n
event.returnValue=false;
if ((event.shiftKey)&&(event.keyCode==121)) //屏蔽 shift+F10
event.returnValue=false;
if (window.event.srcElement.tagName == "A" && window.event.shiftKey) 
window.event.returnValue = false; //屏蔽 shift 加鼠标左键新开一网页
if ((window.event.altKey)&&(window.event.keyCode==115)){ //屏蔽Alt+F4
window.showModelessDialog("about:blank","","dialogWidth:1px;dialogheight:1px");
return false;}
}
// --></script>
<IMG onmouseup=enddrag() 
onmousedown=begindrag(document.vol) id=vol 
style="LEFT: 280px; VISIBILITY: visible; CURSOR: hand; POSITION: absolute; TOP: 238px" 
height=11 alt=音量调节(volume) src="images/sound_button.gif" width=8 name=vol> 
<IMG onmouseup=enddragseek() onmousedown=beginseek(document.seek) id=seek       
style="LEFT: 136px; VISIBILITY: visible; CURSOR: hand; POSITION: absolute; TOP: 238px" 
height=11 alt=时间调节(Time) src="images/course_button.gif" width=15 name=seek> 

<TABLE height=185 cellSpacing=0 cellPadding=0 width=241 
border=0>
  <TBODY>
  <TR>
    <TD align=middle height="185" width="260">
      <OBJECT id=NSPlay 
      codeBase=http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701 
      type=application/x-oleobject height=235 
      standby="加载 Microsoft Windows Media Player 组件..." width=337 
      classid=CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95 VIEWASTEXT><PARAM NAME="FileName" VALUE=""><PARAM NAME="AutoStart" VALUE="true"><PARAM NAME="AutoRewind" VALUE="-1"><PARAM NAME="AnimationAtStart" VALUE="false"><PARAM NAME="ShowControls" VALUE="false"><param name="PlayCount" value="0"><PARAM NAME="ClickToPlay" VALUE="false"><PARAM NAME="EnableContext Menu" VALUE="1"><PARAM NAME="EnablePositionControls" VALUE="false"><PARAM NAME="Balance" VALUE="0"><PARAM NAME="ShowStatusBar" VALUE="false"><PARAM NAME="AutoSize" VALUE="0">
      <embed type="application/x-mplayer2"      
      pluginspage="http://www.microsoft.com/Windows/Downloads/Contents/Products/MediaPlayer/" 
       filename src  autostart="false" 			
       enablecontextmenu="false" 
      	clicktoplay="false"   			
      	enablepositioncontrols="false"                 
        showcontrols="0" 
        showstatusbar="1"                            
      showdisplay="0" width="240" height="180">       
       </embed>   
          </OBJECT></TD></TR></TBODY></TABLE>
<TABLE height=1 cellSpacing=0 cellPadding=0 width=335 
  border=0><TBODY>
  <TR>
    <TD height="1"></TD></TR></TBODY></TABLE>
<TABLE height=1 cellSpacing=0 cellPadding=0 width=335 border=0><TBODY>
  <TR>
    <TD height="1">
      <TABLE cellSpacing=0 cellPadding=0 width=347 border=0>
        <TBODY>
        <TR>
          <TD width=4> </TD>
          <TD width=38><A onclick=Javascript:doPlay() 
            href="#"><IMG height=11 
            alt=开始播放(Play) src="images/play.gif" width=37 border=0 
            name=play></A></TD>
          <TD width=4> </TD>
          <TD width=38><A onclick=Javascript:DoStop() 
            href="#"><IMG height=11 
            alt=停止播放(Stop) src="images/stop_b.gif" width=37 border=0 
            name=stop></A></TD>
          <TD width=4> </TD>
          <TD width=38><A onclick=DoPause() 
            href="#"><IMG height=11 
            src="images/pause.gif" width=37 border=0 name=pause></A></TD>
          <TD width=4> </TD>
          <TD width=94><IMG height=11 src="images/course.gif" 
width=93></TD>
          <TD width=4> </TD>
          <TD width=12><A onclick=SetMute() 
            href="#"><IMG height=11 
            src="images/sound.gif" width=11 border=0 alt=静音 name=sound></A></TD>
          <TD width=4> </TD>
          <TD width="53"><IMG height=11 src="images/volume.gif" width=52 
          name=volume></TD>
          <TD width=3>&nbsp;</TD>
          <TD width="13"><A onclick=SetDisplaySize(3)><IMG style="CURSOR: hand" height=11 
            src="images/full.gif" width=11 alt=全屏播放 border=0 name=full> </A></TD>
          <TD width=4> </TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE>
<TABLE height=1 cellSpacing=0 cellPadding=0 width=335 
  border=0><TBODY>
  <TR>
    <TD height="1"></TD></TR></TBODY></TABLE>
<SCRIPT language=JavaScript>
cur=Math.floor((Maxvol-cur)/(Maxvol-Minvol)*(-2000));  
SetVolume(cur); 
playfile=''; 
var filename='live.wmv '
if (playfile!=''){ 
  SetSource(filename);  
} 
</SCRIPT>
</BODY><TD width="25%" height=20><A 
            href="http://www.moudu.com/123" 
            target=_blank><FONT color=red>>>>>推荐一个免费点歌的网站玩玩<<<<</FONT></A></TD></HTML>

⌨️ 快捷键说明

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