
JAVASCRIPT
xuechenyoyo
这个作者很懒,什么都没留下…
展开
-
FireFox图片img验证码刷新问题
看不清 在onclick方法里" now=new Date()"是必须的,否则在Firefox下无法触发刷新验证码图片。原创 2009-09-28 13:10:22 · 212 阅读 · 0 评论 -
FireFox窗体frameset,iframe间的js调用方法
//在其中一个frame里操作主窗口 var ff=window.parent.window.document.getElementsByTagName("frameset"); var colsValue=ff['menuframe'].getAttribute('cols');//获得iframe对象 var ff=document.getElementById('if...原创 2009-09-28 13:14:54 · 115 阅读 · 0 评论 -
IE,FireFox重写事件函数属性
var oneElement=document.getElementById('id');oneElement.onmouseout=function(){this.setAttribute('class','ListDefDataRow1');this.setAttribute('className','ListDefDataRow1');}在FireFox下可直接用oneEleme...原创 2009-09-28 13:28:51 · 149 阅读 · 0 评论 -
[转载]-验证日期的正则表达式比较全面地验证(aking8736的文章)
[转载]-验证日期的正则表达式比较全面地验证1.验证日期的正则表达式加入闰年的判断以及思路分析进入正题之前,我们需要澄清两个概念:一,什么是合法的日期范围?对于不同的应用场景,这个问题有不同的解释。这里采纳MSDN中的约定:DateTime 值类型表示值范围在公元(基督纪元)0001 年 1 月 1 日午夜 12:00:00 到公元 (C.E.) 999...原创 2009-08-04 11:48:44 · 98 阅读 · 0 评论 -
日期,日期时间类型数据格式校验
function testDatatime(){ alert(!"2010-01-29 12:44:12.1022".isDateTime()); alert("2010-01-29 12:44:12.122".isDateTime()); alert(!"2010-01-29 24:44:12".isDateTime()); ...原创 2010-07-28 17:25:03 · 677 阅读 · 0 评论 -
Firefox 如何兼容IE click() 方法
if(document.all) { document.getElementById(name).click(); } else { var evt = document.createEvent("MouseEvents"); evt.initEvent("click", true, true); document.getElementById(...原创 2010-10-07 23:45:41 · 119 阅读 · 0 评论 -
把函数作为参数传递给函数,实现查找功能
/** * get the cell by the id of the widget that column bounded. * @param wid the id of the bounded widget. */ me.getCellById = function (wid){ var okCell;...原创 2011-12-13 12:29:29 · 189 阅读 · 0 评论