作家
登录

修改js Calendar日历控件 兼容IE9/谷歌/火狐

作者: 来源:www.28hudong.com 2013-03-30 00:14:12 阅读 我要评论

修改Calendar日历控件 兼容IE9,谷歌,火狐。 只是能用,出现的位置有所不同,希望有高手再帮我改改吧,谢谢 一、 复制代码 代码如下: this.iframe = window.frames("meizzCalendarIframe"); 修改为 复制代码 代码如下: this.iframe = window.frames["meizzCalendarIframe"]; 二、 复制代码 代码如下: var a = (arguments.length==0) ? WebCalendar.day[this.id.substr(8)].split("/") : arguments[0].split("/"); 修改为 复制代码 代码如下: var a = WebCalendar.day[this.id.substr(8)].split("/"); 三、 复制代码 代码如下: function dayMouseOver() { this.className = "over"; this.style.backgroundColor = WebCalendar.darkColor; if(WebCalendar.day[this.id.substr(8)].split("/")[1] == WebCalendar.thisMonth) this.style.color = WebCalendar.lightColor; } function dayMouseOut() { this.className = "out"; var d = WebCalendar.day[this.id.substr(8)], a = d.split("/"); this.style.removeattribute("backgroundColor"); if(a[1] == WebCalendar.thisMonth && d != WebCalendar.today) { if(WebCalendar.dateStyle && a[0] == parseInt(WebCalendar.dateStyle[4], 10)) this.style.color = WebCalendar.lightColor; this.style.color = WebCalendar.wordColor; } } 修改为 复制代码 代码如下: var bgbgbg; function dayMouseOver() { this.className = "over"; bgbgbg=this.style.backgroundColor; this.style.backgroundColor = WebCalendar.darkColor; if(WebCalendar.day[this.id.substr(8)].split("/")[1] == WebCalendar.thisMonth) this.style.color = WebCalendar.lightColor; } function dayMouseOut() { this.className = "out"; var d = WebCalendar.day[this.id.substr(8)], a = d.split("/"); this.style.backgroundColor = bgbgbg; if(a[1] == WebCalendar.thisMonth && d != WebCalendar.today) { if(WebCalendar.dateStyle && a[0] == parseInt(WebCalendar.dateStyle[4], 10)) this.style.color = WebCalendar.lightColor; this.style.color = WebCalendar.wordColor; } }

  推荐阅读

  JavaScript 验证码的实例代码(附效果图)

效果如下: 复制代码 代码如下:<html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server"> <title></title> <style type="text/css"> .code { background:url(code_bg.jpg); >>>详细阅读


本文标题:修改js Calendar日历控件 兼容IE9/谷歌/火狐

地址:http://www.17bianji.com/kaifa2/JS/22584.html

关键词: 探索发现

乐购科技部分新闻及文章转载自互联网,供读者交流和学习,若有涉及作者版权等问题请及时与我们联系,以便更正、删除或按规定办理。感谢所有提供资讯的网站,欢迎各类媒体与乐购科技进行文章共享合作。

网友点评
自媒体专栏

评论

热度

精彩导读
栏目ID=71的表不存在(操作类型=0)