It is necessary to make a simple tabs plug-in. Before designing the plug-in, sort out the ideas and implement the main functions such as tabs, automatic rotation, and ajax, and then arrange the dom, the traditional tabs is one of the most widely used Web pages. There are also many jquery plug-ins and non-jquery plug-ins. Some friends asked me how to use jquery. u
Let's talk about jquery ui tabs, jquerytabs
Click here to download jquery ui, or go to the official website to view the help documentation.
1 attribute
1.11 ajaxOptions: add an ajax option when the tab loads content. The added ajax option takes effect only when ajax is used. The default value is null. In the preceding example, the beforeSend and success options are added. For more information about ajax options, see jquery ajax...
1.12 initialization
Although convenient and easy to use, but personally feel its performance in the UI is not too brilliant, today inadvertently see jquery tools--a jquery based UI performance framework, its UI features display style similar (or imitate) flex. The Framework provides tabs (tab/page sign) overlay (overlay), ToolTip (Prompt box), scrollable (scrolling infobar), expose (highlighting), flahembed (video playback embedded) Six major categories of functions (its
Use $.fn.tabs.defaults to override the default value object.tab displays a batch of panels. But only one panel will be displayed at a time. Each tab panel has a header title and some small button tool menus, including a close button and other custom buttons.Use case:Create a panelTwo ways to create tabs with tags and JavaScript.1. Create Tabs from tagsThe tabs ma
1.2. Import JS and CSSDefault.css is a tabs effect drawing/*jquery-ui-bootstrap Tabs*/.tabs ul {/* border-bottom:3px solid #39aef5!important;*/}.tabs ul li:not (: first-child) { Padding-right:15px!important; }.tabs ul li{border-top:1px solid #ccc!important;border-left:1px so
A website information structure needs to be displayed to the user so that the user can know where the current is and will be able to guess where the content might be.
How to express the information structure of the website to the user?
Use navigation.
Tabs Good navigation!
Tabs navigation is a form of expression, can be very intuitive to show the current column and other columns with the same level.
I have said that I dislike jquery UI's unified API, so I wantGet the instance of the component after invoke like this:
$(function() { var tabs = $("div.tabs").tabs(); // Note: Now tabs is the instance of the component window.setTimeout(function() { tabs.clickTab(2); }, 2000); });
To achieve this, I modified the plugi
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
Control this thing on the Internet to find a number of some of the features are not satisfactory, only to write their own hands.
Tabs Plug-ins Many people need to use, the Internet also has a lot of examples, but is not the style is not used to adjust (oneself write is not necessarily better than others, but with a convenient in love)
The following directly paste code, do not like to spray:
(function ($) {' Use strict '; var defaults = {type: "
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
. Pro
Left tree, right tabs. Click on the tree to add the corresponding tabs
function addtabs (node) {
var start = ";
var end = ";
if (' #tt '). Tabs (' exists ', node.text))
{(' #tt '). Tabs (' select ', Node.text);
(' #tt '). Tabs (' select ', Node.text);
}
I believe many people have used jquery easyui, which is very easy to use and has a beautiful interface. You don't need to spend too much time on the interface, and the example program is also quite complete, the easyui is easy to use. You can also search for jquery easyui In the open-source Chinese community to download it, or go to the official website to download and view the help documentation.
I recently used tabs in jquery easyui, but I foun
Why DIY jquery tabI have been in contact with jquery for 2 or 3 months, and I have never touched the plug-in. Just recently, I was relatively idle, so I planned to rebuild the existing tabs in projects that were not pleasing to the eye (the existing tabs were not made into a control, and there were too many copy and past code ).I think there is no tabs plug-in fo
Original address: http://www.cnblogs.com/pilixiami/p/5635137.htmlThe tabs control uses the Uib-tabset directive and the Uib-tab directive, and the effect is this:DOCTYPE HTML>HTMLNg-app= "Ui.bootstrap.demo"xmlns= "http://www.w3.org/1999/xhtml">Head> Metahttp-equiv= "Content-type"content= "text/html; charset=utf-8" /> Linkhref= "/content/bootstrap.css"rel= "stylesheet" /> title>title> Scriptsrc= "/scripts/angular.js">Script> Scriptsrc= "
1, play open new Mark sign page start Vim with "vim-pfilenamenbsp ...": Tabe[dit] :tabnew opens a new tab with an empty window after the current tab page. :tabe[dit][++opt][+cmd]:tabnew[++opt][+cmd] Open a new tab and edit nbsp, and the rest is similar to |:edit|. :tabf[ind][++opt][+cmd] Open a new tab and edit ' path ' The rest and |:find| are similar. :tab executes if it opens a new window, use the new tab instead. cannot be used for |: Diffsplit|, |:d iffpatch|, |:execute| a
From: http://www.cnblogs.com/ywqu/archive/2009/09/02/1558423.html
About jquery tab plug-in, the more popular is jquery UI tabs, recently this plug-in has been updated, address for http://stilbuero.de/jquery/tabs_3/Currently, many websites in China are using this plug-in. I hope you will have time to try it out.
Today, we suddenly found a more lightweight and functional jquery tab plug-in. First, let's look at its functions;
1. A simple configuration
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.