懂视1
懂视101
懂视201
懂视301
懂视401
懂视501
懂视601
懂视701
懂视801
懂视901
懂视1001
懂视1101
懂视1201
懂视1301
懂视1401
懂视1501
懂视1601
懂视1701
懂视1801
懂视1901
文库1
文库101
文库201
文库301
文库401
文库501
文库601
文库701
文库801
文库901
文库1001
文库1101
文库1201
文库1301
文库1401
文库1501
文库1601
文库1701
文库1801
文库1901
优纳美食网
全部频道
首页
科技
教育
生活
旅游
时尚
美容
美食
健康
体育
游戏
汽车
家电
您的当前位置:
首页
可以自动轮换的页签tabswithautoplayfucntion_javascript技巧
可以自动轮换的页签tabswithautoplayfucntion_javascript技巧
来源:优纳美食网
tabs with auto play function
script> tab_01 tab_02 tab_03 link1 link2 link3
[Ctrl+A 全选 注:如需引入外部Js需刷新才能执行]
a1 a2 a3
/*参数说明: t:导航容器的ID to:导航的单位元素标签 c:内容的容器ID co:内容的单位元素标签 s:初始化时的当前项 a:内容的单位元素标签ID中的数字序号的位置(对应的a为2) */ function timertab(t,to,c,co,s,a){ this.obj = document.getElementById(t).getElementsByTagName(to);//导航对象 this.eles = document.getElementById(c).getElementsByTagName(co);//内容项 this.start = s-1;//初始项目 this.speed = 2000;//切换间隔 this.setid = null;//定时器 var loop = function(){ //自动切换 for(var i=0,j=obj.length;i
a1 a2 a3 作品4249 作品4240 作品4245 script>
[Ctrl+A 全选 注:如需引入外部Js需刷新才能执行]
显示全文