添加時(shí)間:2012/9/28 10:13:30 編輯:奇億網(wǎng)站建設(shè)公司
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>兼容多瀏覽器的顯示隱藏層</title>
<script language="javascript">
function showCity_div()
{
document.getElementById("City_div").style.display = "block";
}
function hideCity_div()
{
document.getElementById("City_div").style.display = "none";
}
</script>
<style type="text/css">
#City_div{
height:200px;
border:1px solid #0099CC;
width:300px;
}
</style>
</head>
<body>
<a href="#" onMouseOver="showCity_div()">顯示層</a>
<a href="#" onMouseOver="hideCity_div()">隱藏層</a>
<div id="City_div">
兼容多瀏覽的顯示隱藏層,內(nèi)容由廣州網(wǎng)站提供http://www.829e.cn。
</div>
</body>
</html>