修改Calendar日历控件 兼容IE9,谷歌,火狐。

只是能用,出现的位置有所不同,希望有高手再帮我改改吧,谢谢
 
一、
[javascript]  
this.iframe     = window.frames("meizzCalendarIframe");  
修改为
[javascript]  
this.iframe     = window.frames["meizzCalendarIframe"];  
 
二、
[javascript]  
var a = (arguments.length==0) ? WebCalendar.day[this.id.substr(8)].split("/") : arguments[0].split("/");  
 
修改为
[javascript]  
var a = WebCalendar.day[this.id.substr(8)].split("/");  
  
      
 
 
三、
[javascript] 
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;  
    }  
}  
修改为
[javascript] 
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;  
    }  
}  
 

修改Calendar(梅花雨)日历控件 兼容IE9 谷歌 火狐的更多相关文章

  1. 自己用js写的两个日历控件

    前一阵写了两个日历控件,做了简单的封装,发出来共朋友们参考. 第一个日历控件,条状的日历. (使用方法:调用initBarTime(id,evn),第一个参数是要渲染div的id,第二个参数是点击日期 ...

  2. 分享一个WPF下日历控件(Calendar)的样式

    WPF日历控件的一个样式 WPF自带的日历控件样式可能会比较丑,要修改其样式看起来挺复杂的,实际上很简单,用Blend打开,修改三个模板,基本就能改变全部面貌,也很容易 先上图 样式如下: <S ...

  3. WPF 4 日历控件(Calendar)

    原文:WPF 4 日历控件(Calendar)      在之前我已经写过两篇关于WPF 4 任务栏(Taskbar)相关的特性.相信自从VS2010 Beta 版放出后,WPF 的粉丝们肯定在第一时 ...

  4. WPF Calendar 日历控件 样式自定义

    原文:WPF Calendar 日历控件 样式自定义 粗略的在代码上做了些注释 blend 生成出来的模版 有的时候 会生成 跟 vs ui界面不兼容的代码 会导致可视化设计界面 报错崩溃掉 但是确不 ...

  5. asp.net Calendar 日历控件用法

    asp.net Calendar 是微软自带的一款日历控件,除了简单显示日期时间外, 还可以绑定一些需要的事件. Calendar_DayRender 事件,是在加载都去时间日期时候的方法,用此方法可 ...

  6. asp.net 弹出式日历控件 选择日期 Calendar控件

    原文地址:asp.net 弹出式日历控件 选择日期 Calendar控件 作者:逸苡 html代码: <%@ Page Language="C#" CodeFile=&quo ...

  7. 2.23 js处理日历控件(修改readonly属性)

    2.23 js处理日历控件(修改readonly属性) 前言    日历控件是web网站上经常会遇到的一个场景,有些输入框是可以直接输入日期的,有些不能,以我们经常抢票的12306网站为例,详细讲解如 ...

  8. Ext.net Calendar 控件在有模板页的时候,模板页定义了TD的样式造成日历控件的样式丢掉

    Ext.net Calendar 控件在有模板页的时候,模板页定义了TD的样式造成日历控件的样式丢掉 解决方案 在本页面添加下面的样式 <style type="text/css&qu ...

  9. Selenium2+python自动化25-js处理日历控件(修改readonly属性)

    前言 日历控件是web网站上经常会遇到的一个场景,有些输入框是可以直接输入日期的,有些不能,以我们经常抢票的12306网站为例,详细讲解如何解决日历控件为readonly属性的问题. 基本思路:先用j ...

随机推荐

  1. JavaScript Maintainable

    1. Avoid conflict with Native Variable namespace

  2. Color the Fence

    Codeforces Round #202 (Div. 2) B:http://codeforces.com/problemset/problem/349/B 题意:给你一些颜料,然后你可以用这些颜料 ...

  3. Sliding Window

    poj2823:http://poj.org/problem?id=2823 题意:给出一个序列,要求得到所有长度为k的连续子序列的最大和最小值.题解:直接上线段树 #include<iostr ...

  4. cf D. On Sum of Fractions

    http://codeforces.com/problemset/problem/397/D 题意:v(n) 表示小于等于n的最大素数,u(n)表示比n的大的第一个素数,然后求出: 思路:把分数拆分成 ...

  5. RC隔离 更新where条件列 没有索引的情况

    CREATE TABLE `test100` ( `sn` int(11) NOT NULL AUTO_INCREMENT COMMENT '自增编号', `phoneNo` int(11) , `c ...

  6. http请求方式和状态管理

    1.  HTTP协议 Internet的基本协议是TCP/IP协议(传输控制协议和网际协议),目前广泛使用的 FTP.HTTP(超文本传输协议).Archie Gopher都是建立在TCP/IP上面的 ...

  7. Git skills in reseting files

    How to uncommit files that were committed long time a ago?Note: Since all changes in the current wor ...

  8. The Same Game(模拟)

    http://poj.org/problem?id=1027 题意:给一个10*15的地图,里面填充R,G,B三种颜色,每次找到当前地图的同色最大区域M,并将其删除,删除M后,上面的小球自然下落,当有 ...

  9. [转]关于Icon,Image,ImageIcon的简单的对比参考

    转自:http://blog.csdn.net/bcmissrain/article/details/7190886 其实就算是现在,我还是有不少地方概念模糊,但是下面的内容是是没有什么问题的.稍微介 ...

  10. JAVA工程师面试总结

    HR面: 你为什么要离职?如果是公司层面的,公司为什么要这么做? 你的理想薪资?你觉得你有什么优势胜任你应聘的工作? 你的未来发展规划? BOSS面: 项目的东西,hibernate调优?使用了什么数 ...