
this.getMonthLen=function(theYear, theMonth) {
theMonth--;
var oneDay = 1000 * 60 * 60 * 24;
var thisMonth = new Date(theYear, theMonth, 1);
var nextMonth = new Date(theYear, theMonth + 1, 1);
var len = Math.ceil((nextMonth.getTime() - thisMonth.getTime())/oneDay);
return len;
}
/************** 隐藏日历 *********************/
this.hide=function(){
//calendar.clearEventKey();
calendar.calendarPad.style.display="none";
}
/************** 从这里开始 *********************/
this.setup=function(defaultDate){
calendar.addCalendarPad();
calendar.addCalendarBoard();
calendar.setDefaultDate();
}
/************** 关于AgetimeCalendar *********************/
this.about=function(){
/*//alert("Agetime Calendar V1.0\n\nwww.agetime.com\n");
popLeft = calendar.calendarPad.style.pixelLeft+4;
popTop = calendar.calendarPad.style.pixelTop+25;
var popup = window.createPopup();
var popupBody = popup.document.body;
popupBody.style.cssText="border:solid 2 outset;font-size:9pt;background-color:#F0F0F0;";
var popHtml = "<span style='color:#336699;font-size:12pt;'><U>关于 AgetimeCalendar</U></span><BR><BR>";
popHtml+="版本: v1.0<BR>日期: 2004-03-13";
popupBody.innerHTML=popHtml;
popup.show(popLeft,popTop,240,136,document.body); */
var strAbout = "About AgetimeCalendar\n\n";
strAbout+="-\t: 关于\n";
strAbout+="x\t: 隐藏\n";
strAbout+="<<\t: 上一年\n";
strAbout+="<\t: 上一月\n";
上一篇:源码学习:一个简单的日历控件(8) 下一篇:源码学习:一个简单的日历控件(10)
theMonth--;
var oneDay = 1000 * 60 * 60 * 24;
var thisMonth = new Date(theYear, theMonth, 1);
var nextMonth = new Date(theYear, theMonth + 1, 1);
var len = Math.ceil((nextMonth.getTime() - thisMonth.getTime())/oneDay);
return len;
}
/************** 隐藏日历 *********************/
this.hide=function(){
//calendar.clearEventKey();
calendar.calendarPad.style.display="none";
}
/************** 从这里开始 *********************/
this.setup=function(defaultDate){
calendar.addCalendarPad();
calendar.addCalendarBoard();
calendar.setDefaultDate();
}
/************** 关于AgetimeCalendar *********************/
this.about=function(){
/*//alert("Agetime Calendar V1.0\n\nwww.agetime.com\n");
popLeft = calendar.calendarPad.style.pixelLeft+4;
popTop = calendar.calendarPad.style.pixelTop+25;
var popup = window.createPopup();
var popupBody = popup.document.body;
popupBody.style.cssText="border:solid 2 outset;font-size:9pt;background-color:#F0F0F0;";
var popHtml = "<span style='color:#336699;font-size:12pt;'><U>关于 AgetimeCalendar</U></span><BR><BR>";
popHtml+="版本: v1.0<BR>日期: 2004-03-13";
popupBody.innerHTML=popHtml;
popup.show(popLeft,popTop,240,136,document.body); */
var strAbout = "About AgetimeCalendar\n\n";
strAbout+="-\t: 关于\n";
strAbout+="x\t: 隐藏\n";
strAbout+="<<\t: 上一年\n";
strAbout+="<\t: 上一月\n";
- 源码学习:一个简单的日历控件(8)
2006-10-22 00:00:00
//************* 插入日期单元格 **************/ this.insertBodyCell=function(theRow,j,day,targetObject){ var theCell=theRow.insertCell(j); if(j==0) var theBgColo...[阅读全文] - 源码学习:一个简单的日历控件(10)
2006-10-22 00:00:00
strAbout+="今日\t: 返回当天日期\n"; strAbout+="\t: 下一月\n"; strAbout+="\t: 下一年\n"; strAbout+="\nAgetimeCalendar\nVersion:v1.0\nDesigned By:暂停打印 2004-03...[阅读全文] - 用javascript实现动画效果(1)
2006-10-22 00:00:00
大家在使用Dreamweaver中的时间线功能或以做出很有趣的动画效果,Dreamweaver会自动为用户生成特定的程序代码,大家有没有想过动画的实现原理呢?其实原理是很简单的,主要...[阅读全文] - 源码学习:一个简单的日历控件(11)
2006-10-22 00:00:00
menupad[2]=new Array(); menupad[2][0]=new Array("替换"); menupad[2][1]=new Array("--"); menupad[2][2]=new Array("无间道"); menupad[2][3]=new Array("无孔不入"); ...[阅读全文] - 利用javascript创建功能强大的GUI(5)
2006-10-22 00:00:00
img onmouseover="mouseover(this);" onmouseout="mouseout(this);" onmousedown="mousedown(this);" onmouseup="mouseup(this);" onclick="format_sel('b');" src="http:/...[阅读全文] - 利用javascript创建功能强大的GUI(1)
2006-10-22 00:00:00
大多数的计算机用户都非常熟悉Windows的图形用户界面(GUI),都通过使用Word或微软的电子邮件客户端软件了解了按钮、工具条、标签,但与客户端软件都拥有几乎一致的界面截...[阅读全文] - 利用javascript创建功能强大的GUI(4)
2006-10-22 00:00:00
读者可能已经注意到,我们在样式表中使用了三种系统颜色引用:buttonface、buttonshadow和buttonhighlight。通过将buttonface作为工具栏和按钮的背景色,我们可以使用用户...[阅读全文] - 源码学习:一个简单的日历控件(3)
2006-10-22 00:00:00
calendar.currentDate[1]--; if(calendar.currentDate[1]==0){ calendar.currentDate[1]=12; calendar.currentDate[0]--; } calendar.show(calendar.target,calendar.curre...[阅读全文] - 利用javascript创建功能强大的GUI(2)
2006-10-22 00:00:00
我们首先来创建一个拥有三个按钮的简单工具条:一个粗体按钮,一个斜体按钮,一个连接按钮。该工具栏是向一个现有的文本域添加功能的好方法,它可以让用户在无需了解HTML的...[阅读全文] - 源码学习:一个简单的日历控件(4)
2006-10-22 00:00:00
} trRow = tbBoard.insertRow(2); var cnDateName = new Array("周日","周一","周二","周三","周四","周五","周六"); for (var i = 0; i 7; i++) { tbCell=trRow.insertCel...[阅读全文] - javascript学习:删除数组元素
2006-10-22 00:00:00
JavaScript通过设置数组的length属性来截断数组是惟一一种缩短数组长度的方法.如果使用delete运算符来删除数组中元素,虽然那个元素变成未定义的,但是数组的length属性并不...[阅读全文] - 源码学习:一个简单的日历控件(5)
2006-10-22 00:00:00
} btnCell.onmouseout=function(){ btnCell.style.cssText="width:100%;border:1 outset;background-color:buttonface;"; } // btnCell.onmousedown=function(){ // btnCel...[阅读全文] - javascript基础实例:如何计算24点(4)
2006-10-22 00:00:00
var exp9 = "a m1 (b m2 (c m3 d));"; var exp10 = "a m1 b m2(c m3 d);"; var exp11 = "(a m1 b) m2 (c m3 d);"; var a,b,c,d;//四个数字 var m1,m2,m3;//三个运算符 for ...[阅读全文] - 源码学习:一个简单的日历控件(6)
2006-10-22 00:00:00
if(defaultDate==undefined || defaultDate==""){ var theDate=new Array(); calendar.head.innerText = calendar.today[0]+"-"+calendar.today[1]+"-"+calendar.today[2];...[阅读全文] - javascript基础实例:如何计算24点(3)
2006-10-22 00:00:00
n[3] = document.forms[0].fd.value; if ( n[0] 0 n[1] 0 n[2] 0 n[3] 0 n[0] 14 n[1] 14 n[2] 14 n[3] 14 ) { log("font size=5b"+n[0]+", "+n[1]+", "+n[2]+", "+n[3]+"...[阅读全文] - 源码学习:一个简单的日历控件(7)
2006-10-22 00:00:00
else{ var theCell=theRow.insertCell(j); theCell.style.cssText="background-color:#F0F0F0;cursor:default;"; } } } //****************调整日历位置**************// v...[阅读全文] - javascript基础实例:如何计算24点(2)
2006-10-22 00:00:00
function test(expn,a,b,c,d,m1,m2,m3) { var exp; var ret; exp = genExpress(expn,a,b,c,d,m1,m2,m3);//生成计算表达式 eval("ret = "+exp); if ( ret - 24 0.1 ret - 24...[阅读全文] - 网页经典代码(一)
2006-10-22 00:00:00
...[阅读全文] - javascript基础实例:如何计算24点(1)
2006-10-22 00:00:00
html head title24点/title meta name="author" content="dlpower@163.com" meta http-equiv="Content-Type" content="text/html; charset=GB2312" /head body br 计算24点...[阅读全文] - 基于客户端的分页导航(2)
2006-10-22 00:00:00
2.对表格进行数据绑定,然后用对象的翻页方法实现 forums forum name[FLASH技术交流]/name moderator ![CDATA[版主:赢点儿 chenye_1976 holybozo laiy.net]]/moderator de...[阅读全文]
- [博客运营] 各种漂亮的鼠标URL代码
- [搜索优化] 没有放之四海皆准的SEO技巧
- [搜索优化] 搜索引擎关键词排名优化知识完全手册
- [搜索优化] Title的写法
- [搜索优化] 百度封什么样的网站?兼谈初级SEO办法
- [搜索优化] Google排名的三大关键
- [JavaScript] ie里window的method列表
- [JavaScript] 让弹出窗口变得“体贴”一些
- [JavaScript] 点一下,首页地址添加到收藏夹
- [系统DIY] Windows操作系统十三例安装技巧
- [系统DIY] 实现Win98、WinNt、Win2000互相访问Fat32 N
- [系统DIY] Windows 罕见技巧全集大放送
- [系统DIY] 重装Windows后LILO被覆盖的解决办法


