jquery tab tab

Source: Internet
Author: User

Learning jquery soon, the whole tab effect.

<!DOCTYPE HTML><HTML>    <Head>        <MetaCharSet= "UTF-8">        <title>tab</title>        <Linkrel= "stylesheet"href= "Css/reset.css"Media= "All">        <Linkrel= "stylesheet"href= "Css/style.css"Media= "All">    </Head>    <Body>                <Divclass= "Info">            <ulclass= "Info_tit clearfix tab_hd">                <binclass= "FL"><ahref= "javascript:;"class= "Block fl"Hidefocus= "None">Career attributes</a></Li>                <binclass= "FL"><ahref= "javascript:;"class= "Block fl"Hidefocus= "None">Professional characteristics</a></Li>                            </ul>            <Divclass= "info_cnt tab_bd">                <Divclass= "box Hide">111111</Div>                <Divclass= "box Hide">222222</Div>            </Div>            </Div>    </Body></HTML><Scripttype= "Text/javascript"src= "Js/jquery.min.js"></Script><Scripttype= "Text/javascript">$(function(){    //Tab Toggle    $(function(){        functiontabs (Tabtit,on,tabcon) {$ (tabtit). Find ('a'). each (function(i) {$ (tabtit). Find ('a'). EQ (0). addclass (on); $( This). Click (function(){//mouse Click effect can be changed hover mouse slide effect                    $( This). addclass (ON). Parents ('Li'). Siblings (). Find ('a'). Removeclass (on);//mouse click, give current A to add cur class, sibling element Delete cur class$ (Tabcon). Children (). EQ (i). Show (). siblings (). Hide (); })}) $ (Tabcon). Children (). EQ (0). Show (); } tabs ('. TAB_HD','cur','. TAB_BD'); })})    </Script>

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.