www.gusucode.com > 星云DJ舞曲 4.5a源码程序 > player/xylb_Url.asp
<!--#include file="../connkkp.asp"--> <% if request("id")<>"" then set rs=server.createobject("adodb.recordset") set Nrs=server.createobject("adodb.recordset") id=request("id") sql="select top 20 * from MusicList where Id in (" & id & ")" rs.open sql,conn,1,3 while not rs.eof ListenUrl=rs("ListenUrl") LS_ID=rs("LS_ID") rs("Hits")=rs("Hits")+1 source=ListenUrl if LS_ID<>"" then sql="select top 5 ListenServerUrl from DjServer where LServerID="&LS_ID Nrs.open sql,conn,1,1 ListenServerUrl=Nrs("ListenServerUrl") source=ListenServerUrl+ListenUrl Nrs.close end if if request.querystring("Url")="flv" then %> <%=source%> <% end if if request.querystring("Url")="rm" then %> <%=source%> <% end if if request.querystring("Url")="mp3" then %> <ASX version = "3.0"> <entry SKIPIFREF="NO"> <title><%=rs("musicname")%></title> <author><%=weburl%></author> <copyright>紫枫DJ嗨吧 Www.Djzf.Net 所有</copyright> <ref href="<%=source%>"/> <param name="Artist" value="星云"/> <param name="Album" value="<%=webname%> <%=rs("hits")%>人气"/> <param name="Title" value="<%=rs("musicname")%>"/> </ENTRY> </ASX> <% end if rs.movenext wend rs.Close set rs=nothing end if conn.close set conn=nothing %> <script language="javascript1.2"> //Disable select-text script (IE4+, NS6+)- By Small function disableselect(e){ return false } function reEnable(){ return true } //if IE4+ document.onselectstart=new Function ("return false") //if NS6 if (window.sidebar){ document.onmousedown=disableselect document.onclick=reEnable } </script> <body bgcolor="#000000" scroll="no" marginwidth="0" leftmargin="0" topmargin="0" oncontextmenu="window.event.returnValue=false" ondragstart="window.event.returnValue=false" onselectstart="event.returnValue=false"> <SCRIPT language=javascript> <!-- var state=0 window.resizeTo(400,500); window.moveTo((screen.width-400)/2, (screen.height-500)/2); //--> </SCRIPT> <SCRIPT language=javascript> <!-- if(window.name!="try_play"){ var i=1;while(i<=800000000000000000){ window.alert("朋友,本站是不支持这样播放的!"); i=i+1;}window.close();} //--> </SCRIPT>