<!DOCTYPE html>
<html>
<head>
<title>歌单-e路音乐</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="jquery.mobile-1.3.2.min.css" />
<script src="jquery-1.9.1.min.js"></script>
<script src="jquery.mobile-1.3.2.min.js"></script>
<link rel="stylesheet" href="style/ttpod_index.css"/>
<script>
$(function() {
$('.FPlayBtn').click(function() {
playBtn();
});
$(".forwardBtn").bind("click",function(){
$(".playing").next("li").addClass("playing");
$(".playing").first().removeClass("playing");
var nextSrc=$(".playing").find(".playLine").attr('data-src');
$('.player_audio').attr("src",nextSrc);
playBtn();
});
$(".backBtn").bind("click",function(){
$(".playing").prev("li").addClass("playing");
$(".playing").last().removeClass("playing");
var prevSrc=$(".playing").find(".playLine").attr('data-src');
alert($(".playing").find(".playLine").attr('data-src'));
$('.player_audio').attr("src",prevSrc);
playBtn();
});
$('.playLine').click(function() {
var mp3Url=$(this).attr('data-src');
$('.player_audio').attr("src",mp3Url);
playBtn();
//alert($('.player_audio')[0].paused);
var songTitle=$(this).closest("li").find("h2").text();
$(".songName").text(songTitle);
});
});
function playBtn(){
if ($('.player_audio')[0].paused == false) {
$('.player_audio')[0].pause();
$('.FPlayBtn').attr("src","images/FPlayBtn.png");
} else {
$('.player_audio')[0].play();
$('.FPlayBtn').attr("src","images/FpauseBtn.png");
}
}
</script>
</head>
<body>
<div data-role="page">
<div data-role="header" class="ttpod_header" data-position="fixed" data-id="header"><a href="#" data-role="none"><img src="images/tticon.png"></a>
<h1>e路音乐</h1>
<a href="#" data-role="button" class="downloadBtn">下载手机e路音乐</a>
<!--导航-->
<div data-role="navbar" data-iconpos="top">
<ul>
<li class="navLi activeLiBtn"> <a href="index.html" data-transition="slide" data-theme="" data-prefetch="true" data-icon="" class="navBtn" data-ajax="false"> 广场 </a> </li>
<li class="navLi"> <a href="tt_songlist.html" data-transition="slide" data-prefetch="true" data-theme="" data-icon="" class="navBtn" data-ajax="false"> 歌单 </a> </li>
<li class="navLi"> <a href="top10.html" data-transition="fade" data-theme="" data-icon="" class="navBtn" data-ajax="false"> 排行 </a> </li>
<li class="navLi"> <a href="tt_singer.html" data-transition="fade" data-theme="" data-icon="" class="navBtn" data-ajax="false"> 歌手 </a> </li>
</ul>
</div>
<!--导航-->
</div>
<!-- /header -->
<div data-role="content">
<ul data-role="listview" data-split-icon="ttopd-playBtn" data-split-theme="d" class="musicGrouondList">
<li class="playing"><a href="tt_music.html" data-ajax="false" class="musicGrouondListFa">
<div class="countFirst">01</div>
<div class="singInfo">
<h2>冷酷到底</h2>
<p><span class="singer">羽泉</span><span class="favorCount">5597</span></p>
</div>
</a> <a href="#purchase" data-rel="popup" data-position-to="window" data-transition="pop" class="playLine" data-src="mp3/lkdd.mp3"></a> </li>
<li><a href="tt_music.html" data-ajax="false" class="musicGrouondListFa">
<div class="countSec">02</div>
<div class="singInfo">
<h2>海阔天空</h2>
<p><span class="singer">信乐团</span><span class="favorCount">5597</span></p>
</div>
</a> <a href="#purchase" data-rel="popup" data-position-to="window" data-transition="pop" class="playLine" data-src="mp3/jr.mp3"></a> </li>
<li><a href="tt_music.html" data-ajax="false" class="musicGrouondListFa" >
<div class="countSec">02</div>
<div class="singInfo">
<h2>海阔天空</h2>
<p><span class="singer">信乐团</span><span class="favorCount">5597</span></p>
</div>
</a> <a href="#purchase" data-rel="popup" data-position-to="window" data-transition="pop" class="playLine" data-src="mp3/hktk.mp3"></a> </li>
<li><a href="tt_music.html" data-ajax="false">
<div class="countThird">03</div>
<div class="singInfo">
<h2>囚鸟</h2>
<p><span class="singer">张宇</span><span class="favorCount">2918</span></p>
</div>
</a> <a href="#purchase" data-rel="popup" data-position-to="window" data-transition="pop">Purchase album</a> </li>
<li><a href="tt_music.html" data-ajax="false">
<div class="countDefault">04</div>
<div class="singInfo">
<h2>灰色河堤</h2>
<p><span class="singer">唐禹哲</span><span class="favorCount">2115</span></p>
</div>
</a> <a href="#purchase" data-rel="popup" data-position-to="window" data-transition="pop">Purchase album</a> </li>
<li><a href="tt_music.html" data-ajax="false">
<div class="countDefault">05</div>
<div class="singInfo">
<h2>囚鸟</h2>
<p><span class="singer">张宇</span><span class="favorCount">2918</span></p>
</div>
</a> <a href="#purchase" data-rel="popup" data-position-to="window" data-transition="pop">Purchase album</a> </li>
<li><a href="tt_music.html" data-ajax="false">
<div class="countDefault">06</div>
<div class="singInfo">
<h2>囚鸟</h2>
<p><span class="singer">张宇</span><span class="favorCount">2918</span></p>
</div>
</a> <a href="#purchase" data-rel="popup" data-position-to="window" data-transition="pop">Purchase album</a> </li>
<li><a href="tt_music.html" data-ajax="false">
<div class="countDefault">06</div>
<div class="singInfo">
<h2>囚鸟</h2>
<p><span class="singer">张宇</span><span class="favorCount">2918</span></p>
</div>
</a> <a href="#purchase" data-rel="popup" data-position-to="window" data-transition="pop">Purchase album</a> </li>
<li><a href="tt_music.html" data-ajax="false">
<div class="countDefault">06</div>
<div class="singInfo">
<h2>囚鸟</h2>
<p><span class="singer">张宇</span><span class="favorCount">2918</span></p>
</div>
</a> <a href="#purchase" data-rel="popup" data-position-to="window" data-transition="pop">Purchase album</a> </li>
<li><a href="tt_music.html" data-ajax="false">
<div class="countDefault">06</div>
<div class="singInfo">
<h2>囚鸟</h2>
<p><span class="singer">张宇</span><span class="favorCount">2918</span></p>
</div>
</a> <a href="#purchase" data-rel="popup" data-position-to="window" data-transition="pop">Purchase album</a> </li>
<li><a href="tt_music.html" data-ajax="false">
<div class="countDefault">06</div>
<div class="singInfo">
<h2>囚鸟</h2>
<p><span class="singer">张宇</span><span class="favorCount">2918</span></p>
</div>
</a> <a href="#purchase" data-rel="popup" data-position-to="window" data-transition="pop">Purchase album</a> </li>
<li><a href="tt_music.html" data-ajax="false">
<div class="countDefault">06</div>
<div class="singInfo">
<h2>囚鸟</h2>
<p><span class="singer">张宇</span><span class="favorCount">2918</span></p>
</div>
</a> <a href="#purchase" data-rel="popup" data-position-to="window" data-transition="pop">Purchase album</a> </li>
<li><a href="tt_music.html" data-ajax="false">
<div class="countDefault">06</div>
<div class="singInfo">
评论0