随笔分类 -  JS Code Collection

摘要:实现dhtmlxTree树型控件单击点击展开收缩 阅读全文
posted @ 2011-08-16 16:56 Sam Lin 阅读(3294) 评论(0) 推荐(0) 编辑
摘要:代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--//IE5.5+PNGAlphaFixv2.0Alpha:BackgroundTilingSupport//(c)2008AngusTurnbullhttp://www.twinhelix.com//... 阅读全文
posted @ 2010-01-11 17:01 Sam Lin 阅读(502) 评论(1) 推荐(0) 编辑
摘要:这几天需要用到对HTML节点元素的删/插操作,由于用到insertBefore方法的时候遇到了一些麻烦,现在作为知识的整理,分别对appendChild、insertBefore和insertAfter做个总结 appendChild定义 appendChild(newChild: Node) : NodeAppends a node to the childNodes array for ... 阅读全文
posted @ 2009-03-28 19:04 Sam Lin 阅读(48035) 评论(2) 推荐(7) 编辑
摘要:CodeCode highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> 城市联动 test 阅读全文
posted @ 2009-01-14 21:55 Sam Lin 阅读(1306) 评论(0) 推荐(0) 编辑
摘要:JavaScript操作Date对象函数库,其中功能有返回本月,上一月,返回本周,上一周,返回本季度,上季度,本年,上一年等. 阅读全文
posted @ 2009-01-14 21:31 Sam Lin 阅读(2143) 评论(0) 推荐(0) 编辑
摘要:CodeCode highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> 兼容各浏览器,Mozilla Firefox、IE,不过要注意,各浏览器获取的值可能有所不同 默认下,IE有右边的滚动条,所以宽度会相对小一点,而Firefox有状态栏,... 阅读全文
posted @ 2008-11-10 17:51 Sam Lin 阅读(464) 评论(0) 推荐(0) 编辑
摘要:Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->var Brower={ // 判断是否为IE6浏览器 isIE6:function(){return navigator.userAgent.search('MSIE')>0&&navi... 阅读全文
posted @ 2008-11-10 17:41 Sam Lin 阅读(330) 评论(0) 推荐(0) 编辑
摘要:出下面写写我这段时间的一些心得,主要介绍兼容IE和FireFox方面,Opera9.0前的版本好像N多东西不支持,暂时不介绍,Opera9.0以后的版本在Javascript解释方面和FireFox比较接近。我介绍的都是一些细节方面的东西,侧重于写一些不常见的情况,想到新的我会持续补充:1、创建一个Element,通用的写法为createElement("div") IE中也可以这样写crea... 阅读全文
posted @ 2008-11-06 18:29 Sam Lin 阅读(579) 评论(0) 推荐(0) 编辑
摘要:最近项目要用到一个菜单,本来是自己打算写的,但后来发现难还不小,因为项目是用到framesets(框架的)布局的,所以需要一个支持cross-frame menu(框架菜单)的东东,所以就找到了 Menu G5,这里有它的简介 在使用过程中,才发现Menu G5是一个优秀的菜单控件,其特点有: 在同一页面可以无限制的建立菜单 在同一个菜单中可以建立N级的子菜单 菜单内容,菜单样式(CSS)和菜单... 阅读全文
posted @ 2008-11-06 16:44 Sam Lin 阅读(1223) 评论(0) 推荐(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 阅读(2150) 评论(1) 推荐(0) 编辑
摘要:JavaScript利用ActiveX导出Excel,Word,利用ActiveX导出Excel或Word 阅读全文
posted @ 2008-09-26 16:50 Sam Lin 阅读(1417) 评论(0) 推荐(0) 编辑