一个简单横向javascript日期控件
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title> new document </title>
<meta name="generator" content="editplus" />
<meta name="author" content="" />
<meta name="keywords" content="" />
<meta name="description" content="" />
<style type="text/css">
*{font-size:14px}
/*日期最外层*/
#logCalendar{width:950px;border-top:1px solid #ccc;border-left:1px solid #ccc}
/*日期内部所有单元格*/
#logCalendar td{
border-right:1px solid #ccc;border-bottom:1px solid #ccc;
padding-left:5px;text-align:center;
height:22px;line-height:22px;
}
#daysList{border-top:1px solid #ccc;border-left:1px solid #ccc}
/*日期列表所有单元格*/
#daysList td{text-align:center;height:22px}
/*周次及星期几的输入框*/
.bd{border:0;text-align:center;color:#00f}
/*日期默认样式*/
.unSelectDay{
color:#00f;font-weight:normal;
padding:3px;cursor:pointer;
text-decoration:underline
}
/*当前点击的日期样式*/
.selectDay{color:#fff;font-weight:bold;background:#FEB0B0;padding:1px;text-decoration:none;cursor:normal}
/*周末样式*/
.weekEnd{color:#f00}
.test{color:#f00;text-decoration:none}
</style>
 
相关文档:
/*
* JavaScript对象就是一组属性(方法)的集合
* 在该语言中如果变量名或方法名不符合声明规范,
* 则一定得用方括号“ [] ”引用它
*
*/
/**
* <1.>该语句声明了一个class1类,class1相当于构造方法,又叫构造器
* 也可说声明了一个class1方法
......
scrollHeight: 获取对象的滚动高度。
scrollLeft:设置或获取位于对象左边界和窗口中目前可见内容的最左端之间的距离
scrollTop:设置或获取位于对象最顶端和窗口中可见内容的最顶端之间的距离
scrollWidth:获取对象的滚动宽度
offsetHeight:获取对象相对于版面或由父坐标 offsetParent 属性指定的父坐标的高度
offsetL ......
1, js中的类数组对象
(1) arguments对象:
function(){
//arguments对象是Arguments对象实例,是一个类数组对象,并拥有下列方法
alert(arguments instanceof Array);//false
arguments.callee(); //对自身的调用, 用于递归
var c = arguments.caller; //对调用自身函数的父函数, 如果 ......
几乎每个开发人员都有面向对象语言(比如C++、C#、Java)的开发经验。 在传统面向对象的语言中,有两个非常重要的概念 - 类和实例。
类定义了一类事物公共的行为和方法;而实例则是类的一个具体实现。 我们还知道,面向对象编程有三个重要的概念 - 封装、继承和多态。
但是在JavaScript的世界中,所有的这一切特 ......