修改jsCalendar日历控件兼容IE9/谷歌/火狐
谷歌 修改 控件 兼容 日历 火狐 IE9
2023-06-13 09:14:43 时间
修改Calendar日历控件兼容IE9,谷歌,火狐。
只是能用,出现的位置有所不同,希望有高手再帮我改改吧,谢谢
一、
复制代码代码如下:
只是能用,出现的位置有所不同,希望有高手再帮我改改吧,谢谢
一、
this.iframe=window.frames("meizzCalendarIframe");
修改为
this.iframe=window.frames["meizzCalendarIframe"];
二、
vara=(arguments.length==0)?WebCalendar.day[this.id.substr(8)].split("/"):arguments[0].split("/");
修改为
vara=WebCalendar.day[this.id.substr(8)].split("/");
三、
functiondayMouseOver()
{
this.className="over";
this.style.backgroundColor=WebCalendar.darkColor;
if(WebCalendar.day[this.id.substr(8)].split("/")[1]==WebCalendar.thisMonth)
this.style.color=WebCalendar.lightColor;
}
functiondayMouseOut()
{
this.className="out";vard=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;
}
}
修改为
varbgbgbg;
functiondayMouseOver()
{
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;
}
functiondayMouseOut()
{
this.className="out";vard=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;
}
}
相关文章
- eclipse+selenium谷歌浏览器驱动配置
- 体验谷歌 AdSense 的广告拦截收入挽回
- 3D版DALL-E来了!谷歌发布文本3D生成模型DreamFusion,重点是zero-shot
- 6年秘密武器测试,ChatGPT必应暴打谷歌幕后大棋曝光!
- 谷歌浏览器WebKit/Chrome时间戳与普通Unix时间戳互转 - 带Python/PHP实现
- Chrome 78 (谷歌浏览器 ) 进入暗黑模式
- 谷歌服软:终于为Gmail iOS版在App Store里面添加了隐私标签
- 谷歌终于在开源发明网络组织“转正”
- 韩国称将尽快裁决谷歌垄断案
- 飞行车真的要来了,谷歌创始人投资的Kitty Hawk年底发售!
- 谷歌公布新算法:识别潜在的恶意安卓应用
- 谷歌的Google Assistant会成为下一个Android吗?| CES 2019