Modify the Calendar Calendar control compatible with IE9, Google, Firefox.
Only can use, appears the position is different, hoped has the master to help me to change again, thanks
One
Copy Code code as follows:
This.iframe = Window.frames ("Meizzcalendariframe");
Amended to
Copy Code code as follows:
This.iframe = window.frames["Meizzcalendariframe"];
Two
Copy Code code as follows:
var a = (arguments.length==0)? WEBCALENDAR.DAY[THIS.ID.SUBSTR (8)].split ("/"): Arguments[0].split ("/");
Amended to
Copy Code code as follows:
var a = Webcalendar.day[this.id.substr (8)].split ("/");
Three
Copy Code code 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;
}
}
Amended to
Copy Code code 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])
This.style.color = Webcalendar.lightcolor;
This.style.color = Webcalendar.wordcolor;
}
}