易截截图软件、单文件、免安装、纯绿色、仅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就这么回事 (JS基础知识整理)

JavaScript就这么回事 (JS基础知识整理)
1 创建脚本块  
1: <script language=”JavaScript”>  
2: JavaScript code goes
here  
3: </script>
2 隐藏脚本代码  
1: <script language=”JavaScript”>  
2: <!&ndas ......

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 ......

javascript验证邮箱格式代码


用一个正侧表达式在javascript中验证就是咯!
<script language='javascript'>
function chkMail(){
if(document.form1.email.value=''){
alert("请填写邮箱地址!");
document.form1.email.focus();
return false;
}
//开始验证
var email = document.form1.email.value;
var pattern = /^([a-zA-Z0-9_-]) ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号