<!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>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
<style type="text/css">
#ff{height:600px}
#eeee a:visited{text-decoration:none; font-size:12px; color:#999999}
</style>
</head>
<script language="javascript">
function opendiv(div_id)
{
if(div_id.style.display=="none")
{
for(var i=0;i<document.getElementById("wholediv").childNodes.length;i++)
{
var obj=document.getElementById("wholediv").childNodes[i];
if(obj.tagName=="DIV")
{
obj.style.display="none";
}
}
div_id.style.display="";
}
else
{
for(var i=0;i<document.getElementById("wholediv").childNodes.length;i++)
{
var obj=document.getElementById("wholediv").childNodes[i];
if(obj.tagName=="DIV")
{
obj.style.display="none";
}
}
}
}
</script>
<body>
<div id="wholediv">
<a οnclick="javascript:opendiv(d1)">aaaa</a><br /><div id="d1" style="display:none; background-color:#99CC66; height:900px; width:300px;">hgfhsdfasdfasdfsadfsdfsdfasdfasdfsdfasdfsdfsdf</div>
<a οnclick="javascript:opendiv(d2)">aaaa</a><br /><div id="d2" style="display:none; background-color:#99CC66; height:900px; width:300px;">hgfhsdfasdfasdfsadfsdfsdfasdfasdfsdfasdfsdfsdf</div>
</div>
</div>
</body>
</html>