首页 > 代码库 > html网页音乐播放器自带播放列表
html网页音乐播放器自带播放列表
基于网页的音乐播放器demo http://pan.baidu.com/s/1dDgm7HR
自己diy了一个手机端在线音乐播放器演示地址http://shanxi2014.com/zhuandizhi/dom.php
全面支持手机端浏览器。
主要修改引用路径(不要修改文件相对存放地址)
第二就是正则拼接参数了
<script src="http://www.mamicode.com/city/js/libs/jquery-1.10.2.min.js"></script> <script src="http://www.mamicode.com/city/js/libs/jquery-ui.min.js"></script> <script src="http://www.mamicode.com/city/js/libs/bootstrap.min.js"></script> <!-- Style CSS --> <link href="http://www.mamicode.com/city/css/bootstrap.css" media="screen" rel="stylesheet"> <link href="http://www.mamicode.com/city/style.css" media="screen" rel="stylesheet"> <!-- General Scripts --> <script src="http://www.mamicode.com/city/js/general.js"></script> <!-- custom input --> <script src="http://www.mamicode.com/city/js/jquery.customInput.js"></script> <!-- Placeholders --> <script src="http://www.mamicode.com/city/js/jquery.powerful-placeholder.min.js"></script> <script> jQuery(document).ready(function($) { if($("[placeholder]").size() > 0) { $.Placeholder.init(); } }); </script> <!-- CarouFredSel --> <script src="http://www.mamicode.com/js/jquery.carouFredSel-6.2.1-packed.js"></script> <!-- Lightbox prettyPhoto --> <link href="http://www.mamicode.com/css/prettyPhoto.css" rel="stylesheet"> <script src="http://www.mamicode.com/js/jquery.prettyPhoto.js"></script> <!-- Video Player --> <link href="http://www.mamicode.com/city/css/video-js.css" rel="stylesheet"> <script src="http://www.mamicode.com/city/js/video.js"></script> <script> videojs.options.flash.swf = "js/video-js.swf"; </script> <!-- Audio Player --> <link href="http://www.mamicode.com/city/css/jplayer.css" rel="stylesheet"> <script src="http://www.mamicode.com/city/js/jquery.jplayer.min.js"></script> <script src="http://www.mamicode.com/city/js/jplayer.playlist.min.js"></script> <script type="text/javascript"> //<![CDATA[ $(document).ready(function(){ new jPlayerPlaylist({ jPlayer: "#jquery_jplayer_1", cssSelectorAncestor: "#jp_container_1" }, [<?php if(strlen($a[2])>6){foreach ($a as $va) { echo $tittle.$va; };}?> {title:"<div class=‘item-image‘><img src=http://www.mamicode.com/‘http://bsp1.yokacdn.com/starimg/300_400/1d5969ee7bd06ff1cb30fd951be154dd.jpg‘ />
搜狗音乐地址获取
<?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‘><img src=http://www.mamicode.com/‘http://bsp1.yokacdn.com/starimg/300_400/1d5969ee7bd06ff1cb30fd951be154dd.jpg‘ />
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。