<html>
<head>
<script>
function turnoff(obj){
document.getElementById(obj).style.display="none";
}
</script>
<title>我是标题</title>
</head>
<body>
<div id="abc"><a href="#" onclick="javascript:turnoff('abc')">点击关闭</a>
<h1>DIV中的其它文字</h1>
<p>DIV中的其他文字</p>
</div>
</body>
</html>