luckylei66

  博客园 :: 首页 :: 新随笔 :: 联系 :: 订阅 :: 管理 ::

随笔分类 -  JQuery & Javascript & VBScript

摘要:插件:Masked Input Plugin http://digitalbush.com/projects/masked-input-plugin/ jQuery(function($){ $("#date").mask("99/99/9999"); $(... 阅读全文
posted @ 2012-10-13 16:21 Leo.Wang 阅读(248) 评论(0) 推荐(0)

摘要:.planFinderLink { font-size : 13px ; color : #365cb7 ; text-decoration : underline ; } /* Overlay */ #uplo... 阅读全文
posted @ 2012-09-29 15:27 Leo.Wang 阅读(3175) 评论(0) 推荐(0)

摘要:replace如果替换数据时,默认只替换第一个。 如果在替换的时候加上: / 替换内容 /g 就能实现全部替换 例如:functionchange(strvalue){strvalue=strvalue.replace(/&amp;/g,"&");strvalue=strvalue.replace(/&lt;/g,"<");strvalue=strvalue.replace(/&gt;/g,">");strvalue=strvalue.replace(/&quot;/g," 阅读全文
posted @ 2012-08-23 16:36 Leo.Wang 阅读(931) 评论(0) 推荐(0)

摘要:参考: http://api.jquery.com/event.preventDefault/ 参考: http://www.w3school.com.cn/htmldom/event_preventdefault.asp 定义和用法 取消事件的默认动作。 语法 event.preve... 阅读全文
posted @ 2012-07-12 22:05 Leo.Wang 阅读(221) 评论(0) 推荐(0)

摘要:SimpleModal 插件 http://www.ericmmartin.com/projects/simplemodal/ 以下代码可以避免在IE中使用simpleModal弹出iframe出错问题 varlicense_no='' $(document).ready( funct... 阅读全文
posted @ 2012-07-12 21:59 Leo.Wang 阅读(269) 评论(0) 推荐(0)

摘要:function reinitIframe(){ var iframe = document.getElementById( " frame_content " ); try { var bHeight = iframe.contentWin... 阅读全文
posted @ 2012-06-11 15:37 Leo.Wang 阅读(190) 评论(0) 推荐(0)

摘要:几个例子: Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> function case1(num){ switch (num){ case 1... 阅读全文
posted @ 2009-04-30 14:16 Leo.Wang 阅读(8770) 评论(1) 推荐(1)

摘要:document 文挡对象 - JavaScript脚本语言描述 --------------------------------------------------------------------- 注:页面上元素name属性和JavaScript引用的名称必须一致包括大小写 否则会提示你一... 阅读全文
posted @ 2009-01-14 16:21 Leo.Wang 阅读(669) 评论(0) 推荐(0)