A classic and concise CSS sliding door code and a css sliding door

Source: Internet
Author: User

A classic and concise CSS sliding door code and a css sliding door

<! 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> sliding door </title>
<Style media = "screen" type = "text/css">
<! --
* {Font-size: 12px ;}
Html, body {margin: 0; text-align: center; over-flow: hidden; height: 100%; width: 100% ;}
UL {list-style-type: none; margin: 0px ;}
/* Standard box model */
. Ttl {height: 18px ;}
. Ctt {height: auto; padding: 6px; clear: both; border: 1px solid #064ca1; border-top: 0; text-align: left ;}
. W936 {margin: 2px 0; clear: both; width: 936px;/* width of the sliding door */}
/* TAB switching effect */
. Tb _ {background-image: url ('/jscss/demoimg/200901/tabs1.gif'); background-repeat: repeat-x; background-color: # E6F2FF ;}
. Tb _ ul {height: 24px ;}
. Tb _ li {float: left; height: 24px; line-height: 1.9; width: 94px; cursor: pointer ;}
/* Control the display and hide css Classes */
. Normaltab {background-image: url ('/jscss/demoimg/200901/tabs2.gif'); background-repeat: no-repeat; color: #1F3A87 ;}
. Hovertab {background-image: url ('/jscss/demoimg/200901/tabs3.gif'); background-repeat: no-repeat; color: #1F3A87; font-weight: bold}
. Dis {display: block ;}
. Undis {display: none ;}
-->
</Style>
<Script type = "text/javascript" language = "javascript">
// <! CDATA [
Function g (o) {return document. getElementById (o );}
Function HoverLi (n ){
// If there are N tags, I <= N;
For (var I = 1; I <= 6; I ++) {g ('tb _ '+ I ). className = 'normaltab'; g ('tbc _ 0' + I ). className = 'undis ';} g ('tbc _ 0' + n ). className = 'dis '; g ('tb _' + n ). className = 'hovertab ';
}
// Change onmouseover in <li> to onclick if you want to make a click;
//]>
</Script>
</Head>
<Body>
<Div class = "w936">
<Div id = "tb _" class = "tb _">
<Ul>
<Li id = "tb_1" class = "hovertab" onmouseover = "x: HoverLi (1);">
ASP. NET </li>
<Li id = "tb_2" class = "normaltab" onmouseover = "I: HoverLi (2);">
MYSQL </li>
<Li id = "tb_3" class = "normaltab" onmouseover = "a: HoverLi (3);">
DELPHI </li>
<Li id = "tb_4" class = "normaltab" onmouseover = "o: HoverLi (4);">
VB. NET </li>
<Li id = "tb_5" class = "normaltab" onmouseover = "g: HoverLi (5);">
JAVA </li>
<Li id = "tb_6" class = "normaltab" onmouseover = "z: HoverLi (6);">
PHP5 </li>
</Ul>
</Div>
<Div class = "ctt">
<Div class = "dis" id = "tbc_01"> ASP. NET content </div>
<Div class = "undis" id = "tbc_02"> MYSQL-related content </div>
<Div class = "undis" id = "tbc_03"> here is the related content of DELPHI </div>
<Div class = "undis" id = "tbc_04"> here is the content related to VB. NET. </div>
<Div class = "undis" id = "tbc_05"> JAVA content </div>
<Div class = "undis" id = "tbc_06"> PHP5 content </B>
</Div>
</Div>
</Div>

<Div> http://www.999jiujiu.com/</div>
</Body>
</Html>

Related Article

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.