<!-- ---------------------------------------------------------------------
//
// Copyright 2000 Microsoft Corporation. All Rights Reserved.
//
// File: calendar.htc
//
// Description: The calendar behavior provides an easy, declarative way
// to add a standard calendar control to web pages and html
// based applications. It provides a variety of properties
// to customize the look and feel along with a strong set
// events and functionality.
//
//-------------------------------------------------------------------- -->
<script language="javascript">
//------------------------------------------------------------------------
// Attach to element events
//------------------------------------------------------------------------
element.attachEvent("onselectstart", fnOnSelectStart)
element.attachEvent("onclick", fnOnClick)
element.attachEvent("onpropertychange", fnOnPropertyChange)
element.attachEvent("onreadystatechange", fnOnReadyStateChange)
//------------------------------------------------------------------------
// Create the arrays of days & months for different languages
//------------------------------------------------------------------------
var gaMonthNames = new Array(
new Array('Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun',
'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'),
new Array('January', 'February', 'March', 'April', 'May', 'June', 'July',
'August', 'September', 'October', 'November', 'December')
);
var gaDayNames = new Array(
new Array('S', 'M', 'T', 'W', 'T', 'F', 'S'),
new Array('Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'),
new Array('Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday')
);
var gaMonthDays = new Array(
/* Jan */ 31, /* Feb */ 29, /* Mar */ 31, /* Apr */ 30,
/* May */ 31, /* Jun */ 30, /* Jul */ 31, /* Aug */ 31,
/* Sep */ 30, /* Oct */ 31, /* Nov */ 30, /* Dec */ 31 )
var StyleInfo = null // Style sheet with rules for this calendar
var goStyle = new Object() // A hash of style sheet rules that apply to this calendar
var gaDayCell = new Array() // an array of the table cells for days
var goDayTitleRow = null // The table row containing days of the week
var goYearSelect = null // The year select control
var goMonthSelect = null // The month select control
var goCurrentDayCell = null // The cell for the currently selected day
var giStartDayIndex = 0 // The index in gaDayCell for the first day of the month
var gbLoading = true // Flag for if the behavior is loading
var giDay // day of the month (1 to 31)
var giMonth // month of the year (1 to 12)
var giYear // year (1900 to 2099)
var giMonthLength = 1 // month length (0,1)
var giDayLength = 1 // day length (0 to 2)
var giFirstDay = 0 // first day of the week (0 to 6)
var gsGridCellEffect = 'raised' // Grid cell effect
var gsGridLinesColor = 'black' // Grid line color
var gbShowDateSelectors = true // Show date selectors (0,1)
var gbShowDays = true // Show the days of the week titles (0,1)
var gbShowTitle = true // Show the title (0,1)
var gbShowHorizontalGrid = true // Show the horizontal grid (0,1)
var gbShowVerticalGrid = true // Show the vertical grid (0,1)
var gbValueIsNull = false // There is no value selected (0,1)
var gbReadOnly = false // The user can not interact with the control
var giMinYear = 1900 // Minimum year (1 is the lowest possible value)
var giMaxYear = 2099 // Maximum year
// Load the property values defined on the element to replace defaults
fnGetPropertyDefaults()
// Create the style sheets needed for the calendar display
fnCreateStyleSheets()
// Insert the HTML elements needed for the calendar display
fnCreateCalendarHTML()
// Update the title with the month and year
fnUpdateTitle()
// Fill in the days of the week
fnUpdateDayTitles()
// Build the month select control
fnBuildMonthSelect()
// Build the year select control
fnBuildYearSelect()
// Fill in the cells with the days of the month and set style values
fnFillInCells()
// **********************************************************************
// PROPERTY GET/SET FUNCTIONS
// **********************************************************************
//------------------------------------------------------------------------
//
// Function: fnGetDay / fnPutDay
//
// Synopsis: The day property is used to set the day of the month. The
// valid range is from 1 to the maximum day of the selected
// month & year. If a number is given outside that range, it
// is set to the closest valid value. Invalid input will cause
// an exception.
//
// Arguments: The put method requires an integer value for the day
//
// Returns: The get method will return the selected day of the month
// If the valueIsNull property is set, null is returned
//
// Notes: none
//
//------------------------------------------------------------------------
function fnGetDay()
{
return (gbValueIsNull) ? null : giDay
}
function fnPutDay(iDay)
{
if (gbLoading) return // return if the behavior is loading
iDay = parseInt(iDay)
if (isNaN(iDay)) throw 450
fnSetDate(iDay, giMonth, giYear)
}
//------------------------------------------------------------------------
//
// Function: fnGetMonth / fnPutMonth
//
// Synopsis: The month property is used to set the month of the year.
// The valid range is from 1 to 12. If a value is given
// outside that range, it is set to the closest valid value.
// Invalid input will cause an exception.
//
// Arguments: The put method requires an integer value for the month
//
// Returns: The get method will return the selected month value
// If the valueIsNull property is set, null is returned
//
// Notes: Setting the year can cause the selected "day" value to be
// reduced to the highest day in the selected month if needed.
//
//------------------------------------------------------------------------
function fnGetMonth()
{
return (gbValueIsNull) ? null : giMonth
}
function fnPutMonth(iMonth)
{
if (gbLoading) return // return if the behavior is loading
iMonth = parseInt(iMonth)
if (isNaN(iMonth)) throw 450
fnSetDate(giDay, iMonth, giYear)
}
//------------------------------------------------------------------------
//
// Function: fnGetYear / fnPutYear
//
// Synopsis: The year property is used to set the current year.
// The valid range is from minYear to maxYear. If a value is given
// outside that range, it is set to the closest valid value.
// Invalid input will cause an exception.
//
// Arguments: The put method requires an integer value for the year
//
// Returns: The get method will return the selected year value
// If the valueIsNull property is set, null is returned.
//
// Notes: Setting the year can cause the selected "day" value to be
// reduced to the highest day in the selected month if needed.
//
//------------------------------------------------------------------------
function fnGetYear()
{
return (gbValueIsNull) ? null : giYear
}
function fnPutYear(iYear)
{
if (gbLoading) return // return if the behavior is loading
iYear = parseInt(iYear)
if (isNaN(iYear)) throw 450
fnSetDate(giDay, giMonth, iYear)
}
//-------------------
没有合适的资源?快使用搜索试试~ 我知道了~
js控件大全,消息提示,菜单演示,弹出框,各种特效
共866个文件
htm:371个
gif:323个
jpg:68个
4星 · 超过85%的资源 需积分: 11 49 下载量 198 浏览量
2010-02-07
20:37:49
上传
评论
收藏 1.72MB RAR 举报
温馨提示
这是一个包含了很多js控件,包括日历,树形,等,还有一些其他特效的控件打包,基本上来说很全了,希望能够得到您的好评。
资源推荐
资源详情
资源评论
收起资源包目录
js控件大全,消息提示,菜单演示,弹出框,各种特效 (866个子文件)
firework.au 6KB
syu.au 437B
gomoku.bat 16B
game.bat 12B
terminator.class 12KB
game.class 11KB
al_clock.class 11KB
dissolvemenu.class 8KB
strategy.class 6KB
jhanabi.class 5KB
model.class 3KB
indialog.class 3KB
hr.class 2KB
matrix3d.class 2KB
doublebuffer.class 2KB
atom.class 2KB
lidframe.class 1KB
filter.class 1KB
pattern.class 710B
gameframe.class 645B
basicSDKIE4.css 6KB
style.css 5KB
style.css 4KB
styles.css 3KB
fav2.css 2KB
site.css 2KB
site.css 2KB
site.css 2KB
test.css 1KB
menu.css 1KB
ie.css 757B
classic.css 637B
ZOOM-IN.CUR 766B
MOVE-UP.CUR 766B
ZOOM-OUT.CUR 766B
SPACER.CUR 766B
cat.exe 118KB
nov.gif 21KB
jul.gif 18KB
june.gif 16KB
a01.gif 12KB
clock2.gif 12KB
jan.gif 12KB
feb.gif 9KB
map.gif 9KB
dec.gif 9KB
mar.gif 9KB
may.gif 9KB
sep.gif 9KB
apr.gif 8KB
img.gif 8KB
dd.gif 8KB
ball.gif 8KB
slidefader.gif 7KB
haiwa.gif 7KB
img.gif 7KB
60header.gif 7KB
clockm.gif 6KB
dynamicbook3.gif 6KB
dynamicbook5.gif 6KB
oct.gif 5KB
aug.gif 5KB
back.gif 5KB
dynamicbook2.gif 4KB
dynamicbook1.gif 4KB
butterfly.gif 4KB
logo.gif 3KB
pcrying.gif 3KB
cake.gif 3KB
first.gif 3KB
star2.gif 3KB
mask.gif 3KB
flag.gif 3KB
dynamicbook4.gif 3KB
banner.gif 3KB
bird.gif 2KB
l.gif 2KB
piaotu.gif 2KB
superball.gif 2KB
pdevilknit.gif 2KB
tvv.gif 2KB
textbg.gif 2KB
PE01803A.gif 2KB
index.gif 2KB
brgb.gif 2KB
pclapping.gif 2KB
logo.gif 2KB
minimask.gif 2KB
3.gif 2KB
0.gif 2KB
pcry.gif 2KB
6.gif 2KB
2.gif 2KB
1.gif 2KB
darkbluebg.gif 2KB
4.gif 2KB
5.gif 2KB
PE02054A.gif 1KB
TN00411A.gif 1KB
163logo.gif 1KB
共 866 条
- 1
- 2
- 3
- 4
- 5
- 6
- 9
资源评论
- tcq4112505672013-09-18很全的了,兼容方面问题可以忍。
- hhh3057432612012-09-05总体还行,就是兼容方面差了点,有些不能兼容IE6 和火狐
- 鬼头猫2013-11-12Firefox 下, 菜单树叶挤成一团
- diro002012-09-06有些不能兼容IE6 和火狐
W012345
- 粉丝: 0
- 资源: 7
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- Python大作业:音乐播放软件(爬虫+可视化+数据分析+数据库)
- 课程设计-python爬虫-爬取日报,爬取日报文章后存储到本地,附带源代码+课程设计报告
- 软件和信息技术服务行业投资与前景预测.pptx
- 课程设计-基于SpringBoot + Mybatis+python爬虫NBA球员数据爬取可视化+源代码+文档+sql+效果图
- 软件品质管理系列二项目策划规范.doc
- 基于TensorFlow+PyQt+GUI的酒店评论情感分析,支持分析本地数据文件和网络爬取数据分析+源代码+文档说明+安装教程
- 软件定义无线电中的模拟电路测试技术.pptx
- 软件开发协议(作为技术开发合同附件).doc
- 软件开发和咨询行业技术趋势分析.pptx
- 软件测试题详解及答案.doc
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功