摘要: 关于获取各种浏览器可见窗口大小的一点点研究 function getInfo() { var s = ""; s += " 网页可见区域宽:"+ document.body.clientWidth; s += " 网页可见区域高:"+ document.body.clientHeight; 阅读全文
posted @ 2010-06-07 14:38 西游 阅读(275) 评论(0) 推荐(0) 编辑
摘要: 利用Javascript取和设FCKeditor值也是非常容易的,如下: // 获取编辑器中HTML内容 function getEditorHTMLContents(EditorName) { var oEditor = FCKeditorAPI.GetInstance(EditorName); return(oEditor.GetXHTML(true)); } // 获取编辑器中文字内容 function getEditorTextContents(EditorName) { var oEditor = FCKeditorAPI.GetInstance(EditorName); return(oEditor.EditorDocument.body.innerText); } // 设置编辑器中内容 function SetEditorContents(EditorName, ContentStr) { var oEditor = FCKeditorAPI.GetInstance(EditorName) ; 阅读全文
posted @ 2010-06-01 10:47 西游 阅读(257) 评论(0) 推荐(0) 编辑
摘要: #region/// 过滤html,js,css代码 /// /// 过滤html,js,css代码 /// /// 参数传入 /// public static string CheckStr(string html) { System.Text.RegularExpressions.Regex regex1 = new System.Text.RegularExpressions.Regex(@"", System.Text.RegularExpressions.RegexOptions.IgnoreCase); System.Text.RegularExpressions.Regex regex2 = new System.Text.RegularExpressions. 阅读全文
posted @ 2010-05-27 17:36 西游 阅读(650) 评论(0) 推荐(1) 编辑
摘要: // 主调用函数是 setday(this,[object])和setday(this),[object]是控件输出的控件名,举两个例子: // 一、 // 二、 var bMoveable=true; var strFrame; 阅读全文
posted @ 2010-05-07 13:40 西游 阅读(2245) 评论(2) 推荐(0) 编辑
摘要: 编程过程中根据需要,要取一个平方根的右8位。 写法如下: select right(replace(cast(sqrt(cast('01722011' as int)*0.12)as varchar(30)),'.',''),8) 可是结果却显示前6位数字。 后来在有位朋友的帮助下,改成:sele... 阅读全文
posted @ 2009-11-24 10:02 西游 阅读(789) 评论(4) 推荐(0) 编辑
摘要: 不同服务器数据库之间的数据操作 --创建链接服务器 exec sp_addlinkedserver 'ITSV ', ' ', 'SQLOLEDB ', '远程服务器名或ip地址 ' exec sp_addlinkedsrvlogin 'ITSV ', 'false ',null, '用户名 ', '密码 ' --查询示例 阅读全文
posted @ 2009-02-25 10:32 西游 阅读(1206) 评论(0) 推荐(0) 编辑
摘要: 给个通俗的解释吧. 例表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这是仅取出匹配的数据. 阅读全文
posted @ 2008-11-27 15:50 西游 阅读(7124) 评论(0) 推荐(0) 编辑
摘要: 判断参数对象是否为DBNULL对象类型 阅读全文
posted @ 2008-07-16 15:13 西游 阅读(2631) 评论(0) 推荐(0) 编辑
摘要: var ta=document.createElement("a"); document.body.appendChild(ta); ta.href="http://www.cnblogs.com"; ta.target="_blank"; ta.click(); 阅读全文
posted @ 2008-06-13 10:13 西游 阅读(567) 评论(0) 推荐(0) 编辑
摘要: 客户端出错:无法在数据表视图中显示该列表: 没有安装与 Windows SharePoint Services 兼容的数据表组件 客户端想在数据表中编辑时提示下列错误: 数据视图由于下列一个或多个原因,无法在数据表视图中显示该列表: 没有安装与 Windows SharePoint Servi... 阅读全文
posted @ 2008-06-02 10:54 西游 阅读(4653) 评论(0) 推荐(0) 编辑