61,128
社区成员




<!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">
<head>
<title>dhtml.div.simpleMenuBoard.html</title>
<meta name="generator" content="editplus" />
<meta name="author" content="Gao YiXiang" />
<meta name="email" content="yixianggao@126.com" />
<meta name="keywords" content="javascript dhtml dom" />
<meta name="description" content="I love web development." />
<style type="text/css">
.board
{
display: none;
position: absolute;
border: 1px solid red;
width: 100px;
background-color: #eeeeff;
}
</style>
</head>
<body>
<a id="aProducts" href="#">21 种产品</a><br />
<div id="div1" class="board">
<a href="#">产品 01</a><br />
<a href="#">产品 01</a><br />
<a href="#">产品 01</a><br />
<a href="#">产品 01</a><br />
</div>
<span>
特价商品展示01<br />
特价商品展示01<br />
特价商品展示01<br />
特价商品展示01<br />
特价商品展示01<br />
特价商品展示01<br />
特价商品展示01<br />
特价商品展示01<br />
特价商品展示01<br />
</span>
<script type="text/javascript">
<!--
var hiddenId;
var iMilliSeconds = 500;
function hiddenBoard()
{
div1.style.display = "none";
}
aProducts.onmouseover = function()
{
div1.style.display = "block";
}
aProducts.onmouseout = function()
{
hiddenId = window.setTimeout(hiddenBoard, iMilliSeconds);
}
div1.onmouseover = function()
{
window.clearTimeout(hiddenId);
}
div1.onmouseout = function()
{
hiddenId = window.setTimeout(hiddenBoard, iMilliSeconds);
}
//-->
</script>
</body>
</html>