Modify jsCalendar calendar controls to be compatible with IE9/Google/Firefox _ javascript skills

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

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.