[ASP]精华代码(6)
%>
1、用户界面:
复制代码 代码如下:
<script language="JavaScript">
function CheckAll(form)
{for (var i=0;i<form.elements.length;i++)
{var e = form.elements[i];
if (e.name != 'chkall')
e.checked = form.chkall.checked;
}
}
</script>
</head>
<body>
<form method="post" action="del.asp" name="form1">
<table>
<tr>
<td ><input type="checkbox" value="111" name="TradeName">电子邮件1</td>
</tr>
<tr>
<td ><input type="checkbox" value="111" name="TradeName">电子邮件2</td>
</tr>
<tr>
<td ><input type="checkbox" value="111" name="TradeName">电子邮件3</td>
</tr>
<tr>
<td ><input type="checkbox" value="111" name="TradeName">电子邮件4</td>
</tr>
<tr>
<td ><input type="checkbox" value="111" name="TradeName">电子邮件5</td>
</tr>
<tr>
<td ><input type="checkbox" value="111" name="TradeName">电子邮件6</td>
</tr>
<tr>
<td bgcolor="#F1FBFC" height="25" colspan="2">
<p align="left"><input type="checkbox" name="chkall" value="on" onclick="CheckAll(this.form)"><font color="#FF9900">选中所有显示的消息</font></p>
内容版权声明:除非注明,否则皆为本站原创文章。