小技巧
来源:互联网 发布:风云武功排名 知乎 编辑:程序博客网 时间:2024/04/28 22:25
复选框全选效果实现
for (var i=0;i<form2.elements.length;i++)
{
var e = form2.elements[i];
if (e.type == 'checkbox')e.checked = form2.chkall.checked;
}
<form name="form2" method=post action="">
<div align="center"><br>
<p>
<input type="hidden" name="foldername " value="">
<input type="hidden" name="url" value="foldername=">
<input type="button" value="向上" class="tx1" onclick="location.href='?foldername='" >
<input type="button" value="返回" class="tx1" onclick="history.go(-1);">
<input type="submit" name="action" class="tx1" value="删除" onClick="return confirm('确认删除吗?');">
<input type="button" onClick="location.href='upfile.asp?path='" class="tx1" value="上传">
<input type="submit" name="action" class="tx1" value="新建文件夹">
</p>
</div>
<table width="544" height="24" border="0" align="center" cellpadding="1" cellspacing="1" bordercolorlight="#FFFFFF" bordercolordark="#000000">
<tr bgcolor="#CCCCCC" align="center">
<!--复选框全选效果实现
for (var i=0;i<form2.elements.length;i++){var e = form2.elements[i];if (e.type == 'checkbox')e.checked = form2.chkall.checked;}
-->
<td width="46" align="center" nowrap>操作<input type="checkbox" name="chkall" onclick="for (var i=0;i<form2.elements.length;i++){var e = form2.elements[i];if (e.type == 'checkbox')e.checked = form2.chkall.checked;}"></td>
<td width="99" align="center">名称</td>
<td width="50" align="right" nowrap>大小.00K</td>
<td width="88" align="center">类型</td>
<td width="111">修改时间</td>
<td width="26" nowrap>属性</td>
<td colspan="2"> </td>
</tr>
<!--调整表格鼠标移动上去与离开的颜色-->
<tr bgcolor="#EEEEEE" onmouseover=this.bgColor='#F3F6FA'; onmouseout=this.bgColor='#EEEEEE'; align="center">
<td width="46"><center><input type="checkbox" name="f" value="/css"></center></td>
<td nowrap width="99"><a href="?foldername=/css">css</a></td>
<td align="right" width="50">0</td>
<td width="88">文件夹</td>
<td nowrap width="111">2006-8-25 16:36:41</td>
<td nowrap width="26">48</td>
<td width="35" nowrap><a onClick="return confirm('确认删除吗?');" href="?foldername=&deletefile=css">删除</a></td>
<td width="33" nowrap></td>
</tr>
</table>
</form>
<div align="center"><br>
<p>
<input type="hidden" name="foldername " value="">
<input type="hidden" name="url" value="foldername=">
<input type="button" value="向上" class="tx1" onclick="location.href='?foldername='" >
<input type="button" value="返回" class="tx1" onclick="history.go(-1);">
<input type="submit" name="action" class="tx1" value="删除" onClick="return confirm('确认删除吗?');">
<input type="button" onClick="location.href='upfile.asp?path='" class="tx1" value="上传">
<input type="submit" name="action" class="tx1" value="新建文件夹">
</p>
</div>
<table width="544" height="24" border="0" align="center" cellpadding="1" cellspacing="1" bordercolorlight="#FFFFFF" bordercolordark="#000000">
<tr bgcolor="#CCCCCC" align="center">
<!--复选框全选效果实现
for (var i=0;i<form2.elements.length;i++){var e = form2.elements[i];if (e.type == 'checkbox')e.checked = form2.chkall.checked;}
-->
<td width="46" align="center" nowrap>操作<input type="checkbox" name="chkall" onclick="for (var i=0;i<form2.elements.length;i++){var e = form2.elements[i];if (e.type == 'checkbox')e.checked = form2.chkall.checked;}"></td>
<td width="99" align="center">名称</td>
<td width="50" align="right" nowrap>大小.00K</td>
<td width="88" align="center">类型</td>
<td width="111">修改时间</td>
<td width="26" nowrap>属性</td>
<td colspan="2"> </td>
</tr>
<!--调整表格鼠标移动上去与离开的颜色-->
<tr bgcolor="#EEEEEE" onmouseover=this.bgColor='#F3F6FA'; onmouseout=this.bgColor='#EEEEEE'; align="center">
<td width="46"><center><input type="checkbox" name="f" value="/css"></center></td>
<td nowrap width="99"><a href="?foldername=/css">css</a></td>
<td align="right" width="50">0</td>
<td width="88">文件夹</td>
<td nowrap width="111">2006-8-25 16:36:41</td>
<td nowrap width="26">48</td>
<td width="35" nowrap><a onClick="return confirm('确认删除吗?');" href="?foldername=&deletefile=css">删除</a></td>
<td width="33" nowrap></td>
</tr>
</table>
</form>
- 小技巧
- 小技巧
- 小技巧
- 小技巧
- 小技巧
- 小技巧
- 小技巧
- 小技巧
- 小技巧
- 小技巧
- 小技巧
- 小技巧:
- 小技巧
- 小技巧
- 小技巧
- 小技巧
- 小技巧
- 小技巧
- ASP.NET中给上传图像加水印(版权信息)
- 用python写的一个对象池类
- 人际关系的55个绝招
- 关于C#中timer类
- 数据绑定以及Container.DataItem几种方式与用法分析
- 小技巧
- C#中父窗口和子窗口之间实现控件互操作
- AFNI数据处理基本步骤
- 你月入多少等于北京5000元?
- DISC行为评估——帮助你了解自己,了解别人,加强沟通
- 情断缘未了
- msn spaces被live了,不爽
- java类装载器
- 我敢说,IE7 RC1不如Firefox