摘要: Function ValidateEmailAddr(strEmailAddr) Dim re Set re = new RegExp re.IgnoreCase = falsere.global = falsere.pattern = "^\w+@[a-zA-Z_]+?\.[a-zA-Z]{2,3}$" ValidateEmailAddr=re.Test(strEmailAddr) end fu... 阅读全文
posted @ 2010-07-21 13:30 龙圆 阅读(285) 评论(0) 推荐(0) 编辑
摘要: jQuery对Ajax操作进行了封装,在jQuery中$.ajax()方法属于最底层的方法,第2层是laod()、$.get()和$.post()方法,第3层是$.getScript()和$.getJSON()方法。load()方法是jQuery中最为简单和常用的Ajax方法,能载入远程HTML代码并插入到DOM中。它的语法结构为:  load( url [, data][, callback] ... 阅读全文
posted @ 2010-07-21 13:19 龙圆 阅读(1007) 评论(0) 推荐(0) 编辑
摘要: 页面调用$(document).ready(function(){$("#button").click(function() {tipsWindown("","id:slidemenubar2","300","170","true","","true","id")});});<div id="slidemenubar2"></div>样式#windownbg {displa... 阅读全文
posted @ 2010-07-21 13:07 龙圆 阅读(6072) 评论(1) 推荐(0) 编辑
摘要: jquery如何取得text,areatext,radio,checkbox,select的值,以及其他一些操作;假如我们有如下页面: input type="text" name="textname" id="text_id" value="" ...........在此不写出来了下面来看怎么取得FORM中的各种值等等;function get_form_value(){ /*获得TEXT.AREATEXT的值*/ var textval = $("#text_id").attr("value");//或者 var textval = $("#text_id").val(); /*获 阅读全文
posted @ 2010-07-16 11:40 龙圆 阅读(20179) 评论(1) 推荐(1) 编辑
摘要: 在网上找到的资料,收藏一下function getCookies(name) { var arr = document.cookie.match(new RegExp("(^| )"+name+"=([^;]*)(;|$)")); if(arr != null) return unescape(arr[2]); return ''; } function setCookie(name, value... 阅读全文
posted @ 2010-07-14 13:42 龙圆 阅读(6848) 评论(0) 推荐(1) 编辑
摘要: 看UCenter的时候有一个函数call_user_func,百思不得其解,因为我以为是自己定义的函数,结果到处都找不到,后来百度了一下才知道call_user_func是内置函数,该函数允许用户调用直接写的函数并传入一定的参数,不可谓不强大,总结一下,写到这篇日志里面吧。先放上来别人的例子吧:PHP代码call_user_func函数类似于一种特别的调用函数的方法,使用方法如下: functio... 阅读全文
posted @ 2010-06-24 09:32 龙圆 阅读(9203) 评论(0) 推荐(0) 编辑
摘要: conn.execute、rs.open之间的差别,conn.execute、rs.open、command.execute方法用法大大不同通常形成记录集可以使用 Setrs=conn.execute(SQL)或直接rs=CONN.execute(SQL)和 Setrs=Server.CreateObject("ADODB.Recordset") rs.openSQL,CONN,0,1或rs.op... 阅读全文
posted @ 2010-05-20 14:40 龙圆 阅读(37408) 评论(0) 推荐(1) 编辑
摘要: 给个通俗的解释吧. 例表a aid adate 1 a1 2 a2 3 a3 表b bid bdate 1 b1 2 b2 4 b4 两个表a,b相连接,要取出id相同的字段 select * from a inner join b on a.aid = b.bid这是仅取出匹配的数据. 此时的取出的是: 1 a1 b1 2 a2 b2 那么left join 指: select * from a... 阅读全文
posted @ 2010-05-20 10:56 龙圆 阅读(585) 评论(0) 推荐(1) 编辑
摘要: 1. <INPUT onclick=document.all.WebBrowser.ExecWB(1,1) type=button value=打开 name=Button1> 2. <INPUT onclick=document.all.WebBrowser.ExecWB(4,1) type=button value=另存为 name=Button2> 3. <... 阅读全文
posted @ 2010-04-16 14:05 龙圆 阅读(1501) 评论(0) 推荐(0) 编辑
摘要: vbscript脚本语言是一种弱类型语言,这样有好处也有坏处,在写asp网页的时候经常出了错误找到眼睛都快瞎了,因为vbscript有些时候会自作聪明“自动转型”。比如access数据库中的“是/否”类型,对应的是“是”、“Yes”、“True”、“否”、... 阅读全文
posted @ 2010-04-16 11:40 龙圆 阅读(1417) 评论(0) 推荐(0) 编辑