源码学习:一个简单的日历控件
calendar.calendarPad.style.display="none";
}
/************** 从这里开始 *********************/
this.setup=function(defaultDate){
calendar.addCalendarPad();
calendar.addCalendarBoard();
calendar.setDefaultDate();
}
/************** 关于AgetimeCalendar *********************/
this.about=function(){
/*//alert("Agetime Calendar V1.0www.agetime.com");
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";
strAbout ="-\t: 关于";
strAbout ="x\t: 隐藏";
strAbout ="<<\t: 上一年";
strAbout ="<\t: 上一月"; 织梦好,好织梦
strAbout ="今日\t: 返回当天日期";
strAbout =">\t: 下一月";
strAbout ="<<\t: 下一年";
strAbout ="AgetimeCalendarVersion:v1.0Designed By:暂停打印 2004-03-16 afos_koo@hotmail.com ";
alert(strAbout);
}
calendar.setup();
} 织梦好,好织梦
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<TITLE>AgetimeCalendar DEMO</TITLE>
<META NAME="Generator" CONTENT="EditPlus">
<META NAME="Author" CONTENT="">
<META NAME="Keywords" CONTENT="">
<META NAME="Description" CONTENT="">
<script type="text/javascript" src="calendar.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script language="javascript">
var CalendarWebControl = new atCalendarControl(); dedecms.com
function createMenu(){
var menubar=new Array("文件","编 辑","查查找","文档");
var menupad=new Array();
menupad[0]=new Array();
menupad[0][0]=new Array("打开","http://agetime.joo.cn");
menupad[0][1]=new Array("--");
menupad[0][2]=new Array("保存","http://agetime.joo.cn","_blank"); dedecms.com
menupad[1]=new Array();
menupad[1][0]=new Array("复制","http://agetime.joo.cn","aa",true);
menupad[1][1]=new Array("选择");
menupad[1][2]=new Array("--");
menupad[1][3]=new Array("删除");
menupad[2]=new Array();
menupad[2][0]=new Array("替换");
menupad[2][1]=new Array("--");
menupad[2][2]=new Array("无间道");
menupad[2][3]=new Array("无孔不入"); 内容来自dedecms
var menu=new atMenu(menubar,menupad);
}
</script>
</HEAD> copyright dedecms
calendar.html 织梦好,好织梦
<BODY>
<table width="750" border="0" cellpadding="1" cellspacing="3">
<tr>
<td width="225"> </td>
<td width="482"> </td>
<td width="21"> </td>
文章评论
共有位Admini5网友发表了评论 查看完整内容