zoukankan      html  css  js  c++  java
  • 一个纵向布局的CSS+JavaScript滑动门代码

    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <title>一个纵向布局的CSS+JavaScript滑动门代码 - www.6a8a.com
    </title>
    <style>
    td,a,body{font-size:9pt;}
    /*--选中的情况下*/
    .DivAround_focus{cursor:pointer;background-color:#A1ACDB;border-right:solid 1px #A1ACDB;border-bottom:solid 1px #333333; border-left:solid 1px #C8CEEA;  border-top:solid 1px #C8CEEA;color:#000000}
    /*未选中时边框颜色*/
    .DivAround_blur{cursor:pointer;background:#4D5C9F;border-right:solid 1px #eeeeee;border-bottom:solid 1px #333333; border-left:solid 1px #798ACC;  border-top:solid 1px #A1ACDB;color:#FFFFFF}
    .DivAround_content{background-color:#A1ACDB;border-right:solid 1px #888888;border-bottom:solid 1px #555555; border-left:0px; border-top:solid 1px #C8CEEA;}
    </style>
    </head>
    <body>
    <table cellpadding="0" cellspacing="0" border="0" align="center" bgcolor="#6271B1">
    <tr><td valign="top">
    <table cellpadding="0" cellspacing="0" border="0"   width="84" id="leftButtonTAble">
    <!--改变下面td 的高来控制整个高度-->
    <tr><td height="20" align="center" class="DivAround_focus" onMouseOver="ChangeFocus(this)">asp</td></tr>
    <tr><td height="20" align="center" class="DivAround_blur" onMouseOver="ChangeFocus(this)">asp.net</td></tr>
    <tr><td height="20" align="center" class="DivAround_blur" onMouseOver="ChangeFocus(this)">php</td></tr>
    <tr><td height="22" align="center" class="DivAround_blur" onMouseOver="ChangeFocus(this)">jsp</td></tr>
    </table>
    </td>
    <td>
    <table width="303"   border="0" cellpadding="0" cellspacing="0" class="DivAround_content">
        <tr>
          <td valign="top"  id="DivAroundContent" height=80><p>dsadsa </p></td>
        </tr>
    </table>
    </td></tr>
    </table>
    <script language="javascript">ChangeFocus(document.getElementById("leftButtonTAble").rows[0].cells[0]);</script>
    
    <br />
    <a href="http://www.6a8a.com">网页代码站</a> - 最专业的代码下载网站 - 致力为中国站长提供有质量的代码!
    </body>
    </html>
    <script language="javascript">
    var AroundInfoArray=new Array();
    AroundInfoArray[0]="asp";
    AroundInfoArray[1]="asp.net";
    AroundInfoArray[2]="php";
    AroundInfoArray[3]="jsp";
    function ChangeFocus(obj)
    {
    for(i=0;i<document.getElementById("leftButtonTAble").rows.length;i++)
    {
    if(document.getElementById("leftButtonTAble").rows[i].cells[0]==obj)
    {
    document.getElementById("leftButtonTAble").rows[i].cells[0].className="DivAround_focus";
    document.getElementById("DivAroundContent").innerHTML=AroundInfoArray[i];
    }else{
    document.getElementById("leftButtonTAble").rows[i].cells[0].className="DivAround_blur";
    }
    }
    }
    </script>
  • 相关阅读:
    让windows10的右键菜单既显示传统cmd又显示powershell
    配置php环境的一个nginx.conf
    windows中启动和终止nginx的两个批处理
    WxWidgets笔记
    安装archlinux的linux命令记录
    window中的attrib命令
    docker中i的作用
    airflow中的两个参数
    sqlite数据库中为字段设置默认值为当前时间
    记oracle使用expdp将数据导出到asm报错
  • 原文地址:https://www.cnblogs.com/wuhuisheng/p/2653769.html
Copyright © 2011-2022 走看看