具體代碼自己將下面的代碼復(fù)制后在Dreamweaver里改一下,,再套入你的網(wǎng)站代碼中:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www./TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www./1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=gb2312" /> <title>滑動門(舌簽)完美版 - 古詩大全</title> <style type="text/css"> body{ color: #000; font-family: "宋體", arial; font-size: 12px; background: #fff; text-align: center; margin: 0; } .nTab{ float: left; width: 960px; margin: 0 auto; border-bottom:1px #AACCEE solid; background:#d5d5d5; background-position:left; background-repeat:repeat-y; margin-bottom:2px; } .nTab .TabTitle{ clear: both; height: 22px; overflow: hidden; } .nTab .TabTitle ul{ border:0; margin:0; padding:0; } .nTab .TabTitle li{ float: left; width: 70px; cursor: pointer; padding-top: 4px; padding-right: 0px; padding-left: 0px; padding-bottom: 2px; list-style-type: none; } .nTab .TabTitle .active{ background:#fff; border-left:1px #AACCEE solid; border-top:1px #AACCEE solid; border-right:1px #AACCEE solid; border-bottom:1px #fff solid; } .nTab .TabTitle .normal{ background:#EBF3FB; border:1px #AACCEE solid; } .nTab .TabContent{ width:auto;background:#fff; margin: 0px auto; padding:10px 0 0 0; border-right:1px #AACCEE solid;border-left:1px #AACCEE solid; } .none {display:none;} </style> <script type="text/javascript"> function nTabs(thisObj,Num){ if(thisObj.className == "active")return; var tabObj = thisObj.parentNode.id; var tabList = document.getElementById(tabObj).getElementsByTagName("li"); for(i=0; i <tabList.length; i++){ if (i == Num){ thisObj.className = "active"; document.getElementById(tabObj+"_Content"+i).style.display = "block"; }else{ tabList[i].className = "normal"; document.getElementById(tabObj+"_Content"+i).style.display = "none"; } } } </script> </head> <body> <div align="center" style="padding-left:25px;"> <!-- 選項卡0開始 --> <div class="nTab"> <!-- 標(biāo)題開始 --> <div class="TabTitle"> <ul id="myTab0"> <li class="active" onmouseover="nTabs(this,0);">古詩大全</li> <li class="normal" onmouseover="nTabs(this,1);">古詩三百首</li> <li class="normal" onmouseover="nTabs(this,2);">網(wǎng)站分類目錄</li> <li class="normal" onmouseover="nTabs(this,3);">碩博網(wǎng)</li> <li class="normal" onmouseover="nTabs(this,4);">在職博士</li> <li class="normal" onmouseover="nTabs(this,5);">碩博在線</li> </ul> </div> <!-- 內(nèi)容開始 --> <div class="TabContent"> <div id="myTab0_Content0"> <a href=http://www. target="_blank">歡迎光臨古詩大全 </a></div> <div id="myTab0_Content1" class="none"><a href=http://zuowen. target="_blank">古詩三百首</a>,,李白的詩,,杜甫的詩</div> <div id="myTab0_Content2" class="none">站在巨人的肩膀之上可以使我們看得更遠(yuǎn),,<a href=http://www. target="_blank">網(wǎng)站分類目錄</a></div> <div id="myTab0_Content3" class="none">MBA,EMBA,教育招生,,培訓(xùn)</div> <div id="myTab0_Content4" class="none">工欲其善,,必先利其器,,在職博士招生</div> <div id="myTab0_Content5" class="none">有啥問題,,敬請?zhí)釂?,碩博在線論壇</div> </div> </div> <!-- 選項卡0結(jié)束 --> <!-- 選項卡1開始 --> <div class="nTab" style=width:288px> <!-- 標(biāo)題開始 --> <div class="TabTitle"> <ul id="myTab1"> <li class="active" onclick="nTabs(this,0);">易看首頁</li> <li class="normal" onclick="nTabs(this,1);">易看閱讀</li> <li class="normal" onclick="nTabs(this,2);">易看鑒賞</li> <li class="normal" onclick="nTabs(this,3);">易看下載</li> </ul> </div> <!-- 內(nèi)容開始 --> <div class="TabContent"> <div id="myTab1_Content0"> 歡迎光臨易看網(wǎng)絡(luò)</div> <div id="myTab1_Content1" class="none"> 易看閱讀,網(wǎng)頁教程,,程序修改 </div> <div id="myTab1_Content2" class="none"> 站在巨人的肩膀之上可以使我們看得更遠(yuǎn) </div> <div id="myTab1_Content3" class="none"> 工欲其善,,必先利其器 </div> </div> </div> <!-- 選項卡1結(jié)束 --> </div> </body> </html> |
|