修改Calendar日曆控制 相容IE9,谷歌,火狐。
只是能用,出現的位置有所不同,希望有高手再幫我改改吧,謝謝
一、
this.iframe = window.frames("meizzCalendarIframe");
修改為
修改為
程式碼如下:
this.iframe = window.frames["meizzCalendarIframe"]; 🎜>二、
var a = (arguments.var a = (arguments. =0) ? WebCalendar.day[this.id.substr(8)].split("/") : arguments[0].split("/");
修改為
var a = WebCalendar.day[this.id.substr(>
var a = WebCalendar.day[this.id.substr((8 )].split("/");
三、
function dayMouseOver()
{
this.className = "over";
this.style.backgroundColor = WebCalendar.darkColor;
this.style.backgroundColor = WebCalendar.darkColor;
if(Calendararar>if(Calendarar. .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] ==& a[0] ==& a[0] ==& parseInt(WebCalendar.dateStyle[4], 10))
this.style.color = WebCalendar.lightColor;
this.style.color = WebCalendar.wordColor;
}
}
程式碼如下:
程式碼如下:
程式碼如下:function dayMouseOver()
{
this.className = "over";
bgbgbg=this.style.backgroundColor;
this.style.backgroundColor = WebCalendar.darColkor;
this.style.backgroundColor = WebCalendar.darColkoror
; ; .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(CalWebendarar .dateStyle[4], 10))
this.style.color = WebCalendar.lightColor; this.style.color = WebCalendar.wordColor; } }