<! Doctype html public "-// w3c // dtd xhtml 1.0 transitional // en" "http://www.w3.org/tr/xhtml1/dtd/xhtml1-transitional.dtd">
<Html xmlns = "http://www.w3.org/1999/xhtml">
<Head>
<Meta http-equiv = "content-type" content = "text/html; charset = gb2312"/>
<Title> classic tab </title>
<Script type = "text/Webpage effects" src = "http://www.bKjia. c0m/Webpage effects lib/jquery. webpage effects"> </script>
<Style type = "text/css tutorial">
. Tab {text-align: left; width: 500px; border: # ccc 1px solid; margin: 100px ;}
. Tab dt {border-bottom: # ccc 1px solid; height: 25px; background: # f1f1f1; margin-bottom:-1px; height: 25px; line-height: 25px ;}
. Tab dt strong {padding: 0 15px; color: #444 ;}
. Tab dt a {display: inline-block; cursor: pointer; padding: 0 10px; text-align: center; background: # f1f1f1; color: #000 ;}
. Tab dt. on {background: # fff; color: #333; font-weight: bold; border-bottom: 1px solid # fff; border-right: 1px solid # ccc; border-left: 1px solid # ccc ;}
. Tab dd {padding: 10px; height: 200px; clear: both ;}
</Style>
</Head>
<Body>
<Script type = "text/Webpage effects">
$ (Function (){
Var tabtitle = ". tab dl dt ";
Var tabcontent = ". tab dl ul ";
$ (Tabtitle + ": first"). addclass ("on ");
$ (Tabcontent). not (": first"). hide ();
$ (Tabtitle). unbind ("click"). bind ("click", function (){
$ (This). siblings ("a"). removeclass ("on"). end (). addclass ("on ");
Var index = $ (tabtitle). index ($ (this ));
$ (Tabcontent). eq (index). siblings (tabcontent). hide (). end (). fadein ("slow ");
});
});
</Script>
<Div class = "tab">
<Dl>
<Dt> <strong> classic tab </strong> <a> mobile phone store </a> <a> foot home </a> <a> Hai LAN men </a> <a>> boutique home </a> </dt>
<Dd>
<Ul> 1111111111111111111111 </ul>
<Ul> www.jb51.net </ul>
<Ul> 333333333333333333333 </ul>
<Ul> 444444444444444444 </ul>
</Dd>
</Dl>
</Div>
</Body>
</Html>