"]} } });

我的
汇聚风云人物,安徽美业时尚艺术节闪耀徽派时尚
播放:113921
00:00 2:28
标题:汇聚风云人物,安徽美业时尚艺术节闪耀徽派时尚


相关图文报道:

新闻标题:汇聚风云人物,安徽美业时尚艺术节闪耀徽派时尚

原文查看:http://www.hair8.net/news/2016/10031612.html




相关新闻: >>more
哈发网-美业资讯权威传播平台
美业FM
人物志
沙龙设计
我的
', 'title' : '汇聚风云人物,安徽美业时尚艺术节闪耀徽派时尚', 'artist' : '' }); S.ready(function(){ //AdImg(); //cacheajax('4996'); //HfPlayer.play(); }); function cacheajax(ids) { //console.log('ks'); IO.getJSON("/common/ajaxcachehit.html?ids=" + ids,function(data){ if(data!=null){ var dataLength=data.length; for(i=0;i0) { counter_n.css( 'left' , wrapperLefts+ 'px' ); counterCurrentLeft2 = wrapperLefts; } else{ counter_n.css({left: "0px" }); } $("#currentTime").html(getMinutesSecondsTime(audioCurrentTime2)) $("#curTime").html(getMinutesSecondsTime(audioLength2)); if(audioCurrentTime2 == audioLength2 || audioCurrentTime2 >= audioLength2-2) { window.location.href = new_url; } }); //播放器停止事件 HfPlayer.on("ended", function(e) { PlayState2=0; counterCurrentLeft2 =0; $(".slider2 .counter").css({left: "0px" }); $("#bar_newsInfo").css({width: "0px" }); AudioPauseState(); }); $(".counter").on("touchstart", function (e) { if (e.targetTouches.length == 1) {   e.preventDefault(); // 阻止浏览器默认事件,重要 if(PlayState2>0){ //未播放时,禁止拖动 var pos = getMousePosition(e); //记录触点初始位置 startX = pos.x; counterStartLeft=counter_n.css("left").replace("px",""); moveCount=0; HfPlayer.pause(); } } },false); $(".counter").on("touchmove", function (e) { if (e.targetTouches.length == 1) {   e.preventDefault(); // 阻止浏览器默认事件,重要 if(PlayState2>0){ //未播放时,禁止拖动 var pos = getMousePosition(e); var _x = pos.x - startX; //移动的X距离 moveCount+=_x; var left = parseInt(counterStartLeft) + parseInt(moveCount); if (left < 0) { left = 0; } if (left > wrapperLeft-20) { left = wrapperLeft-20; } counterCurrentLeft2=left; counter_n.css({left: left + "px" }); $("#bar_newsInfo").css({width: left+20 + "px" }); startX = pos.x; } } },false); $(".counter").on("touchend", function (e) { //未播放时,禁止拖动 var val=parseInt((counterCurrentLeft2+20)*1000*audioLength2/wrapperLeft); audioCurrentTime2 = val/1000; HfPlayer.setPosition(val); AudioPlayState(); },false); //按钮点击事件 $("#btnSwitch_n").on("click", function (e) { if(PlayState2!=1) { HfPlayer.play(); AudioPlayState(); } else { HfPlayer.pause(); AudioPauseState(); } }); //前进 $("#btnFore_n").on("click", function (e) { if(PlayState2>0){ audioCurrentTime2 += 5; if(audioCurrentTime2 > audioLength2){ audioCurrentTime2 = audioLength2; } HfPlayer.setPosition(audioCurrentTime2*1000); } else{ HfPlayer.play(); } AudioPlayState(); }); //后退 $("#btnBack_n").on("click", function (e) { if(PlayState2>0){ audioCurrentTime2 = audioCurrentTime2 - 5; if(audioCurrentTime2 < 0 ){ audioCurrentTime2 = 0; } HfPlayer.setPosition(audioCurrentTime2*1000); } else{ HfPlayer.play(); } AudioPlayState(); }); //全部阅读 $(window).on("scroll", function(){ if(isReadContent){ var windowHeight=domWindow.height()*0.70; $(".ks-foot").css({top:windowHeight+ domWindow.scrollTop()+'px'}); } }); /* $("#btnReadFull_n").on("click", function (e) { //$("#NewsContent .ks-content").css({height:(S.DOM.viewportHeight())+'px'}); $("#warp_main").hide(); $("#NewsContent").show(); $("#top_menu1").hide(); $("#top_menu2").show(); isReadContent=true; var windowHeight=domWindow.height()*0.70; $(".ks-foot").css({top:windowHeight+ domWindow.scrollTop()+'px'}); }); */ $(".gbbutton,#top_menu2").on("click", function () { $("#warp_main").show(); $("#NewsContent").hide(); $("#UserContent_n").hide(); $("#top_menu2").hide(); $("#top_menu1").show(); isReadContent=false; }); //联系我们 $("#btnContent_n").on("click", function (e) { $("#UserContent_n .ks-content").css({height:(S.DOM.viewportHeight())+'px'}) $("#warp_main").hide(); $("#UserContent_n").show(); $("#top_menu1").hide(); $("#top_menu2").show(); }); $("#btnUserClose_n").on("click", function () { $("#warp_main").show(); $("#UserContent_n").hide(); }); //音频开始播放,页面相关DOM状态控制 AudioPlayState = function(){ PlayState2=1; $("#btnSwitch_n").removeClass("btnplay"); $("#btnSwitch_n").addClass("btnpause"); } //音频暂停播放,页面相关DOM状态控制 AudioPauseState = function(){ PlayState2=2; $("#btnSwitch_n").removeClass("btnpause"); $("#btnSwitch_n").addClass("btnplay"); } //"收藏" /* $("#btnFavorites_n").on("click",function(e){ if(!IsFavorites) { IO.get("/common/collection.html",{id:4996},function(data){ if(data!=null){ if(data[0]=='0') { ShowErr(0,data[1]); IsFavorites=true; } else { ShowErr(3,data[1]); } } },"json"); } else { ShowErr(2,'该新闻广播已加入收藏!'); } });*/ Fun_Visit(3,4996); }); // 获得目前鼠标的位置 var getMousePosition = function(e) { var posx = 0; var posy = 0; var e = e.targetTouches[0]; if (e.pageX || e.pageY) { posx = e.pageX; posy = e.pageY; } return {'x': posx, 'y': posy}; } //秒转变成时分秒 var getMinutesSecondsTime = function(s) { s=parseInt(s); var hours = Math.floor(s/(60*60)); var minutes = Math.floor(s/60)-Math.floor(s/3600)*60; var second = Math.floor(s)-Math.floor(s/60)*60; if(minutes<10) { minutes="0"+minutes.toString(); } if(second<10) { second="0"+second.toString(); } if(hours>0){ return hours + ":" + minutes + ":" + second; } else if(minutes>0){ return minutes + ":" + second; } else{ return "00:" + second; } }