Modify JS Calendar control compatible ie9/Google/Firefox _javascript tips

Source: Internet
Author: User
Tags webcalendar
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;
}
}

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.