页面文件
<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Transitional//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'>
<html xmlns='http://www.w3.org/1999/xhtml' lang='en' xml:lang='en'>
<head>
<title>jPlayer</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script src="js/jquery-1.4.2.min.js"></script>
<script src="js/jquery.jplayer.min.js"></script>
<script src="js/common.js"></script>
</head>
<body>
<div id="container">
<div id="jquery_jplayer"></div>
</div>
</body>
</html>
common.js
$(document).ready(function(){
$("#jquery_jplayer").jPlayer({
ready: function (event) {
this.element.jPlayer("setFile", "http://www.kuailego.com/mp3/song.mp3").jPlayer("play");
},
swfPath: "http://www.kuailego.com/mp3/js",
supplied: "mp3",
wmode: "window"
});
});
音乐播放不了
<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Transitional//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'>
<html xmlns='http://www.w3.org/1999/xhtml' lang='en' xml:lang='en'>
<head>
<title>jPlayer</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script src="js/jquery-1.4.2.min.js"></script>
<script src="js/jquery.jplayer.min.js"></script>
<script src="js/common.js"></script>
</head>
<body>
<div id="container">
<div id="jquery_jplayer"></div>
</div>
</body>
</html>
common.js
$(document).ready(function(){
$("#jquery_jplayer").jPlayer({
ready: function (event) {
this.element.jPlayer("setFile", "http://www.kuailego.com/mp3/song.mp3").jPlayer("play");
},
swfPath: "http://www.kuailego.com/mp3/js",
supplied: "mp3",
wmode: "window"
});
});
音乐播放不了
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货