script 控制 div 隐藏或显示

 

<script_>
 function test(str)
 { 
  if(str=="2")
  {
   //licenseForm.nocnt.style.display="none";
   document.getElementById("typeDIV").style.display="none";
  }else{
   //licenseForm.nocnt.style.display="";
   document.getElementById("typeDIV").style.display="";
  }
 }
</script_>
posted @ 2009-01-21 18:07  hb  阅读(1642)  评论(0编辑  收藏  举报