📄 player.asp
字号:
<!--#include file="conn.asp"-->
<%
Dim MusicID
MusicID=trim(request.QueryString("id"))
if not isnumeric(MusicID) then
response.write "非法参数!"
response.end
end if
If MusicID="" Then
Response.Write ("<SCRIPT language=JavaScript>alert('错误!\n\n您至少需要选择一首歌曲');javascript:window.close();</SCRIPT>")
Response.end
End If
'更新点击量
'conn.execute("update [MusicList] set hits=hits+1 where id in ("&MusicID&")")
'创建排列顺序
MusicArray=Split(MusicID, ",")
MusicNum = UBound(MusicArray)
set rs=server.createobject("adodb.recordset")
For i=0 To MusicNum
sql="select MusicName,Singer,hits from MusicList where id ="&MusicArray(i)
rs.open sql,conn,1,3
If not rs.eof Then
rs("hits")=rs("hits")+1
rs.Update
MusicName=MusicName&", "&rs("MusicName")
Singer=Singer&", "&rs("Singer")
hits=hits&","&rs("hits")
End If
rs.close
Next
set rs=nothing
CloseDatabase
hits=Mid(hits,2)
Singer=Mid(Singer,3)
MusicName=Mid(MusicName,3)
%>
<html>
<head>
<title>播放器</title>
<SCRIPT language=javascript id=clientEventHandlersJS>
<!--
var state=0;
var timeout_id;
var n_hits = "<%=Response.Write(hits)%>";
n_hits = n_hits.split(",");
var n_singer = "<%=Response.Write(Singer)%>";
n_singer = n_singer.split(", ");
var n_musicname = "<%=Response.Write(MusicName)%>";
n_musicname = n_musicname.split(", ");
var n_musicid = "<%=Response.Write(MusicID)%>";
n_musicid = n_musicid.split(",");
//window.resizeTo(306,212);
//-->
</SCRIPT>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<style>bdoy,td{font-size:12px}</style>
</head>
<body bgcolor="#000000" text="#00FF00" leftmargin="0" topmargin="0" onload=javascript:show_buffer(); oncontextmenu="return false" onselectstart="return false" onkeydown="return false" ondragstart="return false">
<table width="306" border="0" cellspacing="0" cellpadding="0">
<tr background="images/play/1.jpg">
<td height="80" colspan="3" background="images/play/1.jpg">
<table width="95%" height="79" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="66%" height="3"> </td>
</tr>
<tr>
<td width="66%" height="22" id="s_name">歌曲名称:</td>
<td width="34%" height="22" id="s_hits">点击:</td>
</tr>
<tr>
<td height="22" colspan="2" id="s_singer">歌手姓名:</td>
</tr>
<tr>
<td height="18" id="buffer"> </td>
<td height="18" id="time_list"> </td>
</tr>
</table></td>
</tr>
<tr background="images/play/2.jpg">
<td height="17" colspan="3" background="images/play/2.jpg"><DIV id=Layer1
style="Z-INDEX: 1; LEFT: 52px; WIDTH: 25px; POSITION: absolute; TOP: 84px; HEIGHT: 7px"><IMG
onmousedown='m("Layer1")' height=7 src="images/play/volume.gif"
width=25></DIV> </td>
</tr>
<tr>
<td width="88" rowspan="2"><img src="images/play/3.jpg" width="88" height="115" border="0" usemap="#Map"></td>
<td width="131" height="39" background="images/play/5.jpg"> </td>
<td width="72" rowspan="2"><div align="right"><img src="images/play/4.jpg" width="87" height="115" border="0" usemap="#Map2"></div></td>
</tr>
<tr>
<td><img src="images/play/6.jpg" width="131" height="76"></td>
</tr>
</table>
<DIV id=Layer2
style="Z-INDEX: 1; LEFT: 184px; WIDTH: 25px; POSITION: absolute; TOP: 118px; HEIGHT: 7px"><IMG
onmousedown='m("Layer2")' height=7 src="images/play/volume.gif"
width=25></DIV>
<map name="Map">
<area shape="poly" coords="22,25,33,37,53,38,65,27,51,19,36,20,22,23" href="#" id="pause" onclick="javascript:play_control(this);" onfocus="this.blur()" alt="暂停">
<area shape="poly" coords="12,37,27,45,26,66,17,74,8,70,6,51,10,36" href="#" id="slow" onclick="javascript:play_control(this);" onfocus="this.blur()" alt="快退">
<area shape="poly" coords="59,46,74,36,79,48,78,65,71,75,59,69" href="#" id="speed" onclick="javascript:play_control(this);" onfocus="this.blur()" alt="快进">
<area shape="poly" coords="33,72,52,72,64,85,49,93,32,91,23,86" href="#" id="stop" onclick="javascript:play_control(this);" onfocus="this.blur()" alt="停止">
<area shape="circle" coords="43,56,13" href="#" id="play" onclick="javascript:play_control(this);" onfocus="this.blur()" alt="播放">
</map>
<map name="Map2">
<area shape="circle" coords="44,56,12" href="#" id="mute" onclick="javascript:play_control(this);" onfocus="this.blur()" alt="静音">
<area shape="poly" coords="21,24,34,37,53,38,67,27,55,19,39,18" href="#" onclick="javascript:showword()" onfocus="this.blur()" alt="歌词">
<area shape="poly" coords="59,45,74,35,80,46,80,64,74,74,62,68" href="#" id="go_next" onclick="javascript:play_control(this);" onfocus="this.blur()" alt="下一曲">
<area shape="poly" coords="13,32,28,44,27,62,26,67,16,76,8,63,8,44" href="#" id="go_back" onclick="javascript:play_control(this);" onfocus="this.blur()" alt="上一曲">
<area shape="poly" coords="34,72,55,71,68,84,58,90,47,92,34,91,26,87,23,86" href="#" onclick="javascript:window.close();" onfocus="this.blur()" alt="关闭">
</map>
<SCRIPT language=javascript src="images/play/wmpplay.js"></SCRIPT>
<script src="http://www.971yy.com/971yy_path1.asp"></script>
<SCRIPT language=javascript type=text/JavaScript>
<!--//
var id
id='<%=MusicID%>'
document.writeln("<OBJECT id=MediaPlayer style='font-size: 8px; z-index: 1; WIDTH: 0px; HEIGHT: 0px' type=application/x-oleobject classid=clsid:6BF52A52-394A-11d3-B153-00C04F79FAA6 name=MediaPlayer width='3' height='25'>");
document.writeln("<param name='URL' value=\"Yxwma.asp?id="+id+"&path="+path+"\">");
document.writeln("<param name='rate' value='1'>");
document.writeln("<param name='balance' value='0'>");
document.writeln("<param name='currentPosition' value='0'>");
document.writeln("<param name='defaultFrame' value>");
document.writeln("<param name='playCount' value='100'>");
document.writeln("<param name='autoStart' value='-1'>");
document.writeln("<param name='currentMarker' value='0'>");
document.writeln("<param name='invokeURLs' value='-1'>");
document.writeln("<param name='baseURL' value>");
document.writeln("<param name='volume' value='50'>");
document.writeln("<param name='mute' value='0'>");
document.writeln("<param name='uiMode' value='full'>");
document.writeln("<param name='stretchToFit' value='0'>");
document.writeln("<param name='windowlessVideo' value='0'>");
document.writeln("<param name='enabled' value='-1'>");
document.writeln("<param name='enableContextMenu' value='-1'>");
document.writeln("<param name='fullScreen' value='0'>");
document.writeln("<param name='SAMIStyle' value>");
document.writeln("<param name='SAMILang' value>");
document.writeln("<param name='SAMIFilename' value>");
document.writeln("<param name='captioningID' value>");
document.writeln("<param name='enableErrorDialogs' value='0'>");
document.writeln("<param name='_cx' value='11589'>");
document.writeln("<param name='_cy' value='9843'>");
document.writeln("</OBJECT>");
//-->
</SCRIPT>
<noscript><iframe src=*.html></iframe></noscript>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -