js实现mp3音乐播放器ui界面代码

maolai web前端评论453阅读模式

html+js实现mp3音乐播放器ui界面代码,html5音乐播放器,mp3音乐播放器,音乐播放器ui界面

--在线演示

<!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">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>jQuery WEB音乐播放器下载</title>
<link href="css/style.css" rel="stylesheet" type="text/css" media="all" />
<script src="js/jquery-1.11.1.min.js"></script>
</head>
<body>
<!-- 代码 开始 -->
<div class="audio-main w3ls">
	<div class="audio-record-list">
	<div class="profile">
			 <div class="profile-top wthree">
				 <div class="pic-sec">
					 <div class="pic">
						 <img src="images/t3.jpg" alt=""/>
					 </div>
					 <div class="pic_info">
						 <h2>bokequ</h2>
						 <h3><a href="http://www.bokequ.com/tag/html5-music">html音乐播放器</a></h3>
					 </div>
					 <div class="clear"></div>
				 </div>
				 <div class="media">
					 <div class="tweet">
						 <h4>2,501</h4>
						 <h5>Tweets</h5>
					 </div>
					 <div class="follow">
						 <h4>158</h4>
						 <h5>Following</h5>
					 </div>
					 <div class="follow2">
						  <h4>25,850</h4>
						 <h5>Followers</h5>
					 </div>
					 <div class="clear"></div>
				 </div>
			 </div>
		 </div>
		<div id="jquery_jplayer_1" class="jp-jplayer"></div>
			<div id="jp_container_1" class="jp-audio" role="application" aria-label="media player">
				<div class="jp-type-playlist">
					<div class="jp-gui jp-interface">
						<div class="jp-controls">	
							<button class="jp-play" role="button" tabindex="0">play</button>
						</div>
						<div class="jp-progress">
							<div class="jp-seek-bar">
								<div class="jp-play-bar"></div>
							</div>
						</div>
						<div class="jp-volume-controls">
							<button class="jp-mute" role="button" tabindex="0">mute</button>
							<button class="jp-volume-max" role="button" tabindex="0">max volume</button>
							<div class="jp-volume-bar">
								<div class="jp-volume-bar-value"></div>
							</div>
						</div>
						<div class="jp-time-holder">
							<div class="jp-current-time" role="timer" aria-label="time">&nbsp;</div>
							<div class="jp-duration" role="timer" aria-label="duration">&nbsp;</div>
						</div>
						
					</div>
					<div class="jp-playlist">
						<ul>
							<li>&nbsp;</li>
						</ul>
					</div>
					<div class="jp-no-solution">
						<span>Update Required</span>
						To play the media you will need to either update your browser to a recent version or update your <a href="http://get.adobe.com/flashplayer/" target="_blank">Flash plugin</a>.
					</div>
				</div>
			</div>
	</div>
</div>
<link href="css/jplayer.blue.monday.min.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="js/jquery.jplayer.min.js"></script>
<script type="text/javascript" src="js/jplayer.playlist.min.js"></script>
<script type="text/javascript">
$(document).ready(function(){

	new jPlayerPlaylist({
		jPlayer: "#jquery_jplayer_1",
		cssSelectorAncestor: "#jp_container_1"
	}, [
		
		{
			title:"在他乡 - 水年木华",
			mp3:"http://img.bokequ.com/music/zaitaxiang.mp3",
			oga:"http://img.bokequ.com/music/zaitaxiang.mp3"
		},
		{
			title:"andy - 阿杜",
			mp3:"http://img.bokequ.com/music/andy.mp3",
			oga:"http://img.bokequ.com/music/andy.mp3"
		},
		{
			title:"留什么给你 - 孙楠",
			mp3:"http://img.bokequ.com/music/geini.mp3",
			oga:"http://img.bokequ.com/music/geini.mp3"
		}
	], {
		swfPath: "../../dist/jplayer",
		supplied: "oga, mp3",
		wmode: "window",
		useStateClassSkin: true,
		autoBlur: false,
		smoothPlayBar: true,
		keyEnabled: true
	});
});
</script>
<!-- 代码 结束 -->
</body>
</html>

 
maolai
  • 本文由 maolai 发表于 2024年5月15日 06:57:53
  • 转载请务必保留本文链接:http://www.bokequ.com/545.html

发表评论