zoukankan      html  css  js  c++  java
  • JavaScript+CSS+DIV实现下拉菜单示例

    <!DOCTYPE html>
    <html>
      <head>
        <title>下拉菜单示例</title>
    	<script language="javaScript">
    	    function show(menu)
    	        {document.getElementById(menu).style.visibility="visible";}
    	    function hide(){
    	        document.getElementById("menu1").style.visibility="hidden";
    	        document.getElementById("menu2").style.visibility="hidden";
    	        document.getElementById("menu3").style.visibility="hidden";
    	    }
    	</script>
      </head>
      
      <body>
       <table>
           <tr bgcolor="#9999FF"align="center">
           <td width="120"onMouseMove="show('menu1')"onMouseOut="hide()">系列课程</td>
           <td width="120"onMouseMove="show('menu2')"onMouseOut="hide()">教学课程</td>
           <td width="120"onMouseMove="show('menu3')"onMouseOut="hide()">课程大纲</td>
           </tr>
       </table>
       <div id="menu1"onMouseMove="show('menu1')"onMouseOut="hide()"
           style="background:#9999FF;position:absolute;left:12;top:38;120;visibility:hidden">
           <span>c++程序设计</span><br>
           <span>java程序设计</span><br>
           <span>c#程序设计</span><br>
       </div>
       <div id="menu2"onMouseMove="show('menu2')"onMouseOut="hide()"
           style="background:#9999FF;position:absolute;left:137;top:38;120;visibility:hidden">
           <span>c++课件</span><br>
           <span>java课件</span><br>
           <span>c#课件</span><br>
       </div>
       <div id="menu3"onMouseMove="show('menu3')"onMouseOut="hide()"
           style="background:#9999FF;position:absolute;left:260;top:38;120;visibility:hidden">
           <span>c++教学大纲</span><br>
           <span>java教学大纲</span><br>
           <span>c#教学大纲</span><br>
       </div>
      </body>
    </html>
    

      

    时间最会骗人,但也能让你明白,这个世界上没有什么是不能失去的,留下的尽力珍惜,得不到的都不重要
  • 相关阅读:
    . Embedding Python in Another Application¶
    hive wiki
    PC机与ARM板的聊天软件
    Hadoop hive 运行examples例子 andy030611的日志 网易博客
    Notes on Ubuntu (Linux) computing
    数据结构利器之私房STL(上)
    Embedding Python in C/C++: Part I CodeProject
    linux下dup2的实现
    单台服务器上安装Hadoop和Hive十五分钟教程
    Data Structures with C++ Using STL Chapter 3算法概述笔记
  • 原文地址:https://www.cnblogs.com/www-x/p/7728691.html
Copyright © 2011-2022 走看看