代码改变世界

随笔档案-2009年01月

javascript网页对话框参数详解

2009-01-21 14:26 by Kevin-wang, 616 阅读, 收藏,
摘要: N.1 基本介绍: * showModalDialog() (IE 4+ 支持),用来创建一个显示HTML内容的模态对话框。 * showModelessDialog() (IE 5+ 支持) ,用来创建一个显示HTML内容的非模态对话框。N.2 使用方法: * vReturnValue = window.showModalDialog(sURL [, vArguments] [,sFeature... 阅读全文

关于SQL查询效率

2009-01-17 16:25 by Kevin-wang, 319 阅读, 收藏,
摘要: 机器情况 p4: 2.4 内存: 1 G os: windows 2003 数据库: ms sql server 2000 目的: 查询性能测试,比较两种查询的性能 SQL查询效率 step by step -- setp 1. -- 建表 create table t_userinfo ( userid int identity(1,1) primary key nonclustere... 阅读全文

整理了一些t-sql技巧

2009-01-17 16:24 by Kevin-wang, 366 阅读, 收藏,
摘要: 把长日期转换为短日期 Convert(char(10),getdate(),120) MS-SQL数据库开发常用汇总 1.按姓氏笔画排序: Select * From TableName Order By CustomerName Collate Chinese_PRC_Stroke_ci_as 2.数据库加密: select encrypt('原始密码') select pwdencry... 阅读全文

Javascript 高亮显示搜索到的关键字

2009-01-14 09:12 by Kevin-wang, 2067 阅读, 收藏,
摘要: 方法:利用文本替换,JS代码如下: Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.CodeHighlighter.com/ --> 1 //高亮显示搜索到的关键字 2 function HeightLight(Keyword) 3 ... 阅读全文

offsetParent和parentElement的区别

2009-01-11 23:12 by Kevin-wang, 379 阅读, 收藏,
摘要: 一直以为offsetParent和parentElement是一回事, parentElement 在msdn的解释是Retrieves the parent object in the object hierarchy. 而offsetParent在msdn的解释是Retrieves a reference to the container object that defines t... 阅读全文