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

JavaScript实现 panel的显示隐藏

<script language="javascript">
    function closeOpen(Panel) {
        var test = document.getElementById('Panel');
        if (test.style.display == "none") {
            test.style.display = "";
        }
        else {
            test.style.display = "none";
        }
    }
</script>
  <input id="Button1" type="button" value="显示隐藏panel" onclick="closeOpen('Panel1')"  style="background-image: url('images/title_bg_hide.gif');" />


相关文档:

JavaScript 模擬Formula @UrlQueryString

  一般我們寫Notes For Web 程式時很長用到URL傳遞一些資訊,在Release 6 多支援了@UrlQueryString的公司來直接抓取URL參數,真是好用的公式阿.不過使用這個當然還是吃Server的資源(效能),能用 JavaScript ......

如何用JavaScript打印Web页面

事实上IE已经为我们内嵌了WebBrowser控件,已经能够很好的支持我们常用的打印功能了。通过该控件的功能调用,用户可以将当前的Html页面输出到打印机上,用户只需要将要打印的数据组织成Html页面,然后调用WebBrowser的打印功能就可以很好的实现所见即所得的打印功能。不过这种打印存在的缺点就是打印精度不够,如果需要精确 ......

Javascript错误代码解释大全

JScript 运行时错误
  JScript 运行时错误是指当 JScript 脚本试图执行一个系统不能运行的动作时导致的错误。当正在运行脚本、计算变量表达式、或者正在动态分配内存时出现 JScript 运行时错误时。
错误号 描述
5029 数组长度必须为一有限正整数
5030 必须赋给数组长度一个有限正数
5028 需要 Array 或 arguments ......

JavaScript Cookie 的正确用法

function getCookies(name)
{
var arr = document.cookie.match(new RegExp(&quot;(^| )&quot;+name+&quot;=([^;]*)(;|$)&quot;));
if(arr != null) return unescape(arr[2]); return &#039;&#039;;
}
function setCookie(name, value, expires,
function getCookies(name)
{
var a ......

Client Side JavaScript Validation

Struts Validator Framework provides an easy-to-use mechanism for performing client-side validation. It's very useful to validate some fields on the client-side before sending the data to the server for processing. By this way we can ensure that the data send to the server is valid. Performing valida ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号