Web-based music player demo Http://pan.baidu.com/s/1dDgm7HR
DIY a mobile phone-side online music player demo address http://shanxi2014.com/zhuandizhi/dom.php
Full support for mobile-side browsers.
Primary modification of Reference path (do not modify file relative storage address)
The second is the regular splicing parameters
<script src= "/city/js/libs/jquery-1.10.2.min.js" ></script><script src= "/city/js/libs/ Jquery-ui.min.js "></script><script src="/city/js/libs/bootstrap.min.js "></script><!-- Style CSS--><link href= "/city/css/bootstrap.css" media= "screen" rel= "stylesheet" ><link href= "/city/ Style.css "media=" screen "rel=" stylesheet "><!--General Scripts--><script src="/city/js/general.js "> </script><!--Custom input--><script src= "/city/js/jquery.custominput.js" ></script><!- -Placeholders--><script src= "/city/js/jquery.powerful-placeholder.min.js" ></script><script >jQuery (document). Ready (function($) { if($ ("[placeholder]"). Size () > 0) { $. Placeholder.init (); } });</script><!--caroufredsel--><script src= "Js/jquery.caroufredsel-6.2.1-packed.js" ></script ><!--Lightbox prettyphoto--><link href= "css/prettyphoto.css" rel= "stylesheet" ><script src= "js/ Jquery.prettyPhoto.js "></script><!--Video Player--><link href="/city/css/video-js.css "rel=" Stylesheet "><script src="/city/js/video.js "></script><script>Videojs. options.flash.swf = "js/video-js.swf";</script><!--Audio Player--><link href= "/city/css/jplayer.css" rel= "stylesheet" ><script src= " /city/js/jquery.jplayer.min.js "></script><script src="/city/js/jplayer.playlist.min.js "></ Script><script type= "Text/javascript" >//<! [Cdata[$ (document). Ready (function(){ Newjplayerplaylist ({jplayer: "#jquery_jplayer_1",Cssselectorancestor: "#jp_container_1" }, [<?phpif(strlen($a[2]) >6) {foreach($a as $va) { Echo $tittle.$va;};}?>{title: "<div class= ' item-image ' ></div> finally wait for you, M4A: http://cc.stream.qqmusic.qq.com/ c100003gf7my2p0fz7.m4a?fromtag=52 "},{title:" <div class= ' item-image ' ></div> accompany you to the end, M4A: "/http cc.stream.qqmusic.qq.com/c100003gx33x2aly1r.m4a?fromtag=52 "},{title:" <div class= ' item-image ' ></div> If love Goes Down, M4A: "http ://cc.stream.qqmusic.qq.com/c10000395snv0rl1hz.m4a?fromtag=52 "},{title:" <div class= ' item-image ' ></div> unparalleled ", M4A:" Http://cc.stream.qqmusic.qq.com/C100002sjtbA1K4ASF.m4a?fromtag=52 "} ],{Swfpath: "JS",supplied: "Oga, mp3,m4a",Wmode: "Window",Smoothplaybar:false,keyenabled:false }); }); //]]></script>
Sogou Music Address get
<?PHP$query=$_get[' s '];$q= Mb_convert_encoding ($query, "GBK", "UTF-8");$ew=UrlEncode($query);$jsrc= "https://ajax.googleapis.com/ajax/services/search/images?v=1.0&q={$ew}";$json=file_get_contents($jsrc);$jset= Json_decode ($json,true);$src=$jset["ResponseData"] ["Results"] [0] ["url"];$image= "<div class= ' item-image ' ></div> ';$query=UrlEncode($query);$url= "http://mp3.sogou.com/music.so?query={$query}";functionCurl_get ($url,Array $get=NULL,Array $options=Array()){ $defaults=Array(Curlopt_url=$url. (Strpos($url, ‘?‘) ===FALSE? ‘?‘ : ‘‘).Http_build_query($get),Curlopt_header= 0,Curlopt_returntransfer=TRUE,Curlopt_timeout= 4 ); $ch=Curl_init (); Curl_setopt_array ($ch, ($options+$defaults)); if( !$result= Curl_exec ($ch)) { Trigger_error(Curl_error ($ch)); } curl_close ($ch); return $result;}$html=curl_get ($url,Array(),Array());Iconv("GB2312", "Utf-8//ignore",$html); $c= "+onclick=\" Qqdownload.*http://cc\.stream\.qqmusic\.qq\.com.*\.m4a\?fromtag=52+i "; $elemment=$html; if(Preg_match_all($c,$elemment,$matches)){$i=0;$a=Array();$t=Array();foreach($matches[0] as $val) { $val=Explode("@@",$val, 11); $t[$i]= "<a href=\" {$val[10]} \ "Class=\" btn btn-red btn-round\ "><span >{$val[1]} </span></a><br/> "; $i++; $val[1]=$image.$val[1]; $a[$i]= "{title:\" {$val[1]} \",". "M4a:\" {$val[10]} \"},"; } }?>