javascript获取URL传值及控制TreeView的CheckBox的选取

<script>
aa=location.href.split("?");  
if(aa.length>1)
{  
 bb=aa[1].split("&");  
 if(bb[0]=='eventcode=201200801')
 {
     var chkother= document.getElementsByTagName("input");
     for (var i=0;i<chkother.length;i++)
     {
         if( chkother[i].type=='checkbox')
         {
             if(chkother[i].id.indexOf('TreeView1')>-1)
             {
                 chkother[i].checked=false;
             }
         }       
     }
 }
}
</script> 

posted on 2009-04-30 20:06  西风飘雪  阅读(506)  评论(0编辑  收藏  举报

导航