JQuery tab Switch Plug-in tabulous.js usage example

Source: Internet
Author: User


about Tabulous.js

Tabulous.js is a tab-tab switching feature of the JQuery plugin, lightweight plug-ins, simple and easy to use. The tab tag that it generates can be used to customize styles from CSS, and it also offers a variety of switching effects.

How to use Tabulous.js

First, add the JQuery framework and the Tabulous.js plugin to the page

The code is as follows Copy Code
<link href= ' tabulous.css ' rel= ' stylesheet ' type= ' text/css ' >
<script src= "Jquery.min.js" ></script>
<script src= "Tabulous.js" ></script>

Then add the tab tag to the HTML structure, such as

The code is as follows Copy Code

<div id= "Tabs" >
<ul>
<li><a href= "#tabs-1" title= "" >tab 1</a></li>
<li><a href= "#tabs-2" title= "" >tab 2</a></li>
</ul>
<div id= "Tabs_container" >
<div id= "Tabs-1" >
<!--content content-->
</div>
<div id= "Tabs-2" >
<!--content content-->
</div>
</div>
</div>

Finally initialize it to

  code is as follows copy code

$ (' #tabs '). Tabulous ({
Effect: ' Scale '
});

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.