您现在的位置是:jQuery粉闲和庄怎么玩色个性侧边悬浮音乐播放器插件 >>正文
jQuery粉闲和庄怎么玩色个性侧边悬浮音乐播放器插件
通家之好网364人已围观
简介下一曲$("#playlist-next").click(function() {myPlaylist.next();});$("#playlist-previous").click(function...
网站侧边mp3音乐播放器插件代码,阻止默认事件 if (event.preventDefault) { event.preventDefault(); } } ; //滚轮 要执行的 function move(){ var iH=$bar.position().top; iH=iH+iSpeed; iH <= 0 && (iH = 0); iH >= $maxH && (iH = $maxH); $bar.css({top:iH+"px"}); iScale = - iH/$maxH; $ul.css({top:iScale*($ul.height()-$(".jp-playlist-box").height())+"px"}); return false; }; //播放器列表滚动条js 结束------------------------------------------------ //音乐播放器 收缩、延闲和庄怎么玩迟2秒,或运动回去 $("#btnfold").mouseover(function(){ if(fold){ $(".jp-video").animate({left:"-480px"},350,function(){ slideIn($(this)); }); }else{ $(".jp-video").animate({left:0},350,function(){ slideOut($(this)); }); } }); //封装按钮背景切换1 function slideOut(obj){ $("#btnfold").attr({"title":"点击收缩"}); obj.find("span").css({"transform":"rotate(180deg)"}); obj.find("span").css({"MozTransform":"rotate(180deg) translateX(2px)"}); obj.find("span").css({"WebkitTransform":"rotate(180deg)"}); fold=true; }; //封装按钮背景切换2 function slideIn(obj){ $("#btnfold").attr({"title":"点击展开"}); obj.find("span").css({"transform":"rotate(0deg)"}); obj.find("span").css({"MozTransform":"rotate(0deg) translateX(-2px)"}); obj.find("span").css({"WebkitTransform":"rotate(0deg)"}); fold=false; }; //歌曲列表展开、可自行修改代码添加自己的歌曲
---在线演示
// MP3播放器及歌曲库jsvar myPlaylist = new jPlayerPlaylist({ jPlayer: "#jquery_jplayer_N", cssSelectorAncestor: "#jp_container_N" }, [ { title: "最近", artist: "李圣杰", mp3:"http://img.bokequ.com/music/zuijin.mp3", poster: "http://www.bokequ.com/show/yinyue/9/images/zuijin.jpg"}, { title: "当你孤单你会想起谁", artist: "张栋梁", mp3:"http://www.bokequ.com/show/yinyue/10/audio/gundan.mp3", poster: "http://www.bokequ.com/show/yinyue/10/img/gundan.jpg"}, { title: "黄昏", artist: "周传雄", mp3:"http://www.bokequ.com/show/yinyue/10/audio/huanghun.mp3", poster: "http://www.bokequ.com/show/yinyue/10/img/huanghun.jpg"}, { title: "十指紧扣", artist: "张智霖", mp3: "http://www.bokequ.com/show/yinyue/10/audio/shizhijikou.mp3", poster:"http://www.bokequ.com/show/yinyue/10/img/shizhi.jpg"}, { title: "笔记", artist: "周笔畅", mp3: "http://www.bokequ.com/blog/2/images/biji.mp3", poster:"http://www.bokequ.com/blog/2/images/07.jpg"} ], {playlistOptions:{enableRemoveControls: true}, swfPath: "js/", supplied: "webmv, ogv, m4v, oga, mp3", useStateClassSkin: true, autoBlur: false, smoothPlayBar: true, keyEnabled: true, audioFullScreen: true }); //添加播放歌曲 $("#latest li").find("a.playIcon").click(function() { var k=$(this).parent("li").index(); myPlaylist.add({ title:latest[k].title, artist:latest[k].artist, //free:true, mp3:latest[k].mp3, //oga:"", poster:latest[k].poster }); myPlaylist.play(-1); }); $("#popular li").find("a.playIcon").click(function() { var k=$(this).parent("li").index(); myPlaylist.add({ title:popular[k].title, artist:popular[k].artist, //free:true, mp3:popular[k].mp3, //oga:"", poster:popular[k].poster }); myPlaylist.play(-1); }); $("#rank li").find("a.playIcon").click(function() { var k=$(this).parent("li").index(); myPlaylist.add({ title:rank[k].title, artist:rank[k].artist, //free:true, mp3:rank[k].mp3, //oga:"", poster:rank[k].poster }); myPlaylist.play(-1); }); $("#main li").find("a.playIcon").click(function () { var k = $(this).parent("li").index(); myPlaylist.add({ title: main[k].title, artist: main[k].artist, //free:true, mp3: main[k].mp3, //oga:"", poster: main[k].poster }); myPlaylist.play(-1);}); $("#spirit li").find("a.playIcon").click(function () { var k = $(this).parent("li").index(); myPlaylist.add({ title: spirit[k].title, artist: spirit[k].artist, //free:true, mp3: spirit[k].mp3, //oga:"", poster: spirit[k].poster }); myPlaylist.play(-1);});$("#magic li").find("a.playIcon").click(function () { var m = $(this).parent("li").index(); myPlaylist.add({ title: magic[m].title, artist: magic[m].artist, //free:true, mp3: magic[m].mp3, //oga:"", poster: magic[m].poster }); myPlaylist.play(-1);}); //添加歌曲结束 //移除 $("#playlist-remove").click(function() { myPlaylist.remove(); //(0 1 2 ... -2 -1) }); $("#listRemove").click(function() { myPlaylist.remove(); }); // 上一曲、
Tags:
下一篇:个人网站被恶意镜像解决方法
相关文章
WordPress二次元博客lolimeow主题v8.0下载
jQuery粉闲和庄怎么玩色个性侧边悬浮音乐播放器插件WordPress博客主题二次元风lolimeow主题v8.0下载,lolimeow是一款小清新动漫二次元风格的主题,设计风格和后台功能非常适合做二次动漫类的网站,喜欢动漫的朋友,可以做成资讯网,个人...
阅读更多
HTML5+three实现3D酷炫拼魔方游戏代码
jQuery粉闲和庄怎么玩色个性侧边悬浮音乐播放器插件HTML5+three实现3D酷炫拼魔方游戏特性代码,html5基于three.js制作3D拼魔方小游戏特效,双击开始游戏,看你来多少时间内能拼成魔方游戏。单击鼠标拖动可以3D查看魔方位面。1、htm...
阅读更多
打破国际垄断!碧水源推动医药膜国产化替代
jQuery粉闲和庄怎么玩色个性侧边悬浮音乐播放器插件打破国际垄断!碧水源推动医药膜国产化替代时间:2025-06-06 17:07来源:碧水源 评论)分享...
阅读更多