最新国产好看的视频,伊人天堂AV在线,国产Aaaaaa视频,蜜臀视频在线观看一区,人妻av色图,密臀久久久精品影片,青青视频免费观看毛片,久草在线观看视,国产三级精品色情在线

JS實(shí)現(xiàn)不規(guī)則TAB選項(xiàng)卡效果代碼

 更新時(shí)間:2015年09月16日 09:21:18   作者:企鵝  
這篇文章主要介紹了JS實(shí)現(xiàn)不規(guī)則TAB選項(xiàng)卡效果代碼,通過簡單的JavaScript響應(yīng)鼠標(biāo)事件動態(tài)變換元素樣式實(shí)現(xiàn)不規(guī)則選項(xiàng)卡效果,非常具有實(shí)用價(jià)值,需要的朋友可以參考下

本文實(shí)例講述了JS實(shí)現(xiàn)不規(guī)則TAB選項(xiàng)卡效果代碼。分享給大家供大家參考。具體如下:

這是一款不規(guī)則TAB選項(xiàng)卡效果,將中規(guī)中矩的方角換成了不規(guī)則的圓角,也就是這一換,倒讓瀏覽者新鮮了不少,也使選項(xiàng)卡增多了幾份靈感,不是嗎?

運(yùn)行效果截圖如下:

在線演示地址如下:

http://demo.jb51.net/js/2015/js-box-tab-nav-style-menu-codes/

具體代碼如下:

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>不規(guī)則TAB選項(xiàng)卡效果</title>
<style type="text/css">
<!--
body,td{font-size: 12px;}
.tab{margin-top:100px}
#TabCon1{width:212px;height:100px;line-height:100px;border-left:#757575 1px solid;border-bottom:#757575 1px solid;border-right:#757575 1px solid;}
#TabCon2{width:212px;height:100px;line-height:100px;border-left:#757575 1px solid;border-bottom:#757575 1px solid;border-right:#757575 1px solid;}
.xixi1{width:212px;height:29px;line-height:29px;background-image:url(images/news_bghover1.gif);cursor:pointer;}
.xixi2{width:212px;height:29px;line-height:29px;background-image:url(images/news_bghover2.gif);cursor:pointer;}
.tab1{width:96px;height:29px;line-height:29px;float:left;text-align:center;cursor:pointer; color:#FFF;}
.tab2{width:116px;height:29px;line-height:29px;float:left;text-align:center;cursor:pointer;color:#000;}
-->
</style>
</head>
<body style="text-align:center">
<script type="text/javascript">
 function setTab03Syn ( i )
 {
  selectTab03Syn(i);
 }
 function selectTab03Syn ( i )
 {
  switch(i){
   case 1:
   document.getElementById("TabCon1").style.display="block";
   document.getElementById("TabCon2").style.display="none";
   document.getElementById("font1").style.color="#ffffff";
   document.getElementById("font2").style.color="#000000";
   break;
   case 2:
   document.getElementById("TabCon1").style.display="none";
   document.getElementById("TabCon2").style.display="block";
   document.getElementById("font1").style.color="#000000";
   document.getElementById("font2").style.color="#ffffff";
   break;
  }
 }
</script>
<div class="tab">
<div id="bg" class="xixi1">
<div id="font1" class="tab1" onMouseOver="setTab03Syn(1);document.getElementById('bg').className='xixi1'">新聞標(biāo)簽</div>
<div id="font2" class="tab2" onMouseOver="setTab03Syn(2);document.getElementById('bg').className='xixi2'">新聞標(biāo)簽</div>
</div>
<div id="TabCon1">不規(guī)則TAB選項(xiàng)卡效果</div>
<div id="TabCon2" style="display:none">不規(guī)則TAB選項(xiàng)卡效果2</div>
</div>
</body>
</html>

希望本文所述對大家的JavaScript程序設(shè)計(jì)有所幫助。

相關(guān)文章

最新評論

修武县| 信阳市| 区。| 栾川县| 江津市| 屏东县| 隆昌县| 清丰县| 汉寿县| 哈尔滨市| 奉贤区| 景谷| 惠东县| 中卫市| 黄大仙区| 岑巩县| 金湖县| 什邡市| 容城县| 依安县| 海伦市| 鄂州市| 威信县| 新营市| 特克斯县| 新绛县| 扎赉特旗| 连城县| 锡林郭勒盟| 佳木斯市| 兴城市| 五常市| 山西省| 仲巴县| 潮安县| 禹州市| 西吉县| 牡丹江市| 孝昌县| 阜平县| 乌鲁木齐市|