一个简单横向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>
 
相关文档:
原创于2007年12月16日,2009年10月15日迁移至此。
JavaScript通过内置的setTimeout函数来完成页面内的定时检查,也是很久以前写的东西了。
之所以想起它来,是因为在和项目组其他成员说该事情的时候,别人竟然嘲笑我说是上个世纪的代码,现在都用WEB2.0了。
<script language="JavaScript" type="text ......
原创于2007年12月16日,2009年10月15日迁移至此。
唉,很久以前写的代码,晒一晒,估计自己看都看不懂了,:(
var head="display:''"
img_close=new Image()
img_close.src="/sysManage/images/f.gif"
img_open=new Image()
img_open.src="/sysManage/images/fo.gif"
img3=new Image( ......
Javascript 获取radiobuttonlist(单选框)的值
function check() {
var RadioButtonList1 = document.getElementById('<%=RadioButtonList1.ClientID%>');
......
1, js中的类数组对象
(1) arguments对象:
function(){
//arguments对象是Arguments对象实例,是一个类数组对象,并拥有下列方法
alert(arguments instanceof Array);//false
arguments.callee(); //对自身的调用, 用于递归
var c = arguments.caller; //对调用自身函数的父函数, 如果 ......
Eclipse写javascript是比较痛苦的,有了jsEclipse这个强大的javascript编辑插件就方便多了,这个插件支持代码完成,大纲浏览,错误报告,代码换行等等.
安装jsEclipse很方便,通过HELP-Software Updates-Find and Install 在URL中录入http://www.interaktonline. ......