易截截图软件、单文件、免安装、纯绿色、仅160KB

javascript复选框选择

         string cbSelectOnClickJS = @"
            if(this.checked)
            {
                document.getElementById('" + hidSelected.ClientID + @"').value += ',' + this.value;
            }
            else
            {
                document.getElementById('" + hidSelected.ClientID + @"').value
                = document.getElementById('" + hidSelected.ClientID + @"').value
                .replace(',' + this.value,'');
            }";//else表示去掉最后一个逗号
        checkBox.Attributes.Add("onclick", cbSelectOnClickJS);
异常的使用方法
  string strIsSpecial = "";  //判断是否特殊的选人
                try
                {
                    strIsSpecial = dic["IsSpecial"];
                }
                catch (Exception e) { }


相关文档:

JavaScript 获取对象的高度和宽度详细说明

scrollHeight: 获取对象的滚动高度。
scrollLeft:设置或获取位于对象左边界和窗口中目前可见内容的最左端之间的距离
scrollTop:设置或获取位于对象最顶端和窗口中可见内容的最顶端之间的距离
scrollWidth:获取对象的滚动宽度
offsetHeight:获取对象相对于版面或由父坐标 offsetParent 属性指定的父坐标的高度
offsetL ......

Javascript中最常用的55个经典技巧

 1. oncontextmenu="window.event.returnValue=false" 将彻底屏蔽鼠标右键
<table border oncontextmenu=return(false)><td>no</table> 可用于Table
2. <body onselectstart="return false"> 取消选取、防止复制
3. onpaste="return false" 不准粘贴
4. oncopy="return false;" oncut="re ......

javascript建表

 <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>
<!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 ru ......

JavaScript导出excel word……

这里 是三种导出,网上搜的,excel导出还行,word就不好了,不是我想要的那种,但是还是贴出来了 嘿嘿,希望有更好的 告诉我下 谢谢,这里的word导出时利用复制黏贴原理,感觉很不好,有一种导出excel也是如此,这里还有导出表格信息的,不是复制黏贴%
  <script language="javascript">
 /**//*
*
&n ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号