萬盛學電腦網

 萬盛學電腦網 >> 網頁制作 >> Html5 >> html標簽切換代碼

html標簽切換代碼

歡迎大家在這裡學習html標簽切換!這裡是我們給大家整理出來的精彩內容。我相信,這些問題也肯定是很多朋友在關心的,所以我就給大家談談這個!

<FCK:META http-equiv=Content-Type content="text/html; charset=gb2312" />

<style type="text/css">

<!--

BODY {

PADDING-RIGHT: 0px; PADDING-LEFT: 0px; FONT-SIZE: 12px; PADDING-BOTTOM: 0px; MARGIN: 0px auto; COLOR: black; LINE-HEIGHT: 150%; PADDING-TOP: 10px; BACKGROUND-COLOR: white; TEXT-ALIGN: center

}

.dis {

DISPLAY: block

}

.undis {

DISPLAY: none

}

#cntR {

WIDTH: 302px

}

#NewsTop {

CLEAR: both; MARGIN-BOTTOM: 16px

}

#NewsTop P {

FLOAT: left; LINE-HEIGHT: 21px

}

#NewsTop P.topTit {

FONT-WEIGHT: bold; WIDTH: 117px

}

#NewsTop P.topC0 {

BACKGROUND: #dcdcdc; BORDER-LEFT: #f2f2f2 1px solid; WIDTH: 40px; CURSOR: pointer

}

#NewsTop P.topC1 {

BACKGROUND: #c2130e; BORDER-LEFT: #f2f2f2 1px solid; WIDTH: 40px; COLOR: #fff

}

#NewsTop #NewsTop_tit {

BORDER-BOTTOM: #c2130e 3px solid; HEIGHT: 21px

}

#NewsTop #NewsTop_cnt {

PADDING-LEFT: 32px; BACKGROUND: url: 26px; PADDING-TOP: 7px; HEIGHT: 260px; TEXT-ALIGN: left

}

#NewsTop #NewsTop_cnt A {

COLOR: #666; TEXT-DECORATION: none

}

#NewsTop #NewsTop_cnt A:hover {

COLOR: #c2130e; TEXT-DECORATION: underline

}

-->

</style>

</HEAD>

<BODY>

<DIV id=cntR>

<DIV id=NewsTop>

<DIV id=NewsTop_tit>

<P class=topTit>新聞排行</P>

<P class=topC0>國內</P>

<P class=topC0>國際</P>

<P class=topC0>社會</P>

<P class=topC0>網評</P>

</DIV>

<DIV id=NewsTop_cnt><SPAN title="Don't delete me"></SPAN>

<SPAN>

<A href="#" _fcksavedurl="#" target=_self>新疆阜康鐵路橋梁</A><BR>

<A href="#" _fcksavedurl="#" target=_self>最高法:沒有超越法律程序</A><BR>

<A href="#" _fcksavedurl="#" target=_self>物權法:滿70年住宅建設用地使用權將自動續期</A><BR>

<A href="#" _fcksavedurl="#" target=_self>弟弟(圖)</A><BR>

<A href="#" _fcksavedurl="#" target=_self>揭開鄭州神槍手神秘面紗 頭號狙擊手是近視眼</A><BR>

<A href="#" _fcksavedurl="#" target=_self>不排除和直接對抗可能</A><BR>

<A href="#" _fcksavedurl="#" target=_self>浙江東陽傳奇</A><BR>

<A href="#" _fcksavedurl="#" target=_self>西方炒作</A><BR>

<A href="#" _fcksavedurl="#" target=_self>女孩生活無法自理請人大代表遞交安樂死議案</A><BR>

<A href="#" _fcksavedurl="#" target=_self>建設部:住房公積金制度將覆蓋農民工</A><BR>

<div align="right"><A href="#" _fcksavedurl="#" target=_self>...more</A></div>

</SPAN>

<SPAN>

<A href="#" _fcksavedurl="#" target=_self>美華裔女兵在營房上介入調查(圖)</A><BR>

<A href="#" _fcksavedurl="#" target=_self>組圖:美國總統布什車隊被撞</A><BR>

<A href="#" _fcksavedurl="#" target=_self>夢露掌握肯尼迪之弟秘密遭誘騙自殺(組圖)</A><BR>

<A href="#" _fcksavedurl="#" target=_self>孟加拉國嚴打貪官人人自危奔馳寶馬拋棄路邊</A><BR>

<A href="#" _fcksavedurl="#" target=_self>韓國將舉行大規模軍事演習(圖文)</A><BR>

<A href="#" _fcksavedurl="#" target=_self>組圖:土星最大衛星表面發現“海洋”</A><BR>

<A href="#" _fcksavedurl="#" target=_self>墨西哥繳獲2億美元巨額現鈔(組圖)</A><BR>

<A href="#" _fcksavedurl="#" target=_self>組圖:全球掀起</A><BR>

<A href="#" _fcksavedurl="#" target=_self>美潛艇在百慕大失蹤一晚航母戰群出動搜索</A><BR>

<A href="#" _fcksavedurl="#" target=_self>匈牙利20萬人示威(組圖)</A><BR>

<div align="right"><A href="#" _fcksavedurl="#" target=_self>...more</A></div>

</SPAN>

<SPAN>

<A href="#" _fcksavedurl="#" target=_self>深圳女工(組圖)</A><BR>

<A href="#" _fcksavedurl="#" target=_self>男子珍藏一角錢“幣王”價格高達1.3萬(圖)</A><BR>

<A href="#" _fcksavedurl="#" target=_self>青海女孩</A><BR>

<A href="#" _fcksavedurl="#" target=_self>組圖:老妻少夫演繹</A><BR>

<A href="#" _fcksavedurl="#" target=_self>陝西藍田縣電視台播放</A><BR>

<A href="#" _fcksavedurl="#" target=_self>女子自稱(圖)</A><BR>

<A href="#" _fcksavedurl="#" target=_self>組圖:</A><BR>

<A href="#" _fcksavedurl="#" target=_self>組圖:四川泸州16歲女孩打造中國第一丑女</A><BR>

<A href="#" _fcksavedurl="#" target=_self>最高法:</A><BR>

<A href="#" _fcksavedurl="#" target=_self>深圳發現前失蹤</A><BR>

<div align="right"><A href="#" _fcksavedurl="#" target=_self>...more</A></div>

</SPAN>

<SPAN>

<SPAN>

<A href="#" _fcksavedurl="#" target=_self>深圳女工(組圖)</A><BR>

<A href="#" _fcksavedurl="#" target=_self>男子珍藏一角錢“幣王”價格高達1.3萬(圖)</A><BR>

<A href="#" _fcksavedurl="#" target=_self>青海女孩</A><BR>

<A href="#" _fcksavedurl="#" target=_self>組圖:老妻少夫演繹</A><BR>

<A href="#" _fcksavedurl="#" target=_self>陝西藍田縣電視台播放</A><BR>

<A href="#" _fcksavedurl="#" target=_self>女子自稱(圖)</A><BR>

<A href="#" _fcksavedurl="#" target=_self>組圖:</A><BR>

<A href="#" _fcksavedurl="#" target=_self>組圖:四川泸州16歲女孩打造中國第一丑女</A><BR>

<A href="#" _fcksavedurl="#" target=_self>最高法:</A><BR>

<A href="#" _fcksavedurl="#" target=_self>深圳發現前失蹤</A><BR>

<div align="right"><A href="#" _fcksavedurl="#" target=_self>...more</A></div>

</SPAN>

</DIV>

<SCRIPT>

var Tags=document.getElementById('NewsTop_tit').getElementsByTagName('p'); 

var TagsCnt=document.getElementById('NewsTop_cnt').getElementsByTagName('span'); 

var len=Tags.length; 

var flag=1;//修改默認值

for(i=1;i<len;i++){

Tags[i].value = i;

Tags[i].onmouseover=function(){changeNav(this.value)}; 

TagsCnt[i].className='undis';

}

Tags[flag].className='topC1';

TagsCnt[flag].className='dis';

function changeNav(v){

Tags[flag].className='topC0';

TagsCnt[flag].className='undis';

flag=v;

Tags[v].className='topC1';

TagsCnt[v].className='dis';

}

</SCRIPT>

</DIV>

</DIV>

</BODY></HTML>

 

好了,html標簽切換內容就給大家介紹到這裡了。希望大家繼續關注我們的網站!

相關推薦:

什麼是html標簽類型 

copyright © 萬盛學電腦網 all rights reserved