随笔分类 -  JS-JQ

JS效果 JQ特效
摘要:http://www.iteye.com/topic/276661http://home.blueidea.com/apps.php?do=bxna&ac=view&feedid=12443 阅读全文

posted @ 2011-09-22 10:29 shosky 阅读(195) 评论(0) 推荐(0)

摘要:// JavaScript Documentvar keyStr = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";//加密function base64encode(Str) {Str = escape(Str);var output = "";var chr1, chr2, chr3 = "";var enc1, enc2, enc3, enc4 = "";var i = 0;do {chr1 = Str.charCode 阅读全文

posted @ 2011-09-09 11:09 shosky 阅读(341) 评论(0) 推荐(0)

摘要:Response.Write("<script language =javascript>window.open('Login.aspx','_parent')</script>""); 阅读全文

posted @ 2011-08-02 09:24 shosky 阅读(142) 评论(0) 推荐(0)

摘要:<script language="javascript"> function funcChina(){ var obj = document.form1.txtName.value; if(/.*[\u4e00-\u9fa5]+.*$/.test(obj)) { alert("不能含有汉字!"); return false; } return true; } </script> <form name="form1"><input type="text" name=&quo 阅读全文

posted @ 2011-07-21 19:07 shosky 阅读(18463) 评论(1) 推荐(0)

摘要:<scriptlanguage="javascript"type="text/javascript"><!--//functionthatcreatestheform,addssomeelements//andthensubmitsitfunctionselect(id){vart=document.getElementById("t"+id);vard=document.getElementById("d"+id);varsubmitForm=getNewSubmitForm();createN 阅读全文

posted @ 2011-07-14 20:59 shosky 阅读(533) 评论(0) 推荐(0)

摘要:原来是<input name="submit" type="submit" value="提交">作怪。在一个完整表单中,不应有名字为action或submit的标签,否则将会产生“对象不支持此属性和方法”的ie错误。 阅读全文

posted @ 2011-07-04 10:31 shosky 阅读(146) 评论(0) 推荐(0)

摘要:下面是showModalDialog/showModelessDialog使用例子,父窗口向子窗口传递值,子窗口设置父窗口的值,子窗口关闭的时候返回值到父窗口.关闭刷新父窗口,希望对象大家有所帮助.(一)showModalDialog使用例子,父窗口向子窗口传递值,子窗口设置父窗口的值,子窗口关闭的时候返回值到父窗口. farther.html --------------------------- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML> <HE 阅读全文

posted @ 2011-06-17 16:34 shosky 阅读(860) 评论(0) 推荐(0)

摘要:js 正则判断字符串是否为字母或数字 function checknum(value) { var Regx = /^[A-Za-z0-9]*$/; if (Regx.test(value)) { return true; } else { return false; } } 阅读全文

posted @ 2011-06-13 21:05 shosky 阅读(23175) 评论(0) 推荐(1)

摘要:1. 加入收藏:<ahref="javascript:window.external.AddFavorite(location.href,document.title);">加入收藏</a>2. 设为首页:<aonclick="this.style.behavior='url(#default#homepage)';this.setHomePage('http://www.jinry.com/');"href="#">设为首页</a><inputTY 阅读全文

posted @ 2011-03-09 15:24 shosky 阅读(216) 评论(0) 推荐(0)

摘要:<!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><meta htt... 阅读全文

posted @ 2010-11-03 18:34 shosky 阅读(4247) 评论(0) 推荐(0)

导航