Modifying jsCalendar calendar controls is compatible with mainstream browsers such as IE9, Google Firefox, but can only be used. There are some differences in the locations, so we can share them with you, I hope some experts can help me modify the Calendar controls to be compatible with IE9, Google, and Firefox.
It can only be used. The location varies. I hope you can help me change it. Thank you.
I,
The Code is as follows:
This. iframe = window. frames ("meizzCalendarIframe ");
Change
The Code is as follows:
This. iframe = window. frames ["meizzCalendarIframe"];
II,
The Code is as follows:
Var a = (arguments. length = 0 )? WebCalendar. day [this. id. substr (8)]. split ("/"): arguments [0]. split ("/");
Change
The Code is as follows:
Var a = WebCalendar. day [this. id. substr (8)]. split ("/");
III,
The Code is as follows:
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;
}
}
Change
The Code is as follows:
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;
}
}