Tab for regular javascript Automatic Switch

Source: Internet
Author: User

Note that it is used to generate a random number of changeTabInterval to prevent too many TabPane on the page. If changeTabInterval is set to the same, it will produce a uniform switching effect, which is not beautiful.
<Title> automatic switch Tab </title> <style>. 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; paddin G: 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 (174,); overflow: visible;} </style> No hacker Start tutorial CHM can encrypt and decrypt the VB Screen Keyboard components what kind of project experience will make the interviewer shine in front of the Super j2_flying game crazy lightning source code can be encrypted and decrypted VB Screen Keyboard components programming learning in some mistakes do you know how to draw and edit the ACM Algorithm in Delphi multi-document ry? Hacker zero-start tutorial CHM super j2_flying game crazy lightning source code B realize the display and hiding of the main form control sub-window Delphi multi-document geometric drawing and editing program
[Ctrl + A select all Note: If you need to introduce external Js, You need to refresh it to execute]

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.