<!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>
<title>网页选项卡</title>
<meta http-equiv="Content-Type" mrc="text/html; charset=gb2312" />
<STYLE type=text/css> 
<!-- 
* { 
    margin: 0; padding:0 
} 
body { 
    margin-top: 10px; 
    margin-right: auto; 
    margin-bottom: 10px; 
    margin-left: auto; 
    text-align: center; 
    height: auto; 
    width: auto; 
    background-color: #666666; 
    font-size: 12px; 
    color: #000000; 
} 
#container { 
    text-align: left; 
    width: 760px; 
    height: 400px; 
    background-color: #FFFFFF; 
    padding: 20px; 
} 
#container #title { 
    height: 28px; 
} 
#container #title li { 
    float: left; 
    list-style-type: none; 
    height: 28px; 
    line-height: 28px; 
    text-align: center; 
    margin-right: 1px; 
} 
#container #title ul { 
    background-color: #FFFFFF; 
    height: 28px; 
} 
#container #title a { 
    text-decoration: none; 
    color: #000000; 
    display: block; 
    width: auto; 
    background: url(http://p1.mb5u.com/texiao/left_bk2.gif) no-repeat left -29px; 
} 
#container #title a span{ 
    display: block; 
    background: url(http://p1.mb5u.com/texiao/right_bk2.gif) no-repeat right -29px; 
    padding: 0 15px 0 15px; 
} 
#container #title #tag1 a:hover { 
    text-decoration: none; 
    color: #ffffff; 
    display: block; 
    width: auto; 
    background: url(http://p1.mb5u.com/texiao/left_bk2.gif) no-repeat left -87px; 
} 
#container #title #tag1 a:hover span{ 
    display: block; 
    background: url(http://p1.mb5u.com/texiao/right_bk2.gif) no-repeat right -87px; 
    padding: 0 15px 0 15px; 
} 
#container #title #tag2 a:hover { 
    text-decoration: none; 
    color: #ffffff; 
    display: block; 
    width: auto; 
    background: url(http://p1.mb5u.com/texiao/left_bk2.gif) no-repeat left 0px; 
} 
#container #title #tag2 a:hover span{ 
    display: block; 
    background: url(http://p1.mb5u.com/texiao/right_bk2.gif) no-repeat right 0px; 
    padding: 0 15px 0 15px;     
} 
#container #title #tag3 a:hover { 
    text-decoration: none; 
    color: #ffffff; 
    display: block; 
    width: auto; 
    background: url(http://p1.mb5u.com/texiao/left_bk2.gif) no-repeat left -58px; 
} 
#container #title #tag3 a:hover span{ 
    display: block; 
    background: url(http://p1.mb5u.com/texiao/right_bk2.gif) no-repeat right -58px; 
    padding: 0 15px 0 15px;     
} 
#container #title #tag4 a:hover { 
    text-decoration: none; 
    color: #ffffff; 
    display: block; 
    width: auto; 
    background: url(http://p1.mb5u.com/texiao/left_bk2.gif) no-repeat left -145px; 
} 
#container #title #tag4 a:hover span{ 
    display: block; 
    background: url(http://p1.mb5u.com/texiao/right_bk2.gif) no-repeat right -145px; 
    padding: 0 15px 0 15px; 
} 
#container #title #tag5 a:hover { 
    text-decoration: none; 
    color: #ffffff; 
    display: block; 
    width: auto; 
    background: url(http://p1.mb5u.com/texiao/left_bk2.gif) no-repeat left -174px; 
} 
#container #title #tag5 a:hover span{ 
    display: block;  
    background: url(http://p1.mb5u.com/texiao/right_bk2.gif) no-repeat right -174px; 
    padding: 0 15px 0 15px; 
} 
#container #title .selectli1 { 
    text-decoration: none; 
    color: #ffffff; 
    display: block; 
    width: auto; 
    background: url(http://p1.mb5u.com/texiao/left_bk2.gif) no-repeat left -87px; 
} 
#container #title a .selectspan1 { 
    display: block; 
    background: url(http://p1.mb5u.com/texiao/right_bk2.gif) no-repeat right -87px;  
    padding: 0 15px 0 15px; 
} 
#container #title .selectli2 { 
    text-decoration: none; 
    color: #ffffff; 
    display: block; 
    width: auto; 
    background: url(http://p1.mb5u.com/texiao/left_bk2.gif) no-repeat left 0px; 
} 
#container #title a .selectspan2 { 
    display: block;  
    background: url(http://p1.mb5u.com/texiao/right_bk2.gif) no-repeat right 0px;  
    padding: 0 15px 0 15px; 
} 
#container #title .selectli3 { 
    text-decoration: none; 
    color: #ffffff; 
    display: block; 
    width: auto; 
    background: url(http://p1.mb5u.com/texiao/left_bk2.gif) no-repeat left -58px; 
} 
#container #title a .selectspan3 { 
    display: block;  
    background: url(http://p1.mb5u.com/texiao/right_bk2.gif) no-repeat right -58px;  
    padding: 0 15px 0 15px; 
} 
#container #title .selectli4 { 
    text-decoration: none; 
    color: #ffffff; 
    display: block; 
    width: auto; 
    background: url(http://p1.mb5u.com/texiao/left_bk2.gif) no-repeat left -145px; 
} 
#container #title a .selectspan4 { 
    display: block;  
    background: url(http://p1.mb5u.com/texiao/right_bk2.gif) no-repeat right -145px;  
    padding: 0 15px 0 15px; 
} 
#container #title .selectli5 { 
    text-decoration: none; 
    color: #ffffff; 
    display: block; 
    width: auto; 
    background: url(http://p1.mb5u.com/texiao/left_bk2.gif) no-repeat left -174px; 
} 
#container #title a .selectspan5 { 
    display: block;  
    background: url(http://p1.mb5u.com/texiao/right_bk2.gif) no-repeat right -174px;  
    padding: 0 15px 0 15px; 
} 
#container #mrc ul {margin: 10px;} 
#container #mrc li {margin: 5px; } 
#container #mrc li img {margin: 5px;display:block;} 
#container #mrc { 
    height: 300px; 
    padding: 10px; 
} 
.mrc1 { 
    border-top-width: 3px; 
    border-right-width: 1px; 
    border-bottom-width: 1px; 
    border-left-width: 1px; 
    border-top-style: solid; 
    border-right-style: solid; 
    border-bottom-style: solid; 
    border-left-style: solid; 
    border-top-color: #3A81C8; 
    border-right-color: #3A81C8; 
    border-bottom-color: #3A81C8; 
    border-left-color: #3A81C8; 
    background-color: #DFEBF7; 
} 
.mrc2 { 
    border-top-width: 3px; 
    border-right-width: 1px; 
    border-bottom-width: 1px; 
    border-left-width: 1px; 
    border-top-style: solid; 
    border-right-style: solid; 
    border-bottom-style: solid; 
    border-left-style: solid; 
    border-top-color: #ff950b; 
    border-right-color: #ff950b; 
    border-bottom-color: #ff950b; 
    border-left-color: #ff950b; 
    background-color: #FFECD2; 
} 
.mrc3 { 
    height: 300px; 
    padding: 10px; 
    border-top-width: 3px; 
    border-right-width: 1px; 
    border-bottom-width: 1px; 
    border-left-width: 1px; 
    border-top-style: solid; 
    border-right-style: solid; 
    border-bottom-style: solid; 
    border-left-style: solid; 
    border-top-color: #FE74B8; 
    border-right-color: #FE74B8; 
    border-bottom-color: #FE74B8; 
    border-left-color: #FE74B8; 
    background-color: #FFECF5; 
} 
.mrc4 { 
    height: 300px; 
    padding: 10px; 
    border-top-width: 3px; 
    border-right-width: 1px; 
    border-bottom-width: 1px; 
    border-left-width: 1px; 
    border-top-style: solid; 
    border-right-style: solid; 
    border-bottom-style: solid; 
    border-left-style: solid; 
    border-top-color: #00988B; 
    border-right-color: #00988B; 
    border-bottom-color: #00988B; 
    border-left-color: #00988B; 
    background-color: #E8FFFD; 
} 
.mrc5 { 
    height: 300px; 
    padding: 10px; 
    border-top-width: 3px; 
    border-right-width: 1px; 
    border-bottom-width: 1px; 
    border-left-width: 1px; 
    border-top-style: solid; 
    border-right-style: solid; 
    border-bottom-style: solid; 
    border-left-style: solid; 
    border-top-color: #A8BC1F; 
    border-right-color: #A8BC1F; 
    border-bottom-color: #A8BC1F; 
    border-left-color: #A8BC1F; 
    background-color: #F7FAE2; 
} 
.hidemrc {display:none;} 
--> 
</STYLE>

<SCRIPT language=javascript> 
function switchTag(tag,mrc) 
{ 
    for(i=1; i <6; i++) 
    { 
        if ("tag"+i==tag) 
        { 
            document.getElementById(tag).getElementsByTagName("a")[0].className="selectli"+i; 
            document.getElementById(tag).getElementsByTagName("a")[0].getElementsByTagName("span") 

[0].className="selectspan"+i; 
        }else{ 
            document.getElementById("tag"+i).getElementsByTagName("a")[0].className=""; 
            document.getElementById("tag"+i).getElementsByTagName("a")[0].getElementsByTagName("span") 

[0].className=""; 
        } 
        if ("mrc"+i==mrc) 
        { 
            document.getElementById(mrc).className=""; 
        }else{ 
            document.getElementById("mrc"+i).className="hidemrc"; 
        } 
        document.getElementById("mrc").className=mrc; 
    } 
} 
</SCRIPT>
</head> 
<body>

<DIV id=container>
<DIV id=title>
<UL>
<LI id=tag1><A class=selectli1 onclick="switchTag('tag1','mrc1');this.blur();" href="/"><SPAN class=selectspan1>网站首页</SPAN></A> </LI>
<LI id=tag2><A onclick="switchTag('tag2','mrc2');this.blur();" href="#"><SPAN>下载中心</SPAN></A> </LI>
<LI id=tag3><A onclick="switchTag('tag3','mrc3');this.blur();" href="#"><SPAN>网页特效</SPAN></A> </LI>
<LI id=tag4><A onclick="switchTag('tag4','mrc4');this.blur();" href="#"><SPAN>会员注册与登录</SPAN></A> </LI>
<LI id=tag5><A onclick="switchTag('tag5','mrc5');this.blur();" href="#"><SPAN>所用图片</SPAN></A> </LI></UL></DIV>
<DIV class=mrc1 id=mrc>
<DIV id=mrc1>
<P>仿淘宝网站的导航效果。此方法有几个优点：</P>1、根据字数自适应项目长度</DIV>
<DIV class=hidemrc id=mrc2>2、高质量源代码下载。</DIV>
<DIV class=hidemrc id=mrc3>3、源码爱好者每一个都是精品，全心全意服务大家，哈哦！</DIV>
<DIV class=hidemrc id=mrc4>4、背景图片只需两个就足够了，减少服务器负担</DIV>
<DIV class=hidemrc id=mrc5>5、这是本选项卡所使用到的两个图片，请保存： 
<TABLE cellSpacing=2 cellPadding=0 width="58%" border=1>
<TBODY>
<TR>
<TD align=middle width="70%"><IMG height=290 src="http://p1.mb5u.com/texiao/left_bk2.gif" width=250></TD>
<TD align=middle width="30%"><IMG height=290 src="http://p1.mb5u.com/texiao/right_bk2.gif" width=15></TD></TR></TBODY></TABLE></DIV></DIV></DIV>
</body>
</html>