惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

S
SegmentFault 最新的问题
博客园 - 三生石上(FineUI控件)
WordPress大学
WordPress大学
博客园 - 【当耐特】
月光博客
月光博客
Vercel News
Vercel News
D
Docker
I
InfoQ
Apple Machine Learning Research
Apple Machine Learning Research
博客园 - 叶小钗
MongoDB | Blog
MongoDB | Blog
GbyAI
GbyAI
有赞技术团队
有赞技术团队
雷峰网
雷峰网
博客园 - 聂微东
小众软件
小众软件
Y
Y Combinator Blog
腾讯CDC
L
LangChain Blog
The GitHub Blog
The GitHub Blog
宝玉的分享
宝玉的分享
Stack Overflow Blog
Stack Overflow Blog
大猫的无限游戏
大猫的无限游戏
T
The Blog of Author Tim Ferriss

博客园 - gengen

asp.net程序中最常用的三十三种编程代码 js+xml dataset读取xml flash实现 js+xml DataList分页(与Repeater控件的例子相似,都以pubs数据库中的authors为例) 简单上传 Datalist分页 datagrid 绑定与简单分页 asp.net 常用文件上传下载 转的 批量删除 移动控件 可拖放控件的使用 国家公务员考完了 RegularExpressionValidator javascript中模拟hashtable对数组进行快速查找 网页中提交按钮倒记时的实现 原作:mlg js技巧 WEB标准开发中的一些基本用法(连载中...)
下拉
gengen · 2007-01-11 · via 博客园 - gengen

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<!-- Author:Stupid CAT ICQ:278306428 BLOG:http://blog.sina.com.cn/u/1234091924 -->

<head>

<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />

<meta name="author" content="Stupid CAT" />

<title>Stupid CAT Pull-down Menu v1.0</title>

<style type="text/css">

html,body{

   background:#000000;

   height:100%;

   font-size:12px;

   font-family:Arial, Helvetica, sans-serif;

   color:#333333;

   margin:20px auto;

   overflow:hidden;

   text-align:center;}

/*菜单容器menu*/

div#menu{

   width:100%;

   height:34px;

   padding:0px 0px 0px 5px;}

/*一级菜单*/

div#menu div{

   width:125px;

   height:20px;

   float:left;

   text-transform:capitalize;

   background:#cccccc;

   padding:5px 0px 0px 0px;

   margin:4px 1px 0px 0px;}

/*二级菜单*/

div#menu div div{

   width:125px;

   height:20px;

   border-bottom:1px #333333 solid;

   background:#666666;

   margin-top:-4px;

   cursor:pointer;

   display:none;}

/*二级菜单中特殊样式(可选)*/

div#menu div div.div1{

   margin-top:3px;

   border-top:1px #333333 solid;}

</style>

</head>

<body>

<div id="menu">

<div>menu item1<div class="div1">sub menu1</div><div>sub menu2</div><div>sub menu3</div><div>sub menu4</div></div>

<div>menu item2<div class="div1">sub menu1</div><div>sub menu2</div><div>sub menu3</div></div>

<div>menu item3<div class="div1">sub menu1</div><div>sub menu2</div></div>

<div>menu item4<div class="div1">sub menu1</div><div>sub menu2</div><div>sub menu3</div><div>sub menu4</div></div>

<div>menu item5<div class="div1">sub menu1</div><div>sub menu2</div><div>sub menu3</div></div>

<div>menu item6<div class="div1">sub menu1</div><div>sub menu2</div><div>sub menu3</div></div>

</div>

<script type="text/javascript">

var menuItem=document.getElementById("menu").getElementsByTagName("div");

for(i=0;i<menuItem.length;i++){

    menuItem[i].onmouseover=function(){

        var subMenu=this.getElementsByTagName("div");

        for(j=0;j<subMenu.length;j++){

        subMenu[j].style.display="block";

        subMenu[j].onmouseover=function(){this.style.background="#999999";this.style.color="#000000";};

        subMenu[j].onmouseout=function(){this.style.background="#666666";this.style.color="#333333";};}

        this.style.background="#666666"};

    menuItem[i].onmouseout=function(){

        var subMenu=this.getElementsByTagName("div");

        for(j=0;j<subMenu.length;j++){

        subMenu[j].style.display="none";}

        this.style.background="#cccccc"};

    }

</script>

</body>

</html>