Javascript tab switch lixtabs Latest Version

Source: Internet
Author: User

Javascript tab switch class lixtabs, updated to version 0.5:

  1. Inspired by snandy's "read jquery" seriesCodeNow, you do not need to add new when calling lixtabs. You can write var tab = tabs ();
  2. Changed the original EVT parameter to an easy-to-understand event (my negligence)
  3. Total code size: 3.3kb

Example page: http://www.jo2.org/htmls/lixtabs/lixtabs.html

Yesterday, when I continued to write JS with numbness, suddenly !! I realized it! Updated version 0.4:

  1. Finally, custom triggering events are supported, such as 'mouseover' or 'click'
  2. Because of 1, an additional parameter is added: EVT. The value example is 'mouseover', 'click', 'mouselow'... but only the first two parameters are recommended.
  3. Or because 1, an addevent function is added, and you can see what the name is.
  4. JS Code size increased from 2.53kb to 2.91kb

Lixtabs is a javascript class that implements Tab switching for simple results. For how to use it, see my previousArticle.

Source code:

A little more, card

 

Where is the version 0.3... Forget him.

In addition, the style of the sample page is not carved, so it is very simple and abnormal... If you have any questions, please leave a message or contact me directly.

Link: http://www.jo2.org/archives/164.htm

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.