[Technology] Tab

Source: Internet
Author: User

<! Doctype HTML>
<Head>
<Meta http-equiv = "Content-Type" content = "text/html; charset = UTF-8"/>
<Title> sliding door (Tab) jquery plug-in </title>


<Style type = "text/CSS">
Body, UL, Li {margin: 0; padding: 0; Font: 12px normal "Al", Arial, Helvetica, sans-serif; List-style: none ;}
A {text-Decoration: none; color: #000; font-size: 14px ;}

# Tabbox {width: 600px; overflow: hidden; margin: 0 auto ;}
. Tab_conbox {border: 1px solid #999; border-top: none ;}
. Tab_con {display: none ;}

. Tabs {Height: 32px; border-bottom: 1px solid #999; border-left: 1px solid #999; width: 100% ;}
. Tabs Li {Height: 31px; line-Height: 31px; float: Left; Border: 1px solid #999; border-left: none; margin-bottom:-1px; Background: # e0e0e0; overflow: hidden; position: relative ;}
. Tabs Li a {display: block; padding: 0 20px; Border: 1px solid # FFF; outline: none ;}
. Tabs Li A: hover {Background: # CCC ;}
. Tabs. thistab,. Tabs. thistab A: hover {Background: # FFF; border-bottom: 1px solid # FFF ;}

. Tab_con {padding: 12px; font-size: 14px; line-Height: 175% ;}
</Style>
<SCRIPT src = "http://lib.sinaapp.com/js/jquery/1.4.2/jquery.min.js" type = "text/JavaScript"> </SCRIPT>
<SCRIPT type = "text/JavaScript">
$ (Document). Ready (function (){
Jquery. jqtab = function (tabtit, tabcon ){
$ (Tabcon). Hide ();
$ (Tabtit + "Li: First"). addclass ("thistab"). Show ();
$ (Tabcon + ": First"). Show ();

$ (Tabtit + "Li"). Click (function (){
$ (Tabtit + "Li"). removeclass ("thistab ");
$ (This). addclass ("thistab ");
$ (Tabcon). Hide ();
VaR activetab = $ (this). Find ("A"). ATTR ("tab ");
$ ("#" + Activetab). fadein ();
Return false;
});

};
/* The call method is as follows :*/
$. Jqtab ("# tabs", ". tab_con ");

});
</SCRIPT>
</Head>
<Body>
<Div id = "tabbox">

<Ul class = "tabs" id = "tabs">
<Li> <a href = "http://www.51xuediannao.com/js/nav/" tab = "tab1"> navigation menu </a> </LI>
<Li> <a href = "http://www.51xuediannao.com/js/slide/" tab = "tab2"> focus slides </a> </LI>
<Li> <a href = "http://www.51xuediannao.com/js/gg/" tab = "tab3"> ad code </a> </LI>
<Li> <a href = "http://www.51xuediannao.com/js/texiao/" tab = "tab4"> webpage effects </a> </LI>
</Ul>
<Ul class = "tab_conbox">
<Li id = "tab1" class = "tab_con">
<P> <span> <a href = "http://www.51xuediannao.com/"> lazy website construction </a> contains only practical code that can improve user experience </span> <br/>
<Span> we only want to free up part of your coding time to think about higher-level design, rather than lazy and patchwork. </Span> </P>
</LI>

<Li id = "tab2" class = "tab_con">
<P> <span> <a href = "http://www.51xuediannao.com/"> lazy website construction </a> contains only practical code that can improve user experience </span> <br/>
<Span> we only want to free up part of your coding time to think about higher-level design, rather than lazy and patchwork. </Span> </P>
</LI>

<Li id = "tab3" class = "tab_con">
<P> <span> <a href = "http://www.51xuediannao.com/"> lazy website construction </a> contains only practical code that can improve user experience </span> <br/>
<Span> we only want to free up part of your coding time to think about higher-level design, rather than lazy and patchwork. </Span> </P>
</LI>

<Li id = "tab4" class = "tab_con">
<P> <span> <a href = "http://www.51xuediannao.com/"> lazy website construction </a> contains only practical code that can improve user experience </span> <br/>
<Span> we only want to free up part of your coding time to think about higher-level design, rather than lazy and patchwork. </Span> </P>
</LI>
</Ul>

</Div>


</Body>
</Html>

[Technology] Tab

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.