|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<style type="text/css">
#news ul
{
list-style: none;
}
#news ul li
{
float:left;
width:130px;
}
#news ul li a
{
text-decoration: none;
}
#news ul li ul
{
display:none;
margin:0px;
padding:0px;
}
#news ul li ul li a:HOVER
{
background-color: green;
}
}
</style>
<script type="text/javascript">
function list(node)
{
var liNode = node;
var ulNode = liNode.getElementsByTagName("ul")[0];
ulNode.style.display = ulNode.style.display=="block"?"none":"block";
}
</script>
</head>
<body>
<div id="news">
<ul>
<li onmouseover="list(this)" onmouseout="list(this)">
<a href="javascript:void(0);" >娱乐新闻频道</a>
<ul>
<li><a href="javascript:void(0)">娱乐新闻频道1</a></li>
<li><a href="javascript:void(0)">娱乐新闻频道2</a></li>
<li><a href="javascript:void(0)">娱乐新闻频道3</a></li>
<li><a href="javascript:void(0)">娱乐新闻频道4</a></li>
</ul>
</li>
<li onmouseover="list(this)" onmouseout="list(this)">
<a href="javascript:void(0)">体育新闻频道</a>
<ul>
<li><a href="javascript:void(0)">体育新闻频道a</a></li>
<li><a href="javascript:void(0)">体育新闻频道b</a></li>
<li><a href="javascript:void(0)">体育新闻频道c</a></li>
<li><a href="javascript:void(0)">体育新闻频道d</a></li>
</ul>
</li>
</ul>
</div>
</body>
</html> |
|