微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

jQueryMarquee marquee 无缝滚动插件

程序名称:jQueryMarquee

授权协议: GPL

操作系统: 跨平台

开发语言: JavaScript

jQueryMarquee 介绍

jQueryMarquee 是一个基于 jquery 实现的 marquee 无缝滚动插件

一共有三个可选参数,一个回调方法

$(dom).marquee(options, callback);

options 可选参数:

options : {
    direction : 'top',
    pixels : 5,
    speed : 30,
}
direction

移动方向:
左:left
右:right
上:top
下:bottom;
pixels

每次移动的像素数

speed

两次移动之前的间隔时间数(毫秒)
调用方法如下:

$("scroll-a").marquee();

$("scroll-b").marquee({direction:'top'});

$("scroll-c").marquee({direction:'right',pixels:2,speed:30});

$("scroll-d").marquee({direction:"bottom",pixels:2,speed:30}, function(){
    console.log("执行了一次");
});

jQueryMarquee 官网

http://git.oschina.net/mqycn/jQueryMarquee

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。

相关推荐