日本黄色片在线视频|国模无码一区二区三区|大香伊蕉国产短视频69|99精品日韩欧美在线观看|极品夜晚无码av一区二区|亚洲综合无码一区二区三区|国产亚洲精aa在线观看香蕉|日本2018一道国产高清视频

當(dāng)前位置:首頁(yè) > 長(zhǎng)沙網(wǎng)站建設(shè) > JS 網(wǎng)頁(yè)選項(xiàng)卡代碼

JS 網(wǎng)頁(yè)選項(xiàng)卡代碼

<html xmlns="<head>
    <title>標(biāo)題頁(yè)</title>
<style>
.conts{visibility:hidden}
.tab{border-top:solid thin #E0E0E0;
border-right:solid thin gray;
border-left:solid thin #E0E0E0;
font-family:Verdana;
font-size:10pt;
text-align:center;
font-weight:normal}
.selTab{border-left:solid thin white;
border-top:solid thin white;
border-right:solid thin black;
font-weight:bold;
text-align:center}
.conts  {visibility:hidden}
.tab{border-top:solid thin #E0E0E0;
border-right:solid thin gray;
border-left:solid thin #E0E0E0;
font-family:Verdana;
font-size:10pt;
text-align:center;
font-weight:normal}
.selTab{border-left:solid thin white;
border-top:solid thin white;
border-right:solid thin black;
font-weight:bold;
text-align:center}
</style>
<script language="JavaScript">
function public_Labels(label1, label2, label3, label4, label5, label6, label7){
t1.innerText = label1;
t2.innerText = label2;
t3.innerText = label3;
t4.innerText = label4;
t5.innerText = label5;
t6.innerText = label6;
t7.innerText = label7;
}
//切換選項(xiàng)卡時(shí)顯示選項(xiàng)卡的內(nèi)容
function public_Contents(contents1, contents2, contents3, contents4, contents5, contents6, contents7){
t1Contents.innerHTML = contents1;
t2Contents.innerHTML = contents2;
t3Contents.innerHTML = contents3;
t4Contents.innerHTML = contents4;
t5Contents.innerHTML = contents5;
t6Contents.innerHTML = contents6;
t7Contents.innerHTML = contents7;
init();
}
//默認(rèn)顯示選項(xiàng)卡1
function init(){
tabContents.innerHTML = t1Contents.innerHTML;
}
//更換選項(xiàng)卡時(shí)的方法
var currentTab;
var tabBase;
var firstFlag = true;
function changeTabs(){
if(firstFlag == true){
currentTab = t1;
tabBase = t1base;
firstFlag = false;
}
//當(dāng)用戶單擊選項(xiàng)卡時(shí),修改樣式及內(nèi)容
if(window.event.srcElement.className == "tab")
{
currentTab.className = "tab";
tabBase.style.backgroundColor = "white";
currentTab = window.event.srcElement;
tabBaseID = currentTab.id + "base";
tabContentID = currentTab.id + "Contents";
tabBase = document.all(tabBaseID);
tabContent = document.all(tabContentID);
currentTab.className = "selTab";
tabBase.style.backgroundColor = "";
tabContents.innerHTML = tabContent.innerHTML;
}}
</script>
</head>
<body BGCOLOR="#c0c0c0" onclick="changeTabs()" onLoad="init()">
<div STYLE="position:absolute; top:20; height:350; width:500; left:65; border:none thin gray">
<table STYLE="width:600; height:350" CELLPADDING="0" CELLSPACING="0" bgcolor="c0c0c0">
<tr><td ID="t1" CLASS="selTab" HEIGHT="25">選項(xiàng) 1</td>
<td ID="t2" CLASS="tab">選項(xiàng) 2</td>
<td ID="t3" CLASS="tab">選項(xiàng) 3</td>
<td ID="t4" CLASS="tab">選項(xiàng) 4</td>
<td ID="t5" CLASS="tab">選項(xiàng) 5</td>
<td ID="t6" CLASS="tab">選項(xiàng) 6</td>
<td ID="t7" CLASS="tab">選項(xiàng) 7</td>
</tr><tr>
<td ID="t1base" STYLE="height:2; border-left:solid thin white"></td>
<td ID="t2base" STYLE="height:2; background-color:white"></td>
<td ID="t3base" STYLE="height:2; background-color:white"></td>
<td ID="t4base" STYLE="height:2; background-color:white"></td>
<td ID="t5base" STYLE="height:2; background-color:white"></td>
<td ID="t6base" STYLE="height:2; background-color:white"></td>
<td ID="t7base" STYLE="height:2; background-color:white; border-right:solid thin white"></td>
</tr><tr><td HEIGHT="*" COLSPAN="7" ID="tabContents"
STYLE="border-left:solid thin white;border-bottom:solid thin white;border-right:solid thin white">sample
contents</td></tr></table></div><div CLASS="conts" ID="t1Contents">
<p align="center">Tab1的內(nèi)容 </p>
</div><div CLASS="conts" ID="t2Contents">
<p align="center">Tab2的內(nèi)容 </p>
</div><div CLASS="conts" ID="t3Contents">
<p align="center">Tab3的內(nèi)容 </p>
</div><div CLASS="conts" ID="t4Contents">
<p align="center">Tab4的內(nèi)容 </p>
</div><div CLASS="conts" ID="t5Contents">
<p align="center">Tab5的內(nèi)容 </p>
</div><div CLASS="conts" ID="t6Contents">
<p align="center">Tab6的內(nèi)容 </p>
</div><div
</body>
</html>

發(fā)表評(píng)論
◎歡迎參與討論,請(qǐng)?jiān)谶@里發(fā)表您的看法、交流您的觀點(diǎn)。

相關(guān)文章

2021年優(yōu)度成功簽約并完成泰坦凝膠官網(wǎng)

2021年優(yōu)度成功簽約并完成泰坦凝膠官網(wǎng)

此網(wǎng)站采用標(biāo)準(zhǔn)網(wǎng)站建設(shè)方案,PC+移動(dòng)自動(dòng)轉(zhuǎn)換模式,網(wǎng)站產(chǎn)品為一款火爆的微商產(chǎn)品,也是一款男性用品。...

備案與沒備案的新網(wǎng)站老域名為什么百度都不收錄?

備案與沒備案的新網(wǎng)站老域名為什么百度都不收錄?

現(xiàn)在互聯(lián)網(wǎng)越來越難做,百度的門檻越來越高,以前新網(wǎng)站上線提交后3天就會(huì)收錄,現(xiàn)在新網(wǎng)站上線每天提交還不一定會(huì)收錄,必須結(jié)合外鏈才有效。...

做好“著陸頁(yè)”,公司銷售業(yè)績(jī)將提升一大步

做好“著陸頁(yè)”,公司銷售業(yè)績(jī)將提升一大步

當(dāng)今,一個(gè)能在用戶尋找“返回”按鈕之前抓住用戶眼球的著陸頁(yè)比以往任何時(shí)候都更有商業(yè)價(jià)值。值得慶幸的是,一個(gè)好的著陸頁(yè)面的設(shè)計(jì)過程比以往更加容易把握,訣竅在于弄清楚實(shí)現(xiàn)這個(gè)非常重要的切入點(diǎn)所需的核心要素...

什么是關(guān)鍵詞?

什么是關(guān)鍵詞?

關(guān)鍵詞就是你向搜索引擎發(fā)出的一個(gè)指令,是讓搜索引擎幫助你查找相關(guān)信息的命令,它可以是一個(gè)字,也可以是一個(gè)詞、一句話、一個(gè)英字母、英文單詞、一個(gè)數(shù)字、一個(gè)符號(hào)等任何可以在搜索框中輸入的信息。...

什么樣的網(wǎng)站才是一個(gè)合格的SEO網(wǎng)站?

什么樣的網(wǎng)站才是一個(gè)合格的SEO網(wǎng)站?

在講網(wǎng)站之前還是來介紹一下什么是網(wǎng)站,因?yàn)檫@里的學(xué)員還有很多SEO初學(xué)者,網(wǎng)站就好比是我們?cè)谀硞€(gè)商場(chǎng)、某個(gè)小區(qū)開的一個(gè)店鋪,你做生意肯定是有一個(gè)店鋪的對(duì)吧,那么網(wǎng)站就是一個(gè)互聯(lián)網(wǎng)上的店鋪,是一個(gè)虛擬的...