5
567567
Unregistered / Unconfirmed
GUEST, unregistred user!
网页代码如下:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>请选择</title>
<SCRIPT>
function selectAll() {
var items = document.getElementsByName("xuanze"
if (items.length == 1)
{
form1.xuanze.checked = form1.selAll.checked;
return;
}
for (i=0;i<items.length;i++) {
form1.xuanze.checked = form1.selAll.checked;
}
}
function actSub(actFlag) {
//处理提交
}
</SCRIPT>
</head>
<body>
<form name="form1" method="post" action="/tijiao">
<table width="750" border="1" align="center" cellpadding="0" cellspacing="0" height="205">
<tr class="header">
<td align="center" height="16">请选择</td>
<td align="center" height="16">种类</td>
</tr>
<tr class="highLight">
<td align="center" height="16"><input type="checkbox" name="xuanze" ></td>
<td align="center" height="16">1</td>
</tr>
<tr class="highLight">
<td align="center" height="16"><input type="checkbox" name="xuanze" ></td>
<td align="center" height="16">2</td>
</tr>
<tr class="highLight">
<td align="center" height="16"><input type="checkbox" name="xuanze"</td>
<td align="center" height="16">3</td>
</tr>
<tr class="highLight">
<td align="center" height="18"><input type="checkbox" name="xuanze" ></td>
<td align="center" height="18">4</td>
</tr>
<tr class="highLight">
<td align="center" height="19"><input type="checkbox" name="xuanze"></td>
<td align="center" height="19">5</td>
</tr>
<tr class="highLight">
<td align="center" height="16"><input type="checkbox" name="xuanze"></td>
<td align="center" height="16">6</td>
</tr>
<tr class="highLight">
<td align="center" height="16"><input type="checkbox" name="xuanze"></td>
<td align="center" height="16">7</td>
</tr>
<tr class="highLight">
<td align="center" height="17"><input type="checkbox" name="xuanze"></td>
<td align="center" height="17">8</td>
</tr>
<tr class="highLight">
<td align="center" height="17"><input type="checkbox" name="xuanze"></td>
<td align="center" height="17">9</td>
</tr>
<tr class="highLight">
<td align="center" height="16"><input type="checkbox" name="xuanze"></td>
<td align="center" height="16">10</td>
</tr>
</table>
<INPUT type="checkbox" name="selAll" id="selAll" onclick="selectAll()"><label for="selAll" style="cursor: hand"> 选中所有</label>
<input type="button" value="确认提交" onclick="actSub('1')"/>
</form1>
</form>
</body>
</html>
1、50分 怎样用程序自动选择 选中所有 然后提交?????
用IE打开此网页,而不是将此网页嵌入到自己的程序里或是显示在自己的程序里
2、50分 如果是在 iframe name="main" 框架网页内 如何做???
大侠们帮帮忙吧!!!!! 急呀!!!!!!
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>请选择</title>
<SCRIPT>
function selectAll() {
var items = document.getElementsByName("xuanze"
if (items.length == 1)
{
form1.xuanze.checked = form1.selAll.checked;
return;
}
for (i=0;i<items.length;i++) {
form1.xuanze.checked = form1.selAll.checked;
}
}
function actSub(actFlag) {
//处理提交
}
</SCRIPT>
</head>
<body>
<form name="form1" method="post" action="/tijiao">
<table width="750" border="1" align="center" cellpadding="0" cellspacing="0" height="205">
<tr class="header">
<td align="center" height="16">请选择</td>
<td align="center" height="16">种类</td>
</tr>
<tr class="highLight">
<td align="center" height="16"><input type="checkbox" name="xuanze" ></td>
<td align="center" height="16">1</td>
</tr>
<tr class="highLight">
<td align="center" height="16"><input type="checkbox" name="xuanze" ></td>
<td align="center" height="16">2</td>
</tr>
<tr class="highLight">
<td align="center" height="16"><input type="checkbox" name="xuanze"</td>
<td align="center" height="16">3</td>
</tr>
<tr class="highLight">
<td align="center" height="18"><input type="checkbox" name="xuanze" ></td>
<td align="center" height="18">4</td>
</tr>
<tr class="highLight">
<td align="center" height="19"><input type="checkbox" name="xuanze"></td>
<td align="center" height="19">5</td>
</tr>
<tr class="highLight">
<td align="center" height="16"><input type="checkbox" name="xuanze"></td>
<td align="center" height="16">6</td>
</tr>
<tr class="highLight">
<td align="center" height="16"><input type="checkbox" name="xuanze"></td>
<td align="center" height="16">7</td>
</tr>
<tr class="highLight">
<td align="center" height="17"><input type="checkbox" name="xuanze"></td>
<td align="center" height="17">8</td>
</tr>
<tr class="highLight">
<td align="center" height="17"><input type="checkbox" name="xuanze"></td>
<td align="center" height="17">9</td>
</tr>
<tr class="highLight">
<td align="center" height="16"><input type="checkbox" name="xuanze"></td>
<td align="center" height="16">10</td>
</tr>
</table>
<INPUT type="checkbox" name="selAll" id="selAll" onclick="selectAll()"><label for="selAll" style="cursor: hand"> 选中所有</label>
<input type="button" value="确认提交" onclick="actSub('1')"/>
</form1>
</form>
</body>
</html>
1、50分 怎样用程序自动选择 选中所有 然后提交?????
用IE打开此网页,而不是将此网页嵌入到自己的程序里或是显示在自己的程序里
2、50分 如果是在 iframe name="main" 框架网页内 如何做???
大侠们帮帮忙吧!!!!! 急呀!!!!!!