漂亮的div,css,tab

字號(hào):


    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">
    <html xmlns="">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf8" />
    <title>DIV+CSS布局實(shí)例:TAB滑動(dòng)門標(biāo)簽切換代碼</title>
    <style type="text/css">
    * {list-style-type:none; font-size:12px; text-decoration:none; margin:0; padding:0;}
    a {behavior:url(xuxian.htc)}
    .woaicss {width:438px; height:300px; overflow:hidden; margin:50px auto;}
    .woaicss_title {width:438px; height:30px; background:#fff url() no-repeat; overflow:hidden;}/*http://myjs.jz123.cn/inc1/btn_bg.png*/
    .woaicss_title li {display:block; float:left; margin:0 2px 0 0; display:inline; text-align:center;}
    .woaicss_title li a {display:block; width:90px; heigth:30px; line-height:34px; color:#fff;}
    .woaicss_title li a:hover {color:red; text-decoration:underline;}
    .woaicss_title_bg1 {background-position:0 0;}
    .woaicss_title_bg2 {background-position:0 -30px;}
    .woaicss_title_bg3 {background-position:0 -60px;}
    .woaicss_title_bg4 {background-position:0 -90px;}
    .woaicss_con {display:block; width:430px; height:260px; background:url() no-repeat 0 0; overflow:hidden; BORDER: #aecbd4 1px solid; }/*/images/20110424/con_bg.png*/
    .woaicss_con ul {width:418px; height:250px; margin:12px auto;}
    .woaicss_con li {width:418px; line-height:30px; margin:0 auto; white-space:nowrap; text-overflow:ellipsis; overflow: hidden;}
    .woaicss_con li a {color:#03c;}
    .woaicss_con li a:hover {color:#069; text-decoration:underline;}
    .woaicss_copy {width:438px; margin:10px auto; text-align:center;}
    .woaicss_copy a {color:#f00;}
    </style>
    </head>
    <body>
    <div>
    <script language="javascript">
    function woaicssq(num){
    for(var id = 1;id<=4;id++)
    {
    var MrJin="woaicss_con"+id;
    if(id==num)
    document.getElementById(MrJin).style.display="block";
    else
    document.getElementById(MrJin).style.display="none";
    }
    if(num==1)
    document.getElementById("woaicsstitle").className="woaicss_title woaicss_title_bg1";
    if(num==2)
    document.getElementById("woaicsstitle").className="woaicss_title woaicss_title_bg2";
    if(num==3)
    document.getElementById("woaicsstitle").className="woaicss_title woaicss_title_bg3";
    if(num==4)
    document.getElementById("woaicsstitle").className="woaicss_title woaicss_title_bg4";
    }
    </script>
    <ul id="woaicsstitle">
    <li><a href="#" target="_blank" onmouseover="javascript:woaicssq(1)">TAB ①</a></li>
    <li><a href="#" target="_blank" onmouseover="javascript:woaicssq(2)">TAB ②</a></li>
    <li><a href="#" target="_blank" onmouseover="javascript:woaicssq(3)">TAB ③</a></li>
    <li><a href="#" target="_blank" onmouseover="javascript:woaicssq(4)">TAB ④</a></li>
    </ul>
    <div id="woaicss_con1">
    <ul>
    <li>· <a target="_blank" href="#"> 超級(jí)漂亮的幾款清新、常用的網(wǎng)頁CSS布局配色實(shí)例</a></li>
    <li>· <a target="_blank" href="#"> CSS制作斜角上有背景圖片的Div層</a></li>
    <li>· <a target="_blank" href="#"> Js實(shí)現(xiàn)的層展開、層折疊效果,默認(rèn)時(shí)候?qū)邮钦郫B的</a></li>
    <li>· <a target="_blank" href="#"> DIV始終固定在網(wǎng)頁右下角位置的CSS實(shí)現(xiàn)方法</a></li>
    <li>· <a target="_blank" href="#"> JavaScript未知高度元素的垂直居中的方法</a></li>
    <li>· <a target="_blank" href="#"> 漸變彩色的文字</a></li>
    <li>· <a target="_blank" href="#"> 指定文字逐條顯示</a></li>
    <li>· <a target="_blank" href="#"> 滾動(dòng)的標(biāo)題欄</a></li>
    </ul>
    </div>
    <div id="woaicss_con2">
    <ul>
    <li>·
    <a target="_blank" href="#">
    JS 4屏平滑滾動(dòng)幻燈片特效</a></li>
    <li>·
    <a target="_blank" href="#">
    圖片的無縫滾動(dòng)(縱向、橫向)</a></li>
    <li>·
    <a target="_blank" href="#">
    鼠標(biāo)觸及帶邊框的菜單</a></li>
    <li>·
    <a target="_blank" href="#">
    比較實(shí)用的CSS控制鏈接顏色效果</a></li>
    <li>·
    <a target="_blank" href="#">
    鼠標(biāo)接觸或者離開圖片時(shí),圖片大小會(huì)相應(yīng)變化</a></li>
    <li>·
    <a target="_blank" href="#">
    特殊的鼠標(biāo)懸停提示</a></li>
    <li>·
    <a target="_blank" href="#">
    CSS Sprite制作的鼠標(biāo)感應(yīng)網(wǎng)站導(dǎo)航條</a></li>
    <li>·
    <a target="_blank" href="#">
    鼠標(biāo)激活顯示背景色的CSS特效代碼</a></li>
    </ul>
    </div>
    <div id="woaicss_con3">
    <ul>
    <li>·
    <a target="_blank" href="#">
    [酷] 又一款FLASH圖片切換效果代碼</a></li>
    <li>·
    <a target="_blank" href="#">
    精致的翻動(dòng)圖片新聞代碼</a></li>
    <li>·
    <a target="_blank" href="#">
    跟隨鼠標(biāo)頂部奇妙的海底生花</a></li>
    <li>·
    <a target="_blank" href="#">
    強(qiáng)制點(diǎn)擊廣告代碼的特效</a></li>
    <li>·
    <a target="_blank" href="#">
    鼠標(biāo)經(jīng)過列表顯示小圖的列表特效代碼</a></li>
    <li>·
    <a target="_blank" href="#">
    不用圓角圖片制作的圓角效果</a></li>
    <li>·
    <a target="_blank" href="#">
    超級(jí)漂亮的幾款清新、常用的網(wǎng)頁CSS布局配色實(shí)例</a></li>
    <li>·
    <a target="_blank" href="#">
    CSS制作斜角上有背景圖片的Div層</a></li>
    </ul>
    </div>
    <div id="woaicss_con4">
    <ul>
    <li>·
    <a target="_blank" href="#">
    Js實(shí)現(xiàn)的層展開、層折疊效果,默認(rèn)時(shí)候?qū)邮钦郫B的</a></li>
    <li>·
    <a target="_blank" href="#">
    DIV始終固定在網(wǎng)頁右下角位置的CSS實(shí)現(xiàn)方法</a></li>
    <li>·
    <a target="_blank" href="#">
    JavaScript未知高度元素的垂直居中的方法</a></li>
    <li>·
    <a target="_blank" href="#">
    漸變彩色的文字</a></li>
    <li>·
    <a target="_blank" href="#">
    指定文字逐條顯示</a></li>
    <li>·
    <a target="_blank" href="#">
    滾動(dòng)的標(biāo)題欄</a></li>
    <li>·
    <a target="_blank" href="#">
    JS 4屏平滑滾動(dòng)幻燈片特效</a></li>
    <li>·
    <a target="_blank" href="#">
    圖片的無縫滾動(dòng)(縱向、橫向)</a></li>
    </ul>
    </div>
    </div>
    </body>
    </html>