2013年1月22日

JS计算用户停留在网站的时间的文档

摘要: <html xmlns="http://www.w3.org/1999/xhtml"><form name="myform"><td valign="top" width="135"> 您在此停留了: <input name="clock" size="10" value="在线时间"></td></form><head> <script language=" 阅读全文

posted @ 2013-01-22 14:01 程序小民工 阅读(148) 评论(0) 推荐(0)

一个文字横向滚动的JavaScript文档

摘要: <html xmlns="http://www.w3.org/1999/xhtml"><head> <title></title> <script language="JavaScript"> with (top.window.location) {baseURL = href.substring (0,href.lastIndexOf ("/") + 1)}total_toc_items = 0;current_overID = "";last_over 阅读全文

posted @ 2013-01-22 13:48 程序小民工 阅读(149) 评论(0) 推荐(0)

一个时钟显示的JavaScript文档

摘要: <html xmlns="http://www.w3.org/1999/xhtml"><head> <style type="text/css"><style></style> <title>时钟</title> <script language="JavaScript"> function showClock() { } function hideClock() { } var timerID = null var timerRunnin 阅读全文

posted @ 2013-01-22 13:37 程序小民工 阅读(150) 评论(0) 推荐(0)

这是一个获取WEB浏览器信息的程序

摘要: <html xmlns="http://www.w3.org/1999/xhtml"><head> <script language="JavaScript"><!-- // --> function makeArray(n) { this.length = n return this } function hexfromdec(num) { hex = new makeArray(1); var hexstring = ""; var shifthex = 16; var temp1 阅读全文

posted @ 2013-01-22 13:26 程序小民工 阅读(174) 评论(0) 推荐(0)

存储过程来实现递归查找节点

摘要: 表结构如下:查找所有节点用来删除:create PROCEDURE UserClassDeleteAllNodeUsedProcedure@ClassID nchar(10)ASdeclare @id intset @id=@ClassID;with RootNodeCTE(id,ParentID)as( Select ClassID,ParentID from Tb_UserClass where ParentID in (@id) Union all Select Tb_UserClass.ClassID,Tb_UserClass.ParentID From RootNodeCTE inn 阅读全文

posted @ 2013-01-22 12:24 程序小民工 阅读(126) 评论(0) 推荐(0)

正则表达式

摘要: 常用元字符:代码 说明. 匹配除换行符以外的任意字符\w 匹配字母或数字或下划线或汉字\s 匹配任意的空白符\d 匹配数字\b 匹配单词的开始或结束^ 匹配字符串的开始$ 匹配字符串的结束常用限定符代码/语法 说明* 重复零次或更多次+ 重复一次或更多次? 重复零次或一次{n} 重复n次{n,} 重复n次或更多次{n,m} 重复n到m次常用反义词代码/语法 说明\W 匹配任意不是字母,数字,下划线,汉字的字符\S 匹配任意不是空白符的字符\D 匹配任意非数字的字符\B 匹配不是单词开头或结束的位置[^x] 匹配除了x以外的任意字符[^aeiou] 匹配除了a... 阅读全文

posted @ 2013-01-22 12:18 程序小民工 阅读(108) 评论(0) 推荐(0)

导航