- <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>
复制代码 生成后 每次只能隐藏一个 怎么能让点一个隐藏一个 看了半天就是看不出来 问题
帮帮小弟 啊! 急啊!!!! |