ant tool

http://blog.csdn.net/xiaoli_feng/article/details/4316252
http://www.atool.org/colorpicker.php
http://www.qqtz.com/hao/color.htm

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <style type="text/css">
        *{margin:0; padding:0;font-size:12px;}
        body{ padding-top:20px; padding-left:20px;background:#3B3B3B;}
        .wid240{ width:242px; margin-bottom:20px;}
        .wid180{ width:182px;}
.wid300{ width:300px;position:absolute;top:50%;
left:50%;}
        .tab{ border:1px solid #000;}
        .tab ul{ clear:both; zoom:1;}
        .tab ul:after{ content:""; visibility:hidden; display:block; height:0; clear:both;}
        .tab ul li{ background:#3B3B3B; color:#fff; display:inline; float:left; width:60px; height:26px; line-height:26px; text-align:center; }
        .tab ul li.on{ background:red; color:#fff;}
        .tabList{border:1px solid #000; border-top:none; height:150px;background:red;}
        .tabList .one{ padding:10px; color:#ff0000; display:none;}
        .tabList .block{ display:block;}
    </style>
    <script type="text/javascript">
        function setTab(m,n){
            var menu = document.getElementById("tab"+ m).getElementsByTagName("li");
            var showDiv = document.getElementById("tabList"+ m).getElementsByTagName("div");
            for( var i=0;i<menu.length;i++){
                menu[i].className = i==n ?"on":"";
                showDiv[i].style.display = i==n?"block":"none";
            }
        }
    </script>
</head>
<body>

<div class="wid300">
    <div class="tab" id="tab2">
        <ul>
        <li onclick=setTab(2,0) class="on">hsbc</li>
        <li onclick=setTab(2,1)>iseries</li>
        </ul>
    </div>
    <div class="tabList" id="tabList2">
        <div class="one block">hsbc</div>
        <div class="one">iseries</div>
    </div>
</div>
</body>
</html>

你可能感兴趣的:(tool)