| 
                     | 
                    
                        主题:  请帮我看一下这个JS函数哪里有问题!
                     | 
                
            
                        
                
                    
                          书同人 
                        职务:普通成员 
                        等级:1 
                        金币:0.0 
                        发贴:179 
                        注册:2002/5/26 9:57:33 
                     | 
                    
                        
                            
                            #12004/2/18 14:35:56 
                            
                                function see(httpname,id){     if(id.checked==true){         if (httpname.style.display=='boock'){             httpname.style.display='none'         }else{             httpname.style.display='block';         }     }else{         httpname.style.display='none'     } }
  '红色部份为调用 <table width="95%" border="1" cellspacing="0" cellpadding="0" bordercolorlight="#FFFFFF" bordercolordark=green> <form name="form2" method="post"> <tr>  <td width="17%" height="25" align="center">如要修改请勾选</td> <td width="26%" align="center">链接资源名称</td> <td width="30%" align="center">链接资源网址</td> <td height="25" align="center">链接资源说明</td> </tr> <% do while not rs.eof %> <tr>  <td height="25" align="center"><input name="id<%=rs("id")%>" type="checkbox" id="id<%=rs("id")%>" value="<%=rs("id")%>" onClick="see('http<%=rs("id")%>','id<%=rs("id")%>')">  </td> <td align="center"><%=rs("http_linkname")%></td> <td align="center"><%=rs("http_link")%></td> <td height="25" align="center"><%if rs("http_tab")<>"" and not isnull(http_tab) then response.write rs("http_tab") else response.write "无" %> </td> </tr> 要实现的是如果CHECKBOX被选中,则该TR的DISPLAY为BLOCK <tr style="display:none" id="http<%=rs("id")%>">  <td height="25" align="center">请输入修改的信息</td> <td height="25" align="center"><input type="text" name="textfield"></td> <td height="25" align="center"><input type="text" name="textfield2"></td> <td height="25" align="center"><input type="text" name="textfield3"></td> </tr>      <% rs.movenext      loop      %> <tr>  <td height="25" colspan="4" align="center"><input type="button" name="Submit2" value="如果要修改请点击前面的复选框">    <input type="button" name="Submit3" value="删除" onclick="form2.action='?action=delete_nexttype';form2.submit()">  <input name="id" type="hidden" id="id"> <input name="http_name" type="hidden" id="http_name"></td> </tr> </form> </table>
                                
                                
                                
                             
                            
                            
                         
                     | 
                
                        
                
                    
                          =ridincal= 
                        职务:管理员 
                        等级:7 
                        金币:20.0 
                        发贴:5886 
                        注册:2004/1/13 11:47:04 
                     | 
                    
                        
                            
                            #22004/2/18 15:14:53 
                            
                                调用函数时参数不要用string: 
onClick="see(http<%=rs("id")%>,id<%=rs("id")%>)" 
                                
                                
                                
                             
                            
                            
                         
                     | 
                
                        
                
                    
                          雨中的太阳 
                        职务:普通成员 
                        等级:1 
                        金币:0.0 
                        发贴:75 
                        注册:2004/2/17 10:03:00 
                     | 
                    
                        
                            
                            #32004/2/18 17:58:22 
                            
                                function see(httpname,id){ if(document.all(id).checked==true){ if (document.all(httpname).style.display=='boock'){ document.all(httpname)..style.display='none' }else{ document.all(httpname)..style.display='block'; } }else{ document.all(httpname)..style.display='none' } } 
                                
                                
                                
                             
                            
                            
                         
                     | 
                
                        
                
                    
                          书同人 
                        职务:普通成员 
                        等级:1 
                        金币:0.0 
                        发贴:179 
                        注册:2002/5/26 9:57:33 
                     | 
                    
                        
                            
                            #42004/2/19 13:33:53 
                            
                                ridincal在上个帖子中说  引用:  调用函数时参数不要用string:
 
onClick="see(http<%=rs("id")%>,id<%=rs("id")%>)" 
  
   为什么不能用STRING呢?它不是字符串吗?
                                
                                
                                
                              
                            
                            
                         
                     | 
                
                        
                
                    
                          =ridincal= 
                        职务:管理员 
                        等级:7 
                        金币:20.0 
                        发贴:5886 
                        注册:2004/1/13 11:47:04 
                     | 
                    
                        
                            
                            #52004/2/19 14:14:30 
                            
                                可你的函数定义中是当作对象来用的
                                
                                
                                
                             
                            
                            
                         
                     |