脚本函数里面怎么申明static变量 可以定义一个<input type=hidden>放到这个,这样这个页面就可以无限次使用了,并且还可以传到下个页面和static变量稍微差不多了,就是关了就没了。 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 <b>是不是要这样的功能?</b><script language="JavaScript"><!--function chkClk(obj){ var chks=document.getElementsByName(obj.name); //alert(chks.length); if(obj.flag=="main"){ for(var i=1;i<chks.length;i++) chks[i].checked=obj.checked; }}//--></script><input type="checkbox" onclick="chkClk(this)" name="type1" flag="main">typetext<li><input type="checkbox" onclick="chkClk(this)" name="type1">typetext</li><li><input type="checkbox" onclick="chkClk(this)" name="type1">typetext</li><li><input type="checkbox" onclick="chkClk(this)" name="type1">typetext</li><li><input type="checkbox" onclick="chkClk(this)" name="type1">typetext</li><li><input type="checkbox" onclick="chkClk(this)" name="type1">typetext</li><li><input type="checkbox" onclick="chkClk(this)" name="type1">typetext</li><br><br><input type="checkbox" onclick="chkClk(this)" name="type2" flag="main">typetext<li><input type="checkbox" onclick="chkClk(this)" name="type2">typetext</li><li><input type="checkbox" onclick="chkClk(this)" name="type2">typetext</li><li><input type="checkbox" onclick="chkClk(this)" name="type2">typetext</li><li><input type="checkbox" onclick="chkClk(this)" name="type2">typetext</li><li><input type="checkbox" onclick="chkClk(this)" name="type2">typetext</li><li><input type="checkbox" onclick="chkClk(this)" name="type2">typetext</li> 不知道为什么Point和Line这两个按钮变得不行了 有人知道DOM是什么吗? js提示没有定义,怎么解决 怎么动态添加下拉框 JavaScript实现的合并排序算法不正确 请教大家一个问题,关于javascript构造函数的问题 [玻璃鱼V]JS如果判断光标在哪一个asp:TextBox控件中 在JavaScript中,用一个自定义日期减去当今日期的代码怎么写? 如何实现submit到javascrip处理后再提交到form。 嵌套表格的隐藏和显示问题?在线等待!!很急 javascript有一些命今 这么简单的代码竟然出现脚本错误!
<script language="JavaScript">
<!--
function chkClk(obj){
var chks=document.getElementsByName(obj.name);
//alert(chks.length);
if(obj.flag=="main"){
for(var i=1;i<chks.length;i++)
chks[i].checked=obj.checked;
}
}
//-->
</script><input type="checkbox" onclick="chkClk(this)" name="type1" flag="main">typetext
<li><input type="checkbox" onclick="chkClk(this)" name="type1">typetext</li>
<li><input type="checkbox" onclick="chkClk(this)" name="type1">typetext</li>
<li><input type="checkbox" onclick="chkClk(this)" name="type1">typetext</li>
<li><input type="checkbox" onclick="chkClk(this)" name="type1">typetext</li>
<li><input type="checkbox" onclick="chkClk(this)" name="type1">typetext</li>
<li><input type="checkbox" onclick="chkClk(this)" name="type1">typetext</li>
<br><br>
<input type="checkbox" onclick="chkClk(this)" name="type2" flag="main">typetext
<li><input type="checkbox" onclick="chkClk(this)" name="type2">typetext</li>
<li><input type="checkbox" onclick="chkClk(this)" name="type2">typetext</li>
<li><input type="checkbox" onclick="chkClk(this)" name="type2">typetext</li>
<li><input type="checkbox" onclick="chkClk(this)" name="type2">typetext</li>
<li><input type="checkbox" onclick="chkClk(this)" name="type2">typetext</li>
<li><input type="checkbox" onclick="chkClk(this)" name="type2">typetext</li>