日期:2014-05-17 浏览次数:20393 次
function SelectTreeNode(that) { var c= $(that).siblings("input"); c.attr("checked",!c.attr("checked")); return false; }
------解决方案--------------------
自己看吧,有你要的东东
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" > <head id="Head1" runat="server"> <title></title> <link href="../images/mycss.css" rel="stylesheet" type="text/css" /> <script type="text/javascript" src="/js/jquery-1.4.2.min.js"></script> <script type="text/javascript"> //选中全部 sel_all = function(){ $('input[type="checkbox"]').attr("checked",true); } //取消全选 sel_none = function(){ $('input[type="checkbox"]').attr("checked",false); } </script> <script language="javascript" type="text/javascript"> $(document).ready(function(){ $("#sel").change(function(){ var cid =$("#TypeList option:selected").val(); var state = $("#sel option:selected").val(); var str =$("#SerrchTex").val(); window.location.href="Default.aspx?state="+state+"&cid="+cid+"&str="+escape(str); }) var str = document.location.href; var urlList = str.split("="); var id = urlList[1]; //alert(id); $("#cpfb_"+id).css("color","#FF0000"); }) function sel() { var type=document.getElementById("SertypeList").options[document.getElementById("SertypeList").selectedIndex].value; if(type==1) { document.getElementById("TypeList").style.display='block'; document.getElementById("SerrchTex").style.display='none'; } else { document.getElementById("TypeList").style.display='none'; document.getElementById("SerrchTex").style.display='block'; } } function Ser_click() { var re=/[^0-9]/; //var type=document.getElementById("SertypeList").options[document.getElementById("SertypeList").selectedIndex].value; var type2=document.getElementById("TypeList").options[document.getElementById("TypeList").selectedIndex].value; window.location.href="Default.aspx?cid="+type2+"&str="+document.getElementById("SerrchTex").value; } </script> </head> <body text="#333333" link="#333333" vlink="#333333" alink="#333333" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0"> <form id="form1" runat="server"> <table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#3A76AF"> <tr> <td colspan=&quo