tab switch in the current Web page, it is very common. But the tab-switched JavaScript implementation has a lot to pay attention to, how to use the least code, the most flexible implementation. This collection of 37 tab-implemented JavaScript code is here to spare.
Non-original source network: Original address: http://paranimage.com/37/
1 Easy Tabs 1.2 with autoc
Ext. tab. Panel tab of ExtJs4 notes
This topic describes the tab controls.1. Basic Tab
First, we define a basic Tab control. Each Tab has its own differences. The main content of the Tab
Ext. tab. Panel tab of ExtJs4 notes, and extjs4 learning notes
This topic describes the tab controls.1. Basic Tab
First, we define a basic Tab control. Each Tab has its own differences. The main content of the
Although it is convenient and easy to use, I personally think its UI performance is not too brilliant. Today I accidentally saw jquery tools-a jquery-based UI presentation framework, its UI function is similar to (or imitated) flex. This framework provides tabs (Tab/TAB) overlay (overlay), tooltip (prompt box), scrollable (scroll Information bar), expose (highlighted), and flahembed (video playback embedded
After using jquery for so long, I feel that although the ExtJS and other frameworks are not comprehensive and powerful, they have indeed achieved "thewriteless, domore" and are easy to learn, you just need to take a closer look at the APIReference on its official website. The basic problem is not that great. Although it is convenient and easy to use, I personally think its UI performance is not too brilliant. Today I accidentally saw jquery tools-a jquery-based UI presentation framework, its UI
Through the previous article from the Simple tab tab to the tab image switch instructions, the relevant effect can be achieved.
1. The Left and Right Buttons tab tab double switch
Obviously, the left and right two buttons are absolute layouts, the other is the Content Sec
Depend on
Panel
LinkButton
Usage examples
Create tabs1. Create tabs via tagCreating tabs from tags is easier, and we don't need to write any JavaScript code. Remember to add the ' Easyui-tabs ' class to the
The code is as follows
Copy Code
tab1 tab2 tab3
. Programming to create TabsNow we're programmed to create Tabs, and we capture the ' onselect ' event at the same time
characteristic
The daily required Tab plug-in of Bootstrap. You can use this plug-in to place the content on a Tab, capsule Tab, or even a drop-down menu Tab, if you are interested, you can refer to tabs. By combining some data attributes, you can easily create a Tab page.
"If you want to
Reprint Please specify source: http://blog.csdn.net/yangyu20121224/article/details/9050573In the previous article, we just had a general understanding of the simple usage of the Actionbar class, and today I will continue to take a more in-depth look at the examples.First, Implement TAB Options tabWhen you want to provide tab tabs in an activity, using the Tab
First, let's take a look at what is Word's tab stop and how it works!
I. The concept and function of the tab position
A tab stop is a position on a horizontal ruler that specifies the distance from which text is indented or where a column of text begins, allowing the user to align lines to the left, right, or center, or to snap text to a decimal or vertical bar
In order to create a tabbed UI, you need to use a tabhost and a tabwidget,tabhost must be the root node of the layout file, which contains the Tabwidget to display the tabs and a framelayout for displaying the contents of the options
You can implement your tab content in one or two ways: Switch between views with tabs in an activity, or use tabs to change all of the detached activity. You use the methods you want in the program according to your need
There is a scenario where you do not need to trigger an immediate switch when you are doing a mouse sliding tab, because you want to prevent the user from inadvertently moving across, or too often across the tab,In particular, when switching to a tab with an asynchronous request, you should prevent too frequent switching or unconscious switching to avoid wasting
tab
The basic use of tabs is:
Tabs use separate labels and specific content, which can be put together but must exist at the same time.
The Key property of tab label is Data-target= "Ele", data-toggle= "tab", data-target= "Ele" indicates the specific content of the label, data-toggle= "tab" provides HTM
This article to share is the Personal Package tab special effects Plug-ins, very simple and practical, attached to the use and examples, the need for small partners can refer to.
In the development of the Web site will often use the TAB function, in order to save the time to write code, encapsulating the tab plug-in, easy to invoke.
Create a
) = = "Number"){if (This.defaulttab This.defaulttab = 0;Else{var count = This.gettabbedpanelcount ();if (This.defaulttab >= count)This.defaulttab = (Count > 1)? (count-1): 0;}
This.defaulttab = This.gettabs () [This.defaulttab];}
The DefaultTab property are supposed to being the tab element for the tab contentTo show by default. The caller is allowed into the element itself or theElement ' s ID, so we nee
tab with a simple Application interface label is a different label for the interface component on the same page of the centralized interface layout file. and plan the code files that will be in the main class set. The advantage of this approach is that the number of files in the project is not added, but the tab interface component is assumed to be more personalized. Complex, concentrating them on the same
In the development of the Web site will often use the TAB function, in order to save the time to write code, encapsulating the tab plug-in, easy to invoke.
Create a TAB component
How to use: HTML structure
JS Call
$ (' #tab '). tabs ();
Related parameter Description:
Initialization par
Recently, I had a requirement to place IFRAME In the tab, so I made a jquery tab plug-in.
You are welcome to raise bugs or suggestions. I will try my best to improve them when I have time.
Author: think8848 (company homepage: http://www.cleversoft.com, QQ: 166156888, blog: http://think8848.cnblogs.com) reprinted please keep this information
Clevertabs is a jquery plug-in. The jquery version 1.6.1 a
1. Basic way: By defining the way of HTML and items.
2. Read other HTML information: By setting Contentel you can get additional HTML information for the current tab body.
3. Read service-side data: To obtain server-side data by defining autoload asynchronous methods.
In addition, each tab can be set whether it can be closed, when the tab entry event, and the
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.