- se-1
- se-2
- se-3
- se-4
- se-5
content-1
content-2
content-3
content-4
content-5
不传参数,执行默认参数,点击切换
new tabpanel("#tabpanel1");
- se-1
- se-2
- se-3
- se-4
- se-5
content-1
content-2
content-3
content-4
content-5
event:"mouseover" 执行默认参数,鼠标经过切换
new tabpanel("#tabpanel2",{ event:"mouseover" });
- se-1
- se-2
- se-3
- se-4
- se-5
content-1
content-2
content-3
content-4
content-5
autom: true 执行默认参数,开启自动切换
new tabpanel("#tabpanel3",{ autom: true });
- se-1
- se-2
- se-3
- se-4
- se-5
content-1
content-2
content-3
content-4
content-5
time:500 执行默认参数,设置自动切换时间
new tabpanel("#tabpanel4",{ event:"mouseover", autom: true, time:500 });
调用方法:
new tabpanel(selector,{options});
options参数
参数 | 默认值 | 说明 |
---|---|---|
event | "click" | 可设置鼠标经过"mouseover" |
autom | false | 是否启动自动切换 |
time | 2000 | 设置自动切换间隔时间 |