IE9/Google/Firefox_javascript 기술과 호환되도록 js Calendar 캘린더 컨트롤을 수정합니다.

WBOY
풀어 주다: 2016-05-16 17:44:28
원래의
1348명이 탐색했습니다.

IE9, Google 및 Firefox와 호환되도록 Calendar 달력 컨트롤을 수정합니다.
그냥 작동하지만 위치가 다릅니다. 누군가 도와주셨으면 좋겠습니다.

코드 복사 코드는 다음과 같습니다.
this.iframe = window.frames("meizzCalendarIframe")



this.iframe = window.frames["meizzCalendarIframe"]


2.


var a = (arguments.length= =0) ? WebCalendar.day[this.id.substr(8)].split("/") : 인수[0].split("/"); 🎜>




코드 복사
로 변경되었습니다. 코드는 다음과 같습니다. var a = WebCalendar.day[this.id.substr(8 )].split("/")





코드 복사
코드는 다음과 같습니다. 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] == parsInt(WebCalendar.dateStyle[4], 10))
this.style.color = WebCalendar.lightColor
this.style.color = WebCalendar.wordColor;
}
}


수정됨



코드 복사
코드는 다음과 같습니다: var bgbgbg; function dayMouseOver()
{
this.className = "over"
bgbgbg=this.style.backColor; ;
this.style.backColor = 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] == parsInt(WebCalendar .dateStyle[4], 10))
this.style.color = WebCalendar.lightColor
this.style.color; = WebCalendar.wordColor
}
}

관련 라벨:
원천:php.cn
본 웹사이트의 성명
본 글의 내용은 네티즌들의 자발적인 기여로 작성되었으며, 저작권은 원저작자에게 있습니다. 본 사이트는 이에 상응하는 법적 책임을 지지 않습니다. 표절이나 침해가 의심되는 콘텐츠를 발견한 경우 admin@php.cn으로 문의하세요.
최신 이슈
인기 튜토리얼
더>
최신 다운로드
더>
웹 효과
웹사이트 소스 코드
웹사이트 자료
프론트엔드 템플릿
회사 소개 부인 성명 Sitemap
PHP 중국어 웹사이트:공공복지 온라인 PHP 교육,PHP 학습자의 빠른 성장을 도와주세요!