修改Calendar日历控件 兼容IE9,谷歌,火狐
来源:互联网 发布:网络科学导论 pdf 编辑:程序博客网 时间:2024/06/10 23:51
修改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; }}
下载链接
http://download.csdn.net/detail/qm4050/4957903
- 修改Calendar日历控件 兼容IE9,谷歌,火狐
- calendar日历控件实例!
- 自定义日历控件(Calendar)
- 日历控件(Calendar)
- Calendar日历控件
- Calendar 自定义日历控件
- 日历Calendar控件的使用
- 日历控件Calendar的使用
- Android中的Calendar日历控件
- javasxript图片预加载兼容代码(IE7/IE8/IE9/火狐/谷歌/苹果)
- DIV CSS 网页兼容全搞定 (IE6 IE7 IE8 IE9 火狐 谷歌)
- DIV CSS 网页兼容全搞定 (IE6 IE7 IE8 IE9 火狐 谷歌)
- DIV CSS 网页兼容全搞定 (IE6 IE7 IE8 IE9 火狐 谷歌)
- DIV CSS 网页兼容全搞定 (IE6 IE7 IE8 IE9 火狐 谷歌)
- DIV CSS 网页兼容全搞定 (IE6 IE7 IE8 IE9 火狐 谷歌)
- DIV CSS 网页兼容全搞定 (IE6 IE7 IE8 IE9 火狐 谷歌)
- DIV CSS 网页兼容全搞定 (IE6 IE7 IE8 IE9 火狐 谷歌)
- DIV CSS 网页兼容全搞定 (IE6 IE7 IE8 IE9 火狐 谷歌)
- C语言之strncat函数
- horizon连接数据库
- 用Jdk自带工具keytool生成受信任的证书
- Can't connect to MySQL server error 111
- Oracle学习笔记2
- 修改Calendar日历控件 兼容IE9,谷歌,火狐
- Lucene入门
- LWIP 分析二之udp
- 搭建基于Jenkins+SVN+Maven持续集成环境(CI)
- char转int
- hibernate的优化-抓取(fetch)---张国亮总结心得第三季
- jenkins doesn't exist in the repository svn
- c++基础5:链表
- MFC应用程序中处理消息的顺序,创建窗口的过程关闭窗口的顺序(非模态窗口),打开模式对话框的函数调用顺序