您现在的位置是:jQuery粉巅峰国际体彩平台appapp官网下载色个性侧边悬浮音乐播放器插件 >>正文
jQuery粉巅峰国际体彩平台appapp官网下载色个性侧边悬浮音乐播放器插件
爱民如子网35874人已围观
简介延迟2秒,或运动回去$("#btnfold").mouseover(function(){if(fold){$(".jp-video").animate({left:"-480px"},350,fun...
网站侧边mp3音乐播放器插件代码,监听事件 $(".jp-playlist-box").mouseover(function(){ //鼠标滚轮 addHandler(this, "mousewheel", mouseWheel);//IE addHandler(this, "DOMMouseScroll", mouseWheel);//标准 return false; }); //绑定事件重写兼容 function addHandler(element, type, handler){ return element.addEventListener ? element.addEventListener(type, handler, false) : element.attachEvent("on" + type, handler, false) } //鼠标滚轮事件 function mouseWheel(event){ var event = event || window.event; if(event.wheelDelta) {//IE iSpeed = event.wheelDelta > 0 ? -3 : 3;}else if(event.detail) {//火孤 iSpeed = event.detail < 0 ? -3 : 3;} move(); //FF,绑定事件,展开--------------巅峰国际app官网下载体彩平台app-------------------------------- var fold=true;//标识 //页面加载时,运动回去 $(".jp-video").animate({left:0},"slow",function(){ slideOut($(this)); }).delay(2000).animate({left:"-480px"},350,function(){ slideIn($(this)); }); //点击按钮运动出来,可自行修改代码添加自己的歌曲
---在线演示
// 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:
上一篇:个人博客网站选择主机服务器技巧
相关文章
站长工具SEO综合查询那点事
jQuery粉巅峰国际体彩平台appapp官网下载色个性侧边悬浮音乐播放器插件大多数SEO使用站长工具查询数据比较多,如每天对网站排名、收录、友情链接检查等查询登记。但是站长工具查询有的是不准确的,只能参考一下,不必当真。如下用站长工具查询了一下自己的网站,百度权重1、关键词库...
阅读更多
酷炫html5 canvas全屏背景动画代码
jQuery粉巅峰国际体彩平台appapp官网下载色个性侧边悬浮音乐播放器插件酷炫html5 canvas全屏背景动画特效演示,7种酷炫的全屏背景动画,html5背景动画。酷炫背景动画特效代码素材<!DOCTYPE html><html ><hea...
阅读更多
wordpress隐藏文章部分内容需要注册登录后可见
jQuery粉巅峰国际体彩平台appapp官网下载色个性侧边悬浮音乐播放器插件访问一些论坛网站在查看文章内容时会发现很多文章帖子尾部都有部分内容游客无法查看,需要注册登录或会员才能查看。wordpress如何实现代码实现这个功能呢?这种功能主要是内容对用户有需求,适合VIP会员...
阅读更多