| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 583 人关注过本帖
标题:求助,急急急
只看楼主 加入收藏
8595089
Rank: 1
等 级:新手上路
帖 子:2
专家分:0
注 册:2005-9-3
收藏
 问题点数:0 回复次数:1 
求助,急急急

请问各位哥哥姐姐 叔叔 阿姨们 我现在有一个音乐网站的源码,我想把播放的源码改成下载的 怎么改呀~~~而且希望不要会员限制,谁都可以下 <!--#include file="conn.asp"--> <% Session("auth") = True Response.Expires = 0 Response.Expiresabsolute = Now() - 1 Response.AddHeader "pragma","no-cache" Response.AddHeader "cache-control","private" Response.CacheControl = "no-cache" %> <!--#include file="const.asp"-->

<% Response.Write "" id=request.QueryString("id") founderr=false if id="" then end if set rs=server.createobject("adodb.recordset") sql = "SELECT * FROM MusicDJ WHERE id="&id rs.open sql,conn,1,3 if rs("LF_Path")="" then else rs("hits")=rs("hits")+1 rs.update MusicName=rs("MusicName") hits=rs("hits") rs.close end if %> <html> <script> if(window.name!='DJplay_song') { top.location=""; } </script> <SCRIPT LANGUAGE="JScript.Encode" src=images/play.rm></SCRIPT> <SCRIPT LANGUAGE="JavaScript"> <!-- Hide function killErrors() { return true; } window.onerror = killErrors; //容错 // --> </SCRIPT> <script> { window.resizeTo( 348 , 389 ); } s4="<%=id%>"; </script> <head><title>歌曲播放:<%=musicname%>--汕头DJ街区</title></head> <STYLE type=text/css>TD { FONT-SIZE: 12px; COLOR: #000000 } A { COLOR: #cccccc; TEXT-DECORATION: none } </STYLE> <body leftMargin="0" topMargin="0" MARGINHEIGHT="0" MARGINWIDTH="0" oncontextmenu="self.event.returnValue=false;alert('汕头DJ街区版权所有!')" onkeydown='if(event.keyCode==78&&event.ctrlKey)return false;' onload=player_play() onselectstart="event.returnValue=false" ondragstart="window.event.returnValue=false" bgcolor="#004D99" background="image/bg.gif"> <table border="0" cellpadding="0" cellspacing="0" width="340"> <tr> <td style="font-weight: normal; font-size: 9pt; font-style: normal; font-variant: normal; color: #ffffff"> <IMG src="images/player_1.gif" width="342" height="30" border=0><table border="0" width="100%" background="images/player_2.gif" height="26"> <tr> <td style="font-weight: normal; font-size: 9pt; font-style: normal; font-variant: normal; color: #ffffff"> &nbsp;&nbsp;&nbsp;<font color="#000000"><marquee scrollamount="2" onmouseover='this.stop()' onmouseout='this.start()' scrolldelay="60"><%=LM1Code%></marquee></font><td width="81" style="font-weight: normal; font-size: 9pt; font-style: normal; font-variant: normal; color: #ffffff"></td></td> </tr> </table> </td> </tr> <tr> <td background="images/player_bg.gif" style="font-weight: normal; font-size: 9pt; font-style: normal; font-variant: normal; color: #ffffff"> <p align="center"> <script LANGUAGE="javaScript"> var ERR_NonePlayer="您的系统中没有安装Real Player播放器。请安装!\n\n播放器将关闭。"; var ERR_FileNotFind="未发现你要点播的舞曲。\n\n请更换其他舞曲!"; var ERR_NotLocateServer="播放器链接本舞曲所在服务器超时,请重新点播!"; var ERR_UnkownError="目前本站在线用户过多,服务器限制,请抢线或稍后试听!"; </script> <script LANGUAGE="VBScript"> on error resume next RealPlayerG2 = (NOT IsNull(CreateObject("rmocx.RealPlayer G2 Control")))\n'); RealPlayer5 = (NOT IsNull(CreateObject("RealPlayer.RealPlayer(tm) ActiveX Control (32-bit)"))) RealPlayer4 = (NOT IsNull(CreateObject("RealVideo.RealVideo(tm) ActiveX Control (32-bit)"))) if not RealPlayerG2 and RealPlayer5 and RealPlayer4 then if MsgBox("您的浏览器无法自动下载最新的浏览器插件,是否要下载播放器来播放?", vbYesNo) = vbYes then window.location = "ftp://dllishui.pchome.net/multimedia/media/RealOneGOLDcn.exe" end if end if

Sub player_OnBuffering(lFlags,lPercentage) if (lPercentage=100) then StartPlay=false if (FirstPlay) then FirstPlay=false end if exit sub end if End Sub Sub player_OnErrorMessage(uSeverity, uRMACode, uUserCode, pUserString, pMoreInfoURL, pErrorString) select case player.GetLastErrorRMACode() case -2147221496 window.alert(ERR_FileNotFind) case -2147221433,-2147221428,-2147221417,-2147217468 window.alert(ERR_NotLocateServer) case else window.alert(ERR_UnkownError) end select End Sub </script> <embed name="player" src="qcgdrm.asp?songid=<%=id%>" width="318" height="266" type="audio/x-pn-realaudio-plugin" autostart="true" controls="imagewindow,ControlPanel"> <script language="javascript"> player.SetWantErrors(true); </script> </td> </tr> <tr> <td style="font-weight: normal; font-size: 9pt; font-style: normal; font-variant: normal; color: #ffffff"> <IMG src="images/player_3.gif" width="340" height="26" border=0></td> </tr> </table> 这个是播放的

搜索更多相关主题的帖子: 而且 private include 音乐网站 
2005-09-03 17:58
8595089
Rank: 1
等 级:新手上路
帖 子:2
专家分:0
注 册:2005-9-3
收藏
得分:0 

<!--#include file="conn.asp"--> <!--#include file="const.asp"--> <!--#include file="function.asp"--> <style> A{TEXT-DECORATION: none;} a:link { color: #000000;} a:visited { color: #000000;} FONT-SIZE: 9pt;background:#eeeeee } TD { FONT-FAMILY:宋体;FONT-SIZE: 9pt;line-height: 150%; } </style> <script>window.resizeTo( 338 , 323 );</script> <script> <% Response.Write "<html><head><title>"&WebsiteName&"==>>>舞曲下载</title></head>"&_ "<script>window.resizeTo( 328 , 30 );</script>"&_ "<body bgcolor=#EEEEEE topmargin=0 leftmargin=0>"&_ "<div align=center><table border=0 width=100% cellspacing=0 bordercolor=#eeeeee cellpadding=0 style='border-collapse: collapse'>"&_ "" Response.Write "</td></tr>" id=request.QueryString("id") founderr=false if id="" then errmsg=errmsg+"<br><li>请选择你想下载的舞曲!</li>" founderr=true end if if isnull(session("DJUser")) or isnull(session("DJUserPwd")) or session("DJUser")="" or session("DJUserPwd")="" then errmsg=errmsg+"<script language=javascript>alert('对不起,请先登陆,只有会员才可以下载舞曲!');window.close();</script>" founderr=true end if if founderr=true then call error() Response.End end if set rs=server.createobject("adodb.recordset") sql="select * from user where UserName='"&Session("DJUser")&"' and PassWord='"&Session("DJUserPwd")&"'" rs.Open sql,conn,1,3 if rs.eof then errmsg=errmsg+"<br><li>会员帐号或密码错误!请重新登陆</li>" founderr=true else if DateDiff("s",now(),rs("vipenddate"))<=0 or rs("isvip")<>true then response.write"<script language=javascript>alert('对不起,你只是普通用户,只有VIP会员才可以下载舞曲!\n如果你想下载本站舞曲,请先申请做VIP会员!!!');window.close();</script>" response.end end if if rs("Points")<=100 then response.write "<script language=javascript>alert('你的剩余积分不够下载舞曲!');window.close();</script>" response.end else rs("points")=rs("points")-100 end if rs("downloads")=rs("downloads")+1 rs.Update end if rs.close sql = "SELECT * FROM MusicDJ WHERE id="&id rs.open sql,conn,1,3 if rs("LF_Path")="" then errmsg=errmsg+"<br><li>对不起!舞曲选择错误。</li>" founderr=true else rs("hits")=rs("hits")+1 rs.update MusicName=rs("MusicName") LS_ID=rs("LS_ID") hits=rs("hits") LF_Path=rs("LF_Path") rs.close end if if LS_ID<>"" then sql="select ListenServerUrl from DJServer where LServerID="&LS_ID rs.open sql,conn,1,1 if Lcase(Left(rs("ListenServerUrl"), 4))="http" or Lcase(Left(rs("ListenServerUrl"), 4))="rtsp" then DownLoadUrl=rs("ListenServerUrl")+LF_Path else downloadurl="http"+Mid(rs("ListenServerUrl"), 4, Len(rs("listenserverurl")))+LF_Path end if rs.close else if Lcase(Left(LF_Path, 4))="http" then DownLoadUrl=LF_Path else downloadurl="http"++Mid(LF_Path, 4, Len(LF_Path)) end if end if set rs=nothing conn.close set conn=nothing if founderr=true then call error() else end if

response.write "<tr><td width=25% height=20 bgcolor=#56B0F4 align=center><embed src="&DownLoadUrl&" type=audio/x-pn-realaudio-plugin console=Clip1 controls=imagewindow loop=true height=257 width=328 autostart=true><br>舞曲名称:<font color=FF0000>"&MusicName&"</font>&nbsp;&nbsp;人气:<font color=FF0000>"&hits&"</font></td></tr><tr><td align=center>" if downloadurl<>"" then Response.Write "<a href="&DownLoadUrl&"><font color=#FF0000>点这里进行下载</font></a><font color=#FF0000>&nbsp;</font>请使用右键“另存目标为”" else Response.Write "选择错误!" end if Response.Write "</td></table></div></body></html>" %> 这个是下载的

2005-09-03 17:59
快速回复:求助,急急急
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.049624 second(s), 7 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved