Javascript tab switch class lixtabs, updated to version 0.5:
- Inspired by snandy's "read jquery" seriesCodeNow, you do not need to add new when calling lixtabs. You can write var tab = tabs ();
- Changed the original EVT parameter to an easy-to-understand event (my negligence)
- 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:
- Finally, custom triggering events are supported, such as 'mouseover' or 'click'
- Because of 1, an additional parameter is added: EVT. The value example is 'mouseover', 'click', 'mouselow'... but only the first two parameters are recommended.
- Or because 1, an addevent function is added, and you can see what the name is.
- 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