" Getlrc(songname) End Function Function mp3url(url) page=ajax("http://box.zhangmen.baidu.com/m?gate=1&ct=134217728&tn=baidumt,&word=mp3,"&url&"&lm=16777216","","","") regex.Pattern="(http)\S+\.(mp3)" Set urls= regex.execute(page) If urls.count>0 Then mp3url=urls(2) End Function Function mplay(fileUrl) echo"" End Function Sub Getlrc(songname) echo"" echo"" echo"" echo"" echo"
" End Sub Function Suggest() If Trim(query("songname"))<>"" then songname=Replace((query("songname")),"!","%") 'Suggest=ajax("http://mp3.sogou.com/suggest/suggest.jsp?key="&escape(query("songname"))&"&asc=1","","","UTF-8") Suggest=ajax("http://music.soso.com/wh.php?"&songname,"","","") End if End Function Function Query(byval var) Query = request.form(var) if Query = "" then Query = request(var) End Function Function Echo(byval str) response.write str End Function Public Function AJAX(url,method,data,bm) If method="" Then method="get" If bm="" Then bm="gb2312" dim http Set http=Server.createobject("Microsoft.XMLHTTP") Http.open method,url,false if LCase(method)="post" then Http.setrequestheader "content-length",len(data) Http.setrequestheader "content-type","application/x-www-form-urlencoded" end if Http.send(data) if Http.readystate=4 and Http.status=200 then AJAX=bytesToBSTR(Http.responseBody,"GB2312") end If set http=nothing End function Public Function BytesToBstr(body,Cset) dim objstream set objstream = Server.CreateObject("ADODB"+"."+"Stream") with objstream .Type = 1 .Mode =3 .Open .Write body .Position = 0 .Type = 2 .Charset = Cset BytesToBstr = .ReadText .Close end with set objstream = nothing End Function Set regex=Nothing %>在线演示//www.zwyuanma.com/demo/mp4/index.html本地下载