首页 新闻 赞助 找找看

js问题紧急求助

1
悬赏园豆:5 [已关闭问题] 关闭于 2012-08-08 15:45

<script>


       //机型提示
       function ShowProucted() {

           var ShowProucted = new Ext.Window({

               title: '机型选择',
               id: 'ShowProuctedWindow',
               width: 300,
               height: 500,
               autoHeight: true


           })


           document.getElementById("selectProduct").style.display = "block";
           ShowProucted.add(document.getElementById("selectProduct"));
           ShowProucted.show();


       }
   </script>

这是封装的方法

   <div id="selectProduct"style="text-align: inherit; width:280px; height:450px; float: left; overflow-y: auto; display:none"/> 这是个div

为什么第一次执行方法是成功的
进行第二次 执行方法的时候 说是找不到

   <div id="selectProduct"style="text-align: inherit; width:280px; height:450px; float: left; overflow-y: auto; display:none"/> 这个div

在线等谢谢

不起名字了的主页 不起名字了 | 初学一级 | 园豆:25
提问于:2011-06-25 13:19
< >
分享
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册