js带有关闭按钮的弹窗
<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>
<h2>DIV中的其它文字</h2>
<p>DIV中的其他文字</p>
</div>
</body>
</html>
声明:本站所有文章资源内容,如无特殊说明或标注,均为采集网络资源。如若本站内容侵犯了原著者的合法权益,可联系本站删除。