摘要: 一. element.setAttribute 与 element.className我们通过Js脚本对DOM 节点进行修改其样式class的时候,有几种方式进行操作:1.element.setAttribute('className','xxxClass');//仅对IE有效2.element.setAttribute('class','xxxClass');//仅对FF有效3.element.... 阅读全文
posted @ 2010-09-21 15:44 arix04 阅读(240) 评论(0) 推荐(0) 编辑
摘要: 下面2段代码可以快速生成一个即时校验的input文本框,在页面很多地方都可以使用 代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--<!--只允许输入正整数,如1234,常用于数量--><inputonbeforepaste="cl... 阅读全文
posted @ 2010-09-21 15:36 arix04 阅读(333) 评论(0) 推荐(0) 编辑
摘要: 一、jseclipse插件jseclipse是个Eclipse下的免费Javascript脚本编辑器,有强大的代码提示、检查以及高亮显示的功能,有助于大家在开发过程中减少错误以及提高效率。jseclipse插件的安装使用:1.在线安装:在Eclipse里如下选择:Help > Software Updates ->Find and Install再随后打开的对话框里选择Search f... 阅读全文
posted @ 2010-09-21 15:34 arix04 阅读(443) 评论(0) 推荐(0) 编辑