var siteSetup = {sitePath: 'http://news.jnu.edu.cn/',ajaxPath: 'http://radio.jnu.edu.cn/ajax.aspx',skinPath: 'http://news.jnu.edu.cn/Template/Default/Skin/'};
正在播放:
------
function listPage_Jumpto通用信息列表_音频列表(e,ele){ e=e||event; if(13==e.keyCode){ var i=Number(ele.value); if(i<1||i>6){alert("你输入的页码超出范围。");} switch(i){ case 1: break; case 2: location='http://radio.jnu.edu.cn/wlgb/2014/12/04/17120534524_2.html';break; case 3: location='http://radio.jnu.edu.cn/wlgb/2014/12/04/17120534524_3.html';break; case 4: location='http://radio.jnu.edu.cn/wlgb/2014/12/04/17120534524_4.html';break; case 5: location='http://radio.jnu.edu.cn/wlgb/2014/12/04/17120534524_5.html';break; case 6: location='http://radio.jnu.edu.cn/wlgb/2014/12/04/17120534524_6.html';break; default: break; } } }
首页 1 2 3 4 5 6 尾页 共167个音频/共6页
$("#playList li:even").filter(function(index){return index<4;}).addClass("bg"); $("#playList li").filter(function(index){return index>7&&(index-8)%4==0;}).addClass("bg"); $("#playList li").filter(function(index){return index>7&&(index-9)%4==0;}).addClass("bg");
$("#playerHolder").jPlayer({ cssSelectorAncestor: '#player', cssSelector: { play: '.play', pause: '.pause', stop: '.stop', mute: '.volume_on', unmute: '.volume_off', volumeBar: '.volume .bar', volumeBarValue: '.volume .bar span' }, swfPath: "http://news.jnu.edu.cn/Template/Default/Skin/Radio/js/", supplied: "mp3", wmode: "window", smoothPlayBar: true, keyEnabled: true }); function getMusic(id) { var list = []; $.pe.ajax('accessLabel',{ labelName:'获取音频播放地址', params: {"itemId": id}, success:function(res) { var res = $(res); if (res.find("status").text() == "ok") { data = $.trim(res.find("body").text()); if (data == "") { $("#player .titlebar .title").html(list[0].name+"(找不到可播放的音频文件!)"); $("#playerHolder").jPlayer("stop"); } else { list = eval("("+data+")"); if (list[0].url == "") { $("#player .titlebar .title").html(list[0].name+"(找不到可播放的音频文件!)"); $("#playerHolder").jPlayer("stop"); } else { $("#playerHolder").jPlayer("setMedia", { mp3: list[0].url }).jPlayer("stop").jPlayer("play"); $("#player .titlebar .title").html(list[0].name); } } } } }); } $("#playList li").click(function(){ getMusic($(this).attr("data-id")); $(this).addClass("on").siblings().removeClass("on"); }).filter("[data-id=34524]").click(); $("#player .prev").click(function(){ if ($("#playList li.on").prev().length) { $("#playList li.on").prev().click(); } else { $("#playList li:last").click(); } }); $("#player .next").click(function(){ if ($("#playList li.on").next().length) { $("#playList li.on").next().click(); } else { $("#playList li:first").click(); } });