这里要注意,用于产生changeTabInterval的随机数,防止页面上TabPane过多,如果设置的changeTabInterval都一样的话会产生整齐划一的切换的效果,不美观.
自动切换Tab选项卡
.tab {
font-family: Verdana, Helvetica, Arial;
font-size: 12px;
position: relative;
width: 100%;
}
.tab-border {border:1px solid;border-color: rgb(120,172,255);}
.tab-head {
background-color:rgb(234,242,255);;
border:0px;
height:23px;
line-height:20px;
position:relative;
}
.tab-head ul{
border:0px;
height:23px;
list-style:none;
margin:0px;
text-align:center;
padding:0;
position:absolute;
}
.tab-head li{
border: 1px solid;
border-color: rgb(120,172,255);
border-left: 0;
border-bottom: 0;
border-top: 0;
cursor:pointer;
color:#416AA3;
float:left;
display:block;
height:22px;!important;height:20px;
line-height:20px;
padding: 2px 6px 0px 6px;
margin-top: 2px;
margin-right: -1px;
text-overflow:ellipsis;
white-space:nowrap;
overflow:hidden;
}
.tab-head li.hover{
border: 1px solid rgb(120,172,255);
border-bottom: 0;
padding: 0px 6px 3px 6px;
margin: 0px 1px 0px 0px;
background: white;
font-size: 13px;
font-weight: bold;
color: rgb(0,66,174);
overflow:visible;
}
黑客零起点教程 CHM
可以加密及解密的VB屏幕键盘组件
什么样的项目经历会让面试官眼前一亮
超级j2me飞行游戏疯狂雷电源代码
可以加密及解密的VB屏幕键盘组件
编程学习中的一些错误认识
Delphi多文档几何图形绘制及编辑程序
学ACM算法题有用吗?
黑客零起点教程 CHM
超级j2me飞行游戏疯狂雷电源代码
B实现主窗体控制副窗口的显示与隐藏
Delphi多文档几何图形绘制及编辑程序
[Ctrl+A 全选 注:如需引入外部Js需刷新才能执行]
推荐阅读
JavaScript 事件记录使用说明
事件在JavaScript 中是响应用户的一种基本操作,是能够被 JavaScript 检测到的动作.网页的每一个元素都能产生一定的事件,用这些事件可以触发JavaScript的函数. JavaScript的事件列表 (事件属性 – 发生条件): >>>详细阅读
本文标题:javascript 定时自动切换的选项卡Tab
地址:http://www.17bianji.com/kaifa2/JS/27933.html
1/2 1