wjhome
注册会员

UID 79424
精华
0
积分 151
帖子 81
金钱 151 喜悦币
威望 0
人脉 0
阅读权限 20
注册 2006-9-2
状态 离线
|
[广告]: q
m
``救命啊!!!
<html>
<head>
<title>Test</title>
<script language='javascript'>
function c()
{
this.box = document.createElement('div');
this.box.className = 'box';
this.box.onclick = cc;
this.box.modObj = this;
var b = document.getElementsByTagName('body')[0];
b.appendChild(this.box);
}
function cc()
{
this.modObj.box.style.display = 'none';
}
</script>
<style type="text/css">
<!--
.box {
background-color: #DEEEFE;
height: 100px;
width: 100px;
border: 1px dashed #0066FF;
}
-->
</style>
</head>
<body>
<input type='button' onclick='c()' value='Click'></input>
</body>
</html> 生成后 每次只能隐藏一个 怎么能让点一个隐藏一个 看了半天就是看不出来 问题
帮帮小弟 啊! 急啊!!!!
|
|