3 Star 3 Fork 3

ksc / jquery_slide

Create your Gitee Account
Explore and code with more than 8 million developers,Free private repositories !:)
Sign up
This repository doesn't specify license. Please pay attention to the specific project description and its upstream code dependency when using it.
Clone or Download
contribute
Sync branch
Cancel
Notice: Creating folder will generate an empty file .keep, because not support in Git
Loading...
README.md

#jquery 幻灯片以及tabs切换插件

两年前写的一个插件,最近又修改了几次,基本的需求都能满足了

##使用方法 一共需要3个参数,前两个是必填的,

这两个分别是控制端和内容端的选择器

var setting={
    time:3,//切换时间间隔
    on:'on',//控制层 css类名
    auto:1,//是否自动切换
    mode:'normal',//切换模式 normal:普通;fade:淡入淡出;slide:滑动;
    switchMode:'mouseover',//鼠标切换方式,mouseover鼠标经过时切换,click单击切换
    Cmouseover:'none'//当鼠标经过内容区{s2}时,none:无动作,wait:等待,暂停自动切换
     
		 
}
var slobj=$.st(selecter1,selecter2,setting);
//slobj 可以对slide进行控制 比如:
slobj.slide_to(2)//切换到指定位置
slobj.stop//停止自动切换
slobj.start()//开始自动切换

代码很短,主要是不涉及样式和基本结构

好处是灵活,样式可以自由定义,用li 还是div都行只要选择器写对就行 ;

缺点是繁琐,样式必须自己定义;

具体使用可参考demo

About

一个轻量级的jquery幻灯片以及tabs切换插件 expand collapse
JavaScript
Cancel

Releases

No release

Contributors

All

Activities

Load More
can not load any more
JavaScript
1
https://gitee.com/ksc/jquery_slide.git
git@gitee.com:ksc/jquery_slide.git
ksc
jquery_slide
jquery_slide
master

Search

E71a60c3 8189591 Df7b7c6b 8189591