The ASP plays music code, which reads the address of the music from the database and gives it to the player.
<% @LANGUAGE = "VBSCRIPT" codepage= "936"%>
<!--#include file= "inc/conn.asp"-->
<!--#include file= "inc/function.asp"-->
<! DOCTYPE HTML PUBLIC "-//w3c//dtd HTML 4.01 transitional//en" "HTTP://WWW.W3.ORG/TR/HTML4/LOOSE.DTD" >
<%
Check ()
Dim id,sql
Id=html_encode (Request. QueryString ("id"))
If not IsNumeric (ID) or id= "" Then
Response. Write ("<script language= ' JavaScript" >alert (' illegal operation, so no Battle Hymn. '); History.back ();</script> ")
Else
Sql= "Select Title,id,say,zp_path from Music where id=" &id
Updatesql= "Update music set hit=hit+1 where id=" &id
Call OPENDB ()
Set Rs=cn.execute (SQL)
If not rs.eof then
Cn.execute (Updatesql)
%>
<meta http-equiv= "Content-type" content= "text/html; charset=gb2312 ">
<title><%=rs ("title")%></title>
<style type= "Text/css" >
<!--
Body {
margin-left:2px;
margin-top:2px;
margin-right:2px;
margin-bottom:2px;
}
-->
</style>
<body>
<table width= "border=" "0" align= "center" cellspacing= "1" bgcolor= "#0099cc" >
<tr>
<TD height= "background=" img/play.gif ><table width= "100%" height= "border=" "0" cellpadding= "0" cellspacing= "0" >
<tr>
<TD width= "33%" align= "left" > </td>
<TD width= "60%" > </td>
<TD width= "7%" align= "center" ><table width= "0" height= "0" border= "0" >
<tr>
<TD onmouseover= "this.style.backgrond= ' img/down.gif ';" onmouseout= "this.style.background= ' img/playclose.gif ';" ><a href= "Javascript:window.close ();" ></a></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
<tr>
<TD height= align= "center" valign= "Top" bgcolor= "#FFFFFF" ><table width= "98%" border= "0" align= "center" cellpadding= "0" cellspacing= "0" >
<tr>
<td> </td>
</tr>
<tr>
<form name= "Form1" method= "Post" action= "" > <td align= "Center" >
<textarea name= "textarea" cols= "rows=" style= "Background:url" (photo/2006111447439849.jpg) "><%=" Encode_html (RS ("say"))%></textarea>
</td>
</form>
</tr>
<tr>
<td> </td>
</tr>
</table></td>
</tr>
<tr>
<td><object classid= "Clsid:6bf52a52-394a-11d3-b153-00c04f79faa6" width=450 height=45 align= "Middle" MPlayer1 ">
<param name= "Invokeurls" value= "0" >
<!--script command settings: whether to invoke url-->
<param name= "URL" Value= <%=encode_html (rs ("Zp_path"))%> ">
<param name= "Rate" value= "1" >
<param name= "balance" value= "0" >
<param name= "currentposition" value= "0" >
<param name= "Defaultframe" value>
<param name= "Playcount" value= ">"
<param name= "AutoStart" value= "-1" >
<param name= "Currentmarker" value= "0" >
<param name= "Invokeurls" value= "-1" >
<param name= "BaseURL" value>
<param name= "Volume" value= ">"
<param name= "Mute" value= "0" >
<param name= "Uimode" value= "full" >
<param name= "Stretchtofit" value= "0" >
<param name= "Windowlessvideo" value= "0" >
<param name= "Enabled" value= "-1" >
<param name= "Enablecontextmenu" value= "-1" >
<param name= "fullscreen" value= "0" >
<param name= "Samistyle" value>
<param name= "Samilang" value>
<param name= "Samifilename" value>
<param name= "Captioningid" value>
<param name= "enableerrordialogs" value= "0" >
<param name= "_cx" value= "7779" >
<param name= "_cy" value= "1693" >
</object></td>
</tr>
</table>
<%
Else
Response. Write ("<script language= ' JavaScript" >alert (' Sorry, this song may have been deleted! '); History.back ();</script> ")
End If
End If%>
</body>
NOTE: Reprint please indicate the source www.111cn.net