随笔分类 -  JS Collecion

摘要:CodeCode highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> 城市联动 test 阅读全文
posted @ 2009-01-14 21:55 Sam Lin 阅读(1310) 评论(0) 推荐(0) 编辑
摘要:IE: CodeCode highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->cssStr = "p { color:#FF0000;} a { font-size:9pt;}";var style = win.document.createStyleShe... 阅读全文
posted @ 2008-11-06 18:26 Sam Lin 阅读(4280) 评论(1) 推荐(0) 编辑
摘要:些文章来自网络 http://www.blogjava.net/fool/archive/2006/06/27/55285.html Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> ziyuanweihu ... 阅读全文
posted @ 2008-09-26 17:14 Sam Lin 阅读(2155) 评论(1) 推荐(0) 编辑
摘要:JavaScript利用ActiveX导出Excel,Word,利用ActiveX导出Excel或Word 阅读全文
posted @ 2008-09-26 16:50 Sam Lin 阅读(1423) 评论(0) 推荐(0) 编辑
摘要:/* Prototype JavaScript framework, version 1.4.0 * (c) 2005 Sam Stephenson * * Prototype is freely distributable under the terms of an MIT-style license. * For details, see the Prototype we... 阅读全文
posted @ 2008-07-06 19:12 Sam Lin 阅读(3750) 评论(0) 推荐(0) 编辑
摘要:JSHashTable 阅读全文
posted @ 2008-07-06 18:58 Sam Lin 阅读(462) 评论(2) 推荐(0) 编辑
摘要:String.prototype.PadLeft = function(totalWidth, paddingChar) { if ( paddingChar != null ) { return this.PadHelper(totalWidth, paddingChar, false); } else { return this.PadHelper(totalWidth, ' '... 阅读全文
posted @ 2008-06-30 18:10 Sam Lin 阅读(6436) 评论(2) 推荐(0) 编辑
摘要:些贴为网上转贴 获取窗口 高 、宽 的JS代码 var getViewPortWidth = function() { var width = 0; if ((document.documentElement) && (document.documentElement.clientWidth)) { width = document.documentE... 阅读全文
posted @ 2008-05-11 18:38 Sam Lin 阅读(438) 评论(0) 推荐(0) 编辑
摘要:function getElementOffset(e) { var t = e.offsetTop; var l = e.offsetLeft; var w = e.offsetWidth; var h = e.offsetHeight-1; while(e=e.offsetParent) { t+=e.offsetTop; l+=e.offsetLeft; } ret... 阅读全文
posted @ 2008-03-14 18:41 Sam Lin 阅读(3357) 评论(0) 推荐(1) 编辑