手册网
参考手册
在线工具
在线文档
在线代码
素材大全
推荐
导航
在线手册 »
WEB优质项目
开放平台
工具软件
CSS3.0中文手册
jQuery 1.8 参考手册
HTML4参考手册
HTML基础手册
HTML快速参考手册
MySQL5.1中文参考手册
JavaScript参考手册
Delphi6函数大全
Delphi7参考手册
SQL基础教程
jQuery 1.10 中文参考手册
CSS2 参考手册
ASP参考手册
C/C++中文手册
django中文教程
DOS命令大全
jQueryEasyUI1.3中文手册
Hibernate3.2中文参考文档
Html4.01参考手册
JAVA学习笔记
JSP中文教程
Linux参考手册
Lua5参考手册
Oracle参考手册
Phpcmsv9二次开发手册
phpwind二次开发手册
PostgreSQL参考手册
Python2中文手册
Spring2.5中文参考手册
XML参考手册
正则表达式参考手册
jQuery 1.11.3 中文参考手册
ThinkPHP3.2.2完全开发手册
ThinkPHP3.2.3完全开发手册
yii1和php5开发
ThinkPHP5.0完全开发手册
jQuery 3.1 参考手册
Underscore1.8.3 参考手册
Swift3 中文手册
Sass 3.4.21 中文手册
Backbone.js 1.1.2 API中文文档
JSDoc 参考手册
Webpack 2.2 中文文档
JavaScript 全栈教程
Nginx 中文官方手册
CSS4.2.4 参考手册
ThinkPHP5.1完全开发手册.CHM
HTML/CSS »
Html
Bootstrap
HTML5
CSS
CSS3
Foundation
JavaScript »
JavaScript
jQuery
HTML DOM
AngularJS
jQuery UI
jQuery EasyUI
Node.js
JSON
Highcharts
AJAX
React
jQuery插件大全
AlloyUI
Vue.js v2.0 中文
Vuex
vue-router
Underscore.js
Zepto.js
程序设计 »
PHP
Java
JSP
Python
Python3
Django
Linux
Ruby
C
C++
Servlet
Lua
Go
设计模式
正则表达式
ASP
AppML
VBScript
Scala
数据库 »
SQL
MySQL
SQLite
MongoDB
Redis
Memcached
移动端 »
jQuery Mobile
Android
ionic
IOS
Sencha Touch
Clouda+
efe
Frozen UI
Amaze UI
CardKit
App.js
Mobile Angular UI
Kendo UI
PhoneGap
Framework7
Junior
Jingle
mui
SUI Mobile
ReactNative
Weex
APICloud
Wex5
Ratchet
HTML5plus
Plane UI
Swift 教程
XML 教程 »
XML
DTD
XML DOM
XSLT
XPath
XQuery
XLink
XML Schema
XSLFO
SVG
ASP.NET »
ASP.NET
C#
开发工具 »
Eclipse
Git
Firebug
SVN 教程
Chrome 控制台
开源项目 »
Yii中文参考手册
Yii1开发教程
Yii2开发教程
ThinkPHP3.1开发教程
ThinkPHP3.2.3开发教程
地图开发
Wordpress
Laravel中文文档
Web Service »
Web Service 教程
WSDL 教程
SOAP 教程
RDF 教程
RSS 教程
转码工具 »
HTML/JavaScript格式化
CSS 格式化/压缩
JS格式化/加密/压缩
Native互换Unicode大全
日期格式化工具
Markdown转HTML
CSS 整理压缩
JSON 在线解析
短网址生成
代码处理 »
进制互换大全
16进制互换RGB
简体转繁体
汉字转拼音
小写转大写
大写转小写
加密和解密
繁体转简体
实用工具 »
Bootstrap图标定制
CSS 颜色选择器
字数统计
正则表达式测试
htpasswd 生成器
全世界数据库
IP归属地查询
实用计算器
生成二维码
ICO图标制作
CSS3 气泡对话框
CSS & JS Hack 大全
CSS3 背景渐变色生成器
CSS3 阴影边框生成器
CSS3 动画工具
Web 常用字体演示
CSS3 选择器演示
CSS 中文字体 Unicode 编码表
CSS3 GitHub Buttons
CSS Webkit 自定义滚动条样式
在线自动分词
ionic图标
阿里巴巴矢量图标库
IcoMoon 图标库
CSS3 代码生成
CSS3 Flexbox 演示
便民工具 »
快递查询
安全期计算器
周公解梦
笑话大全
常用对照表 »
HTTP Content-type 详细对照表
HTML特殊转义字符对照表
ASCII对照表
HTTP状态码详解
运算符优先级
TCP/UDP常见端口参考
经典小游戏 »
像素小鸟
爱消除
飞更高
俄罗斯方块
台球
贪吃蛇
拼图魔方
坦克大战
解救公主
中国象棋
压扁小鸟
打飞字
Flappy小鸟
登陆
小提示
Ctrl+/
代码提示(需
IE11
)
F11
键放大
ESC
键缩小
PgUp
上页
PgDn
下页
推荐代码
1
jQuery owlcarousel 旋转木马
2
jQuery仿蜜淘在线客服
3
jQuery-插件-图片左右无缝滚动
新7款HTML5/CSS3特效之浏览器的小泥块
新7款HTML5/CSS3特效之图片扇形展开
底部工具条,支持动画关闭,Li列表滚动,jQuery版
jquery相关的动画操作小例子
超酷jQuery菜单代码
CSS3圆角+投影效果带背景色的表格
鼠标移到图片上,图片开始疯狂抖动
8种超炫的html5 Loading加载图标动画
点击后文字会炸开的HTML5特效 图片爆炸效果
流动的网页背景代码,是不是很漂亮?
jQuery鼠标悬浮遮罩显示分享按钮
CSS3鼠标悬停360度旋转效果
运行代码
缩小
引入JS
jQuery
»
3.0.0
2.2.0
2.1.4
2.1.3
2.1.2
2.1.1
2.1.0
2.0.3
2.0.2
2.0.1
2.0.0
1.12.0
1.11.3
1.11.2
1.11.1
1.11.0
1.10.2
1.10.1
1.10.0
1.9.1
1.9.0
1.8.3
1.8.2
1.8.1
1.8.0
1.7.2
1.7.1
1.7
1.6.4
1.6.2
1.6.1
1.4.4
1.4.3
1.4.2
1.4.1
1.4.0
prototype
»
1.7.3
1.7.2
1.7.1.0
1.7.0.0
Angular
»
2.0.0-beta.0
2.0.0-alpha.55
1.5.0-rc.0
1.4.8
1.4.0
1.3.20
1.2.29
1.1.5
1.0.8
Underscore
»
1.8.3
1.7.0
1.6.0
1.5.2
1.4.4
1.3.3
1.2.4
1.1.7
Dojo
»
1.10.4
1.9.7
1.8.10
1.7.8
1.6.3
1.5.4
1.4.6
1.3.3
Mootools
»
core1.6.0
core-compat1.6.0
core1.5.2
core-compat1.5.2
core-full-compat-yc1.4.5
core-full-compat1.4.5
core-full-nocompat-yc1.4.5
core-full-nocompat1.4.5
Respond
»
1.4.2
1.4.1
1.4.0
1.3.0
1.2.0
1.1.0
html5shiv
»
3.7.3
3.7.2
3.7.1
3.7.0
3.7
3.6.2
3.6.1
3.6
引入框架
jQueryMobile
»
1.4.5
1.4.4
1.4.3
1.4.2
1.4.1
1.4.0
1.3.2
jQueryUI
»
1.11.4
1.11.3
1.11.2
1.11.1
1.11.0
1.10.4
1.10.3
1.10.2
Bootstrap
»
3.3.6
3.3.5
3.3.0
3.2.0
2.3.2
CDN库
CDN公共库
»
BootCDN开源项目CDN服务
引入图片
代码换肤
选择换肤
»
汉王
HTML代码
复制
格式化
注释
注释
清空
放大
<HTML> <HEAD> <TITLE>js弹出的日期选择器代码</TITLE> <STYLE type=text/css> BODY { MARGIN-TOP: 0px; FONT-SIZE: 9pt; MARGIN-LEFT: 0px; MARGIN-RIGHT: 0px; FONT-FAMILY: "微软雅黑";} A {FONT-WEIGHT: 400; FONT-SIZE: 9pt; COLOR: black; TEXT-DECORATION: none;} A:hover {FONT-WEIGHT: 400; FONT-SIZE: 9pt; COLOR: red; TEXT-DECORATION: underline;} A:active {FONT: 9pt "宋体"; CURSOR: hand; COLOR: #ff0033;} .STYLE1 { font-size: 40px; font-family: "微软雅黑"; color: #9900FF; } .STYLE2 { font-size: 30px; font-weight: bold; font-family: "微软雅黑"; color: #0000FF; } </STYLE> <META http-equiv=Content-Type content="text/html; charset=gb2312"> </HEAD> <BODY bgColor=#fef4d9> <CENTER> <span class="STYLE1">弹出的日期选择框</span> </CENTER><BR> <CENTER> <TABLE borderColor=#CCFFFF border=5 borderlight="green"> <TBODY> <TR> <TD align=middle> <SCRIPT language=JavaScript> var weekend = [0,6]; var weekendColor = "#e0e0e0"; var fontface = "Verdana"; var fontsize = 8; var gNow = new Date(); var ggWinContent; var ggPosX = -1; var ggPosY = -1; Calendar.Months = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"]; Calendar.DOMonth = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31]; Calendar.lDOMonth = [31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31]; function Calendar(p_item, p_month, p_year, p_format) { if ((p_month == null) && (p_year == null)) return; if (p_month == null) { this.gMonthName = null; this.gMonth = null; this.gYearly = true; } else { this.gMonthName = Calendar.get_month(p_month); this.gMonth = new Number(p_month); this.gYearly = false; } this.gYear = p_year; this.gFormat = p_format; this.gBGColor = "white"; this.gFGColor = "black"; this.gTextColor = "black"; this.gHeaderColor = "black"; this.gReturnItem = p_item; } Calendar.get_month = Calendar_get_month; Calendar.get_daysofmonth = Calendar_get_daysofmonth; Calendar.calc_month_year = Calendar_calc_month_year; function Calendar_get_month(monthNo) { return Calendar.Months[monthNo]; } function Calendar_get_daysofmonth(monthNo, p_year) { if ((p_year % 4) == 0) { if ((p_year % 100) == 0 && (p_year % 400) != 0) return Calendar.DOMonth[monthNo]; return Calendar.lDOMonth[monthNo]; } else return Calendar.DOMonth[monthNo]; } function Calendar_calc_month_year(p_Month, p_Year, incr) { var ret_arr = new Array(); if (incr == -1) { // B A C K W A R D if (p_Month == 0) { ret_arr[0] = 11; ret_arr[1] = parseInt(p_Year) - 1; } else { ret_arr[0] = parseInt(p_Month) - 1; ret_arr[1] = parseInt(p_Year); } } else if (incr == 1) { // F O R W A R D if (p_Month == 11) { ret_arr[0] = 0; ret_arr[1] = parseInt(p_Year) + 1; } else { ret_arr[0] = parseInt(p_Month) + 1; ret_arr[1] = parseInt(p_Year); } } return ret_arr; } function Calendar_calc_month_year(p_Month, p_Year, incr) { var ret_arr = new Array(); if (incr == -1) { // B A C K W A R D if (p_Month == 0) { ret_arr[0] = 11; ret_arr[1] = parseInt(p_Year) - 1; } else { ret_arr[0] = parseInt(p_Month) - 1; ret_arr[1] = parseInt(p_Year); } } else if (incr == 1) { // F O R W A R D if (p_Month == 11) { ret_arr[0] = 0; ret_arr[1] = parseInt(p_Year) + 1; } else { ret_arr[0] = parseInt(p_Month) + 1; ret_arr[1] = parseInt(p_Year); } } return ret_arr; } new Calendar(); Calendar.prototype.getMonthlyCalendarCode = function() { var vCode = ""; var vHeader_Code = ""; var vData_Code = ""; vCode += ("<div align=center><TABLE BORDER=1 BGCOLOR=\"" + this.gBGColor + "\" style='font-size:" + fontsize + "pt;'>"); vHeader_Code = this.cal_header(); vData_Code = this.cal_data(); vCode += (vHeader_Code + vData_Code); vCode += "</TABLE></div>"; return vCode; } Calendar.prototype.show = function() { var vCode = ""; ggWinContent += ("<FONT FACE='" + fontface + "' ><B>"); ggWinContent += (this.gMonthName + " " + this.gYear); ggWinContent += "</B><BR>"; var prevMMYYYY = Calendar.calc_month_year(this.gMonth, this.gYear, -1); var prevMM = prevMMYYYY[0]; var prevYYYY = prevMMYYYY[1]; var nextMMYYYY = Calendar.calc_month_year(this.gMonth, this.gYear, 1); var nextMM = nextMMYYYY[0]; var nextYYYY = nextMMYYYY[1]; ggWinContent += ("<TABLE WIDTH='100%' BORDER=1 CELLSPACING=0 CELLPADDING=0 BGCOLOR='#e0e0e0' style='font-size:" + fontsize + "pt;'><TR><TD ALIGN=center>"); ggWinContent += ("[<A HREF=\"javascript:void(0);\" " + "onMouseOver=\"window.status='Go back one year'; return true;\" " + "onMouseOut=\"window.status=''; return true;\" " + "onClick=\"Build(" + "'" + this.gReturnItem + "', '" + this.gMonth + "', '" + (parseInt(this.gYear)-1) + "', '" + this.gFormat + "'" + ");" + "\"><<Year<\/A>]</TD><TD ALIGN=center>"); ggWinContent += ("[<A HREF=\"javascript:void(0);\" " + "onMouseOver=\"window.status='Go back one month'; return true;\" " + "onMouseOut=\"window.status=''; return true;\" " + "onClick=\"Build(" + "'" + this.gReturnItem + "', '" + prevMM + "', '" + prevYYYY + "', '" + this.gFormat + "'" + ");" + "\"><Mon<\/A>]</TD><TD ALIGN=center>"); ggWinContent += " </TD><TD ALIGN=center>"; ggWinContent += ("[<A HREF=\"javascript:void(0);\" " + "onMouseOver=\"window.status='Go forward one month'; return true;\" " + "onMouseOut=\"window.status=''; return true;\" " + "onClick=\"Build(" + "'" + this.gReturnItem + "', '" + nextMM + "', '" + nextYYYY + "', '" + this.gFormat + "'" + ");" + "\">Mon><\/A>]</TD><TD ALIGN=center>"); ggWinContent += ("[<A HREF=\"javascript:void(0);\" " + "onMouseOver=\"window.status='Go forward one year'; return true;\" " + "onMouseOut=\"window.status=''; return true;\" " + "onClick=\"Build(" + "'" + this.gReturnItem + "', '" + this.gMonth + "', '" + (parseInt(this.gYear)+1) + "', '" + this.gFormat + "'" + ");" + "\">Year>><\/A>]</TD></TR></TABLE><BR>"); vCode = this.getMonthlyCalendarCode(); ggWinContent += vCode; } Calendar.prototype.showY = function() { var vCode = ""; var i; ggWinContent += "<FONT FACE='" + fontface + "' ><B>" ggWinContent += ("Year : " + this.gYear); ggWinContent += "</B><BR>"; var prevYYYY = parseInt(this.gYear) - 1; var nextYYYY = parseInt(this.gYear) + 1; ggWinContent += ("<TABLE WIDTH='100%' BORDER=1 CELLSPACING=0 CELLPADDING=0 BGCOLOR='#e0e0e0' style='font-size:" + fontsize + "pt;'><TR><TD ALIGN=center>"); ggWinContent += ("[<A HREF=\"javascript:void(0);\" " + "onMouseOver=\"window.status='Go back one year'; return true;\" " + "onMouseOut=\"window.status=''; return true;\" " + "onClick=\"Build(" + "'" + this.gReturnItem + "', null, '" + prevYYYY + "', '" + this.gFormat + "'" + ");" + "\"><<Year<\/A>]</TD><TD ALIGN=center>"); ggWinContent += " </TD><TD ALIGN=center>"; ggWinContent += ("[<A HREF=\"javascript:void(0);\" " + "onMouseOver=\"window.status='Go forward one year'; return true;\" " + "onMouseOut=\"window.status=''; return true;\" " + "onClick=\"Build(" + "'" + this.gReturnItem + "', null, '" + nextYYYY + "', '" + this.gFormat + "'" + ");" + "\">Year>><\/A>]</TD></TR></TABLE><BR>"); ggWinContent += ("<TABLE WIDTH='100%' BORDER=0 CELLSPACING=0 CELLPADDING=5 style='font-size:" + fontsize + "pt;'><TR>"); var j; for (i=0; i<12; i++) { // start the table cell ggWinContent += "<TD ALIGN='center' VALIGN='top'>"; this.gMonth = i; this.gMonthName = Calendar.get_month(this.gMonth); vCode = this.getMonthlyCalendarCode(); ggWinContent += (this.gMonthName + "/" + this.gYear + "<BR>"); ggWinContent += vCode; ggWinContent += "</TD>"; if (i == 3 || i == 7) { ggWinContent += "</TR><TR>"; } } ggWinContent += "</TR></TABLE></font><BR>"; } Calendar.prototype.cal_header = function() { var vCode = ""; vCode = vCode + "<TR>"; vCode = vCode + "<TD WIDTH='14%'><FONT FACE='" + fontface + "' COLOR='" + this.gHeaderColor + "'><B>Sun</B></FONT></TD>"; vCode = vCode + "<TD WIDTH='14%'><FONT FACE='" + fontface + "' COLOR='" + this.gHeaderColor + "'><B>Mon</B></FONT></TD>"; vCode = vCode + "<TD WIDTH='14%'><FONT FACE='" + fontface + "' COLOR='" + this.gHeaderColor + "'><B>Tue</B></FONT></TD>"; vCode = vCode + "<TD WIDTH='14%'><FONT FACE='" + fontface + "' COLOR='" + this.gHeaderColor + "'><B>Wed</B></FONT></TD>"; vCode = vCode + "<TD WIDTH='14%'><FONT FACE='" + fontface + "' COLOR='" + this.gHeaderColor + "'><B>Thu</B></FONT></TD>"; vCode = vCode + "<TD WIDTH='14%'><FONT FACE='" + fontface + "' COLOR='" + this.gHeaderColor + "'><B>Fri</B></FONT></TD>"; vCode = vCode + "<TD WIDTH='16%'><FONT FACE='" + fontface + "' COLOR='" + this.gHeaderColor + "'><B>Sat</B></FONT></TD>"; vCode = vCode + "</TR>"; return vCode; } Calendar.prototype.cal_data = function() { var vDate = new Date(); vDate.setDate(1); vDate.setMonth(this.gMonth); vDate.setFullYear(this.gYear); var vFirstDay=vDate.getDay(); var vDay=1; var vLastDay=Calendar.get_daysofmonth(this.gMonth, this.gYear); var vOnLastDay=0; var vCode = ""; vCode = vCode + "<TR>"; for (i=0; i<vFirstDay; i++) { vCode = vCode + "<TD WIDTH='14%'" + this.write_weekend_string(i) + "><FONT FACE='" + fontface + "'> </FONT></TD>"; } for (j=vFirstDay; j<7; j++) { vCode = vCode + "<TD WIDTH='14%'" + this.write_weekend_string(j) + "><FONT FACE='" + fontface + "'>" + "<A HREF='javascript:void(0);' " + "onMouseOver=\"window.status='set date to " + this.format_data(vDay) + "'; return true;\" " + "onMouseOut=\"window.status=' '; return true;\" " + "onClick=\"document." + this.gReturnItem + ".value='" + this.format_data(vDay) + "';ggPosX=-1;ggPosY=-1;nd();nd();\">" + this.format_day(vDay) + "</A>" + "</FONT></TD>"; vDay=vDay + 1; } vCode = vCode + "</TR>"; for (k=2; k<7; k++) { vCode = vCode + "<TR>"; for (j=0; j<7; j++) { vCode = vCode + "<TD WIDTH='14%'" + this.write_weekend_string(j) + "><FONT FACE='" + fontface + "'>" + "<A HREF='javascript:void(0);' " + "onMouseOver=\"window.status='set date to " + this.format_data(vDay) + "'; return true;\" " + "onMouseOut=\"window.status=' '; return true;\" " + "onClick=\"document." + this.gReturnItem + ".value='" + this.format_data(vDay) + "';window.scroll(0,ggPosY);ggPosX=-1;ggPosY=-1;nd();nd();\">" + this.format_day(vDay) + "</A>" + "</FONT></TD>"; vDay=vDay + 1; if (vDay > vLastDay) { vOnLastDay = 1; break; } } if (j == 6) vCode = vCode + "</TR>"; if (vOnLastDay == 1) break; } for (m=1; m<(7-j); m++) { if (this.gYearly) vCode = vCode + "<TD WIDTH='14%'" + this.write_weekend_string(j+m) + "><FONT FACE='" + fontface + "' COLOR='gray'> </FONT></TD>"; else vCode = vCode + "<TD WIDTH='14%'" + this.write_weekend_string(j+m) + "><FONT FACE='" + fontface + "' COLOR='gray'>" + m + "</FONT></TD>"; } return vCode; } Calendar.prototype.format_day = function(vday) { var vNowDay = gNow.getDate(); var vNowMonth = gNow.getMonth(); var vNowYear = gNow.getFullYear(); if (vday == vNowDay && this.gMonth == vNowMonth && this.gYear == vNowYear) return ("<FONT COLOR=\"RED\"><B>" + vday + "</B></FONT>"); else return (vday); } Calendar.prototype.write_weekend_string = function(vday) { var i; for (i=0; i<weekend.length; i++) { if (vday == weekend[i]) return (" BGCOLOR=\"" + weekendColor + "\""); } return ""; } Calendar.prototype.format_data = function(p_day) { var vData; var vMonth = 1 + this.gMonth; vMonth = (vMonth.toString().length < 2) ? "0" + vMonth : vMonth; var vMon = Calendar.get_month(this.gMonth).substr(0,3).toUpperCase(); var vFMon = Calendar.get_month(this.gMonth).toUpperCase(); var vY4 = new String(this.gYear); var vY2 = new String(this.gYear.substr(2,2)); var vDD = (p_day.toString().length < 2) ? "0" + p_day : p_day; switch (this.gFormat) { case "MM\/DD\/YYYY" : vData = vMonth + "\/" + vDD + "\/" + vY4; break; case "MM\/DD\/YY" : vData = vMonth + "\/" + vDD + "\/" + vY2; break; case "MM-DD-YYYY" : vData = vMonth + "-" + vDD + "-" + vY4; break; case "YYYY-MM-DD" : vData = vY4 + "-" + vMonth + "-" + vDD; break; case "MM-DD-YY" : vData = vMonth + "-" + vDD + "-" + vY2; break; case "DD\/MON\/YYYY" : vData = vDD + "\/" + vMon + "\/" + vY4; break; case "DD\/MON\/YY" : vData = vDD + "\/" + vMon + "\/" + vY2; break; case "DD-MON-YYYY" : vData = vDD + "-" + vMon + "-" + vY4; break; case "DD-MON-YY" : vData = vDD + "-" + vMon + "-" + vY2; break; case "DD\/MONTH\/YYYY" : vData = vDD + "\/" + vFMon + "\/" + vY4; break; case "DD\/MONTH\/YY" : vData = vDD + "\/" + vFMon + "\/" + vY2; break; case "DD-MONTH-YYYY" : vData = vDD + "-" + vFMon + "-" + vY4; break; case "DD-MONTH-YY" : vData = vDD + "-" + vFMon + "-" + vY2; break; case "DD\/MM\/YYYY" : vData = vDD + "\/" + vMonth + "\/" + vY4; break; case "DD\/MM\/YY" : vData = vDD + "\/" + vMonth + "\/" + vY2; break; case "DD-MM-YYYY" : vData = vDD + "-" + vMonth + "-" + vY4; break; case "DD-MM-YY" : vData = vDD + "-" + vMonth + "-" + vY2; break; default : vData = vMonth + "\/" + vDD + "\/" + vY4; } return vData; } function Build(p_item, p_month, p_year, p_format) { gCal = new Calendar(p_item, p_month, p_year, p_format); gCal.gBGColor="white"; gCal.gLinkColor="black"; gCal.gTextColor="black"; gCal.gHeaderColor="darkgreen"; ggWinContent = ""; if (gCal.gYearly) { if (ggPosX == -1) ggPosX = 10; if (ggPosY == -1) ggPosY = 10; if (fontsize == 8) fontsize = 6; gCal.showY(); } else { gCal.show(); } if (ggPosX == -1 && ggPosY == -1) { overlib(ggWinContent, AUTOSTATUSCAP, STICKY, CLOSECLICK, CSSSTYLE, TEXTSIZEUNIT, "pt", TEXTSIZE, 8, CAPTIONSIZEUNIT, "pt", CAPTIONSIZE, 8, CLOSESIZEUNIT, "pt", CLOSESIZE, 8, CAPTION, "Select a date", OFFSETX, 20, OFFSETY, -20); if ( (ns4) || (ie4) ) { ggPosX = parseInt(over.left); ggPosY = parseInt(over.top); } else if (ns6) { ggPosX = parseInt(over.style.left); ggPosY = parseInt(over.style.top); } } else { overlib(ggWinContent, AUTOSTATUSCAP, STICKY, CLOSECLICK, CSSSTYLE, TEXTSIZEUNIT, "pt", TEXTSIZE, 8, CAPTIONSIZEUNIT, "pt", CAPTIONSIZE, 8, CLOSESIZEUNIT, "pt", CLOSESIZE, 8, CAPTION, "Select a date", FIXX, ggPosX, FIXY, ggPosY); } window.scroll(ggPosX, ggPosY); } function show_calendar() { p_item = arguments[0]; if (arguments[1] == null) p_month = new String(gNow.getMonth()); else p_month = arguments[1]; if (arguments[2] == "" || arguments[2] == null) p_year = new String(gNow.getFullYear().toString()); else p_year = arguments[2]; if (arguments[3] == null) p_format = "YYYY-MM-DD"; else p_format = arguments[3]; Build(p_item, p_month, p_year, p_format); } function show_yearly_calendar() { p_item = arguments[0]; if (arguments[1] == "" || arguments[1] == null) p_year = new String(gNow.getFullYear().toString()); else p_year = arguments[1]; if (arguments[2] == null) p_format = "YYYY-MM-DD"; else p_format = arguments[2]; Build(p_item, null, p_year, p_format); } </SCRIPT> <SCRIPT language=JavaScript> var INARRAY=1; var CAPARRAY=2; var STICKY=3; var BACKGROUND=4; var NOCLOSE=5; var CAPTION=6; var LEFT=7; var RIGHT=8; var CENTER=9; var OFFSETX=10; var OFFSETY=11; var FGCOLOR=12; var BGCOLOR=13; var TEXTCOLOR=14; var CAPCOLOR=15; var CLOSECOLOR=16; var WIDTH=17; var BORDER=18; var STATUS=19; var AUTOSTATUS=20; var AUTOSTATUSCAP=21; var HEIGHT=22; var CLOSETEXT=23; var SNAPX=24; var SNAPY=25; var FIXX=26; var FIXY=27; var FGBACKGROUND=28; var BGBACKGROUND=29; var PADX=30;// PADX2 out var PADY=31;// PADY2 out var FULLHTML=34; var ABOVE=35; var BELOW=36; var CAPICON=37; var TEXTFONT=38; var CAPTIONFONT=39; var CLOSEFONT=40; var TEXTSIZE=41; var CAPTIONSIZE=42; var CLOSESIZE=43; var FRAME=44; var TIMEOUT=45; var FUNCTION=46; var DELAY=47; var HAUTO=48; var VAUTO=49; var CLOSECLICK=50; var CSSOFF=51; var CSSSTYLE=52; var CSSCLASS=53; var FGCLASS=54; var BGCLASS=55; var TEXTFONTCLASS=56; var CAPTIONFONTCLASS=57; var CLOSEFONTCLASS=58; var PADUNIT=59; var HEIGHTUNIT=60; var WIDTHUNIT=61; var TEXTSIZEUNIT=62; var TEXTDECORATION=63; var TEXTSTYLE=64; var TEXTWEIGHT=65; var CAPTIONSIZEUNIT=66; var CAPTIONDECORATION=67; var CAPTIONSTYLE=68; var CAPTIONWEIGHT=69; var CLOSESIZEUNIT=70; var CLOSEDECORATION=71; var CLOSESTYLE=72; var CLOSEWEIGHT=73; if(typeof ol_fgcolor=='undefined'){var ol_fgcolor="#CCCCFF";} if(typeof ol_bgcolor=='undefined'){var ol_bgcolor="#333399";} if(typeof ol_textcolor=='undefined'){var ol_textcolor="#000000";} if(typeof ol_capcolor=='undefined'){var ol_capcolor="#FFFFFF";} if(typeof ol_closecolor=='undefined'){var ol_closecolor="#9999FF";} if(typeof ol_textfont=='undefined'){var ol_textfont="Verdana,Arial,Helvetica";} if(typeof ol_captionfont=='undefined'){var ol_captionfont="Verdana,Arial,Helvetica";} if(typeof ol_closefont=='undefined'){var ol_closefont="Verdana,Arial,Helvetica";} if(typeof ol_textsize=='undefined'){var ol_textsize="1";} if(typeof ol_captionsize=='undefined'){var ol_captionsize="1";} if(typeof ol_closesize=='undefined'){var ol_closesize="1";} if(typeof ol_width=='undefined'){var ol_width="200";} if(typeof ol_border=='undefined'){var ol_border="1";} if(typeof ol_offsetx=='undefined'){var ol_offsetx=10;} if(typeof ol_offsety=='undefined'){var ol_offsety=10;} if(typeof ol_text=='undefined'){var ol_text="Default Text";} if(typeof ol_cap=='undefined'){var ol_cap="";} if(typeof ol_sticky=='undefined'){var ol_sticky=0;} if(typeof ol_background=='undefined'){var ol_background="";} if(typeof ol_close=='undefined'){var ol_close="Close";} if(typeof ol_hpos=='undefined'){var ol_hpos=8;} if(typeof ol_status=='undefined'){var ol_status="";} if(typeof ol_autostatus=='undefined'){var ol_autostatus=0;} if(typeof ol_height=='undefined'){var ol_height=-1;} if(typeof ol_snapx=='undefined'){var ol_snapx=0;} if(typeof ol_snapy=='undefined'){var ol_snapy=0;} if(typeof ol_fixx=='undefined'){var ol_fixx=-1;} if(typeof ol_fixy=='undefined'){var ol_fixy=-1;} if(typeof ol_fgbackground=='undefined'){var ol_fgbackground="";} if(typeof ol_bgbackground=='undefined'){var ol_bgbackground="";} if(typeof ol_padxl=='undefined'){var ol_padxl=1;} if(typeof ol_padxr=='undefined'){var ol_padxr=1;} if(typeof ol_padyt=='undefined'){var ol_padyt=1;} if(typeof ol_padyb=='undefined'){var ol_padyb=1;} if(typeof ol_fullhtml=='undefined'){var ol_fullhtml=0;} if(typeof ol_vpos=='undefined'){var ol_vpos=36;} if(typeof ol_aboveheight=='undefined'){var ol_aboveheight=0;} if(typeof ol_caption=='undefined'){var ol_capicon="";} if(typeof ol_frame=='undefined'){var ol_frame=self;} if(typeof ol_timeout=='undefined'){var ol_timeout=0;} if(typeof ol_function=='undefined'){var ol_function=Function();} if(typeof ol_delay=='undefined'){var ol_delay=0;} if(typeof ol_hauto=='undefined'){var ol_hauto=0;} if(typeof ol_vauto=='undefined'){var ol_vauto=0;} if(typeof ol_closeclick=='undefined'){var ol_closeclick=0;} if(typeof ol_css=='undefined'){var ol_css=51;} if(typeof ol_fgclass=='undefined'){var ol_fgclass="";} if(typeof ol_bgclass=='undefined'){var ol_bgclass="";} if(typeof ol_textfontclass=='undefined'){var ol_textfontclass="";} if(typeof ol_captionfontclass=='undefined'){var ol_captionfontclass="";} if(typeof ol_closefontclass=='undefined'){var ol_closefontclass="";} if(typeof ol_padunit=='undefined'){var ol_padunit="px";} if(typeof ol_heightunit=='undefined'){var ol_heightunit="px";} if(typeof ol_widthunit=='undefined'){var ol_widthunit="px";} if(typeof ol_textsizeunit=='undefined'){var ol_textsizeunit="px";} if(typeof ol_textdecoration=='undefined'){var ol_textdecoration="none";} if(typeof ol_textstyle=='undefined'){var ol_textstyle="normal";} if(typeof ol_textweight=='undefined'){var ol_textweight="normal";} if(typeof ol_captionsizeunit=='undefined'){var ol_captionsizeunit="px";} if(typeof ol_captiondecoration=='undefined'){var ol_captiondecoration="none";} if(typeof ol_captionstyle=='undefined'){var ol_captionstyle="normal";} if(typeof ol_captionweight=='undefined'){var ol_captionweight="bold";} if(typeof ol_closesizeunit=='undefined'){var ol_closesizeunit="px";} if(typeof ol_closedecoration=='undefined'){var ol_closedecoration="none";} if(typeof ol_closestyle=='undefined'){var ol_closestyle="normal";} if(typeof ol_closeweight=='undefined'){var ol_closeweight="normal";} if(typeof ol_texts=='undefined'){var ol_texts=new Array("Text 0", "Text 1");} if(typeof ol_caps=='undefined'){var ol_caps=new Array("Caption 0", "Caption 1");} var otext=""; var ocap=""; var osticky=0; var obackground=""; var oclose="Close"; var ohpos=8; var ooffsetx=2; var ooffsety=2; var ofgcolor=""; var obgcolor=""; var otextcolor=""; var ocapcolor=""; var oclosecolor=""; var owidth=100; var oborder=1; var ostatus=""; var oautostatus=0; var oheight=-1; var osnapx=0; var osnapy=0; var ofixx=-1; var ofixy=-1; var ofgbackground=""; var obgbackground=""; var opadxl=0; var opadxr=0; var opadyt=0; var opadyb=0; var ofullhtml=0; var ovpos=36; var oaboveheight=0; var ocapicon=""; var otextfont="Verdana,Arial,Helvetica"; var ocaptionfont="Verdana,Arial,Helvetica"; var oclosefont="Verdana,Arial,Helvetica"; var otextsize="1"; var ocaptionsize="1"; var oclosesize="1"; var oframe=self; var otimeout=0; var otimerid=0; var oallowmove=0; var ofunction=Function(); var odelay=0; var odelayid=0; var ohauto=0; var ovauto=0; var ocloseclick=0; var ocss=51; var ofgclass=""; var obgclass=""; var otextfontclass=""; var ocaptionfontclass=""; var oclosefontclass=""; var opadunit="px"; var oheightunit="px"; var owidthunit="px"; var otextsizeunit="px"; var otextdecoration=""; var otextstyle=""; var otextweight=""; var ocaptionsizeunit="px"; var ocaptiondecoration=""; var ocaptionstyle=""; var ocaptionweight=""; var oclosesizeunit="px"; var oclosedecoration=""; var oclosestyle=""; var ocloseweight=""; var ox=0; var oy=0; var oallow=0; var oshowingsticky=0; var oremovecounter=0; var over=null; var ns4=(document.layers)? true:false; var ns6=(document.getElementById)? true:false; var ie4=(document.all)? true:false; var ie5=false; if(ie4){ if((navigator.userAgent.indexOf('MSIE 5')> 0)||(navigator.userAgent.indexOf('MSIE 6')> 0)){ ie5=true; } if(ns6){ ns6=false; } } if((ns4)||(ie4)||(ns6)){ document.onmousemove=mouseMove if(ns4)document.captureEvents(Event.MOUSEMOVE) }else{ overlib=no_overlib; nd=no_overlib; ver3fix=true; } function no_overlib(){ return ver3fix; } function overlib(){ otext=ol_text; ocap=ol_cap; osticky=ol_sticky; obackground=ol_background; oclose=ol_close; ohpos=ol_hpos; ooffsetx=ol_offsetx; ooffsety=ol_offsety; ofgcolor=ol_fgcolor; obgcolor=ol_bgcolor; otextcolor=ol_textcolor; ocapcolor=ol_capcolor; oclosecolor=ol_closecolor; owidth=ol_width; oborder=ol_border; ostatus=ol_status; oautostatus=ol_autostatus; oheight=ol_height; osnapx=ol_snapx; osnapy=ol_snapy; ofixx=ol_fixx; ofixy=ol_fixy; ofgbackground=ol_fgbackground; obgbackground=ol_bgbackground; opadxl=ol_padxl; opadxr=ol_padxr; opadyt=ol_padyt; opadyb=ol_padyb; ofullhtml=ol_fullhtml; ovpos=ol_vpos; oaboveheight=ol_aboveheight; ocapicon=ol_capicon; otextfont=ol_textfont; ocaptionfont=ol_captionfont; oclosefont=ol_closefont; otextsize=ol_textsize; ocaptionsize=ol_captionsize; oclosesize=ol_closesize; otimeout=ol_timeout; ofunction=ol_function; odelay=ol_delay; ohauto=ol_hauto; ovauto=ol_vauto; ocloseclick=ol_closeclick; ocss=ol_css; ofgclass=ol_fgclass; obgclass=ol_bgclass; otextfontclass=ol_textfontclass; ocaptionfontclass=ol_captionfontclass; oclosefontclass=ol_closefontclass; opadunit=ol_padunit; oheightunit=ol_heightunit; owidthunit=ol_widthunit; otextsizeunit=ol_textsizeunit; otextdecoration=ol_textdecoration; otextstyle=ol_textstyle; otextweight=ol_textweight; ocaptionsizeunit=ol_captionsizeunit; ocaptiondecoration=ol_captiondecoration; ocaptionstyle=ol_captionstyle; ocaptionweight=ol_captionweight; oclosesizeunit=ol_closesizeunit; oclosedecoration=ol_closedecoration; oclosestyle=ol_closestyle; ocloseweight=ol_closeweight; if((ns4)||(ie4)||(ns6)){ oframe=ol_frame; if(ns4)over=oframe.document.overDiv if(ie4)over=oframe.overDiv.style if(ns6)over=oframe.document.getElementById("overDiv"); } var c=-1; var ar=arguments; for(i=0;i < ar.length;i++){ if(c < 0){ if(ar[i]==1){ otext=ol_texts[ar[++i]]; }else{ otext=ar[i]; } c=0; }else{ if(ar[i]==1){otext=ol_texts[ar[++i]];continue;} if(ar[i]==2){ocap=ol_caps[ar[++i]];continue;} if(ar[i]==3){osticky=1;continue;} if(ar[i]==4){obackground=ar[++i];continue;} if(ar[i]==NOCLOSE){oclose="";continue;} if(ar[i]==6){ocap=ar[++i];continue;} if(ar[i]==9 || ar[i]==7 || ar[i]==8){ohpos=ar[i];continue;} if(ar[i]==10){ooffsetx=ar[++i];continue;} if(ar[i]==11){ooffsety=ar[++i];continue;} if(ar[i]==12){ofgcolor=ar[++i];continue;} if(ar[i]==13){obgcolor=ar[++i];continue;} if(ar[i]==14){otextcolor=ar[++i];continue;} if(ar[i]==15){ocapcolor=ar[++i];continue;} if(ar[i]==16){oclosecolor=ar[++i];continue;} if(ar[i]==17){owidth=ar[++i];continue;} if(ar[i]==18){oborder=ar[++i];continue;} if(ar[i]==19){ostatus=ar[++i];continue;} if(ar[i]==20){oautostatus=1;continue;} if(ar[i]==21){oautostatus=2;continue;} if(ar[i]==22){oheight=ar[++i];oaboveheight=ar[i];continue;}// Same param again. if(ar[i]==23){oclose=ar[++i];continue;} if(ar[i]==24){osnapx=ar[++i];continue;} if(ar[i]==25){osnapy=ar[++i];continue;} if(ar[i]==26){ofixx=ar[++i];continue;} if(ar[i]==27){ofixy=ar[++i];continue;} if(ar[i]==28){ofgbackground=ar[++i];continue;} if(ar[i]==29){obgbackground=ar[++i];continue;} if(ar[i]==30){opadxl=ar[++i];opadxr=ar[++i];continue;} if(ar[i]==31){opadyt=ar[++i];opadyb=ar[++i];continue;} if(ar[i]==34){ofullhtml=1;continue;} if(ar[i]==36 || ar[i]==35){ovpos=ar[i];continue;} if(ar[i]==37){ocapicon=ar[++i];continue;} if(ar[i]==38){otextfont=ar[++i];continue;} if(ar[i]==39){ocaptionfont=ar[++i];continue;} if(ar[i]==40){oclosefont=ar[++i];continue;} if(ar[i]==41){otextsize=ar[++i];continue;} if(ar[i]==42){ocaptionsize=ar[++i];continue;} if(ar[i]==43){oclosesize=ar[++i];continue;} if(ar[i]==44){opt_FRAME(ar[++i]);continue;} if(ar[i]==45){otimeout=ar[++i];continue;} if(ar[i]==46){opt_FUNCTION(ar[++i]);continue;} if(ar[i]==47){odelay=ar[++i];continue;} if(ar[i]==48){ohauto=(ohauto==0)? 1 : 0;continue;} if(ar[i]==49){ovauto=(ovauto==0)? 1 : 0;continue;} if(ar[i]==50){ocloseclick=(ocloseclick==0)? 1 : 0;continue;} if(ar[i]==51){ocss=ar[i];continue;} if(ar[i]==52){ocss=ar[i];continue;} if(ar[i]==53){ocss=ar[i];continue;} if(ar[i]==54){ofgclass=ar[++i];continue;} if(ar[i]==55){obgclass=ar[++i];continue;} if(ar[i]==56){otextfontclass=ar[++i];continue;} if(ar[i]==57){ocaptionfontclass=ar[++i];continue;} if(ar[i]==58){oclosefontclass=ar[++i];continue;} if(ar[i]==59){opadunit=ar[++i];continue;} if(ar[i]==60){oheightunit=ar[++i];continue;} if(ar[i]==61){owidthunit=ar[++i];continue;} if(ar[i]==62){otextsizeunit=ar[++i];continue;} if(ar[i]==63){otextdecoration=ar[++i];continue;} if(ar[i]==64){otextstyle=ar[++i];continue;} if(ar[i]==65){otextweight=ar[++i];continue;} if(ar[i]==66){ocaptionsizeunit=ar[++i];continue;} if(ar[i]==67){ocaptiondecoration=ar[++i];continue;} if(ar[i]==68){ocaptionstyle=ar[++i];continue;} if(ar[i]==69){ocaptionweight=ar[++i];continue;} if(ar[i]==70){oclosesizeunit=ar[++i];continue;} if(ar[i]==71){oclosedecoration=ar[++i];continue;} if(ar[i]==72){oclosestyle=ar[++i];continue;} if(ar[i]==73){ocloseweight=ar[++i];continue;} } } if(odelay==0){ return overlib350(); }else{ odelayid=setTimeout("overlib350()", odelay); if(osticky){ return false; }else{ return true; } } } function nd(){ if(oremovecounter >=1){oshowingsticky=0}; if((ns4)||(ie4)||(ns6)){ if(oshowingsticky==0){ oallowmove=0; if(over !=null)hideObject(over); }else{ oremovecounter++; } } return true; } function overlib350(){ var layerhtml; if(obackground !="" || ofullhtml){ layerhtml=ol_content_background(otext, obackground, ofullhtml); }else{ if(ofgbackground !="" && ocss==CSSOFF){ ofgbackground="BACKGROUND=\""+ofgbackground+"\""; } if(obgbackground !="" && ocss==CSSOFF){ obgbackground="BACKGROUND=\""+obgbackground+"\""; } if(ofgcolor !="" && ocss==CSSOFF){ ofgcolor="BGCOLOR=\""+ofgcolor+"\""; } if(obgcolor !="" && ocss==CSSOFF){ obgcolor="BGCOLOR=\""+obgcolor+"\""; } if(oheight > 0 && ocss==51){ oheight="HEIGHT=" + oheight; }else{ oheight=""; } if(ocap==""){ layerhtml=ol_content_simple(otext); }else{ if(osticky){ layerhtml=ol_content_caption(otext, ocap, oclose); }else{ layerhtml=ol_content_caption(otext, ocap, ""); } } } if(osticky){ oshowingsticky=1; oremovecounter=0; } layerWrite(layerhtml); if(oautostatus > 0){ ostatus=otext; if(oautostatus > 1){ ostatus=ocap; } } oallowmove=0; if(otimeout > 0){ if(otimerid > 0)clearTimeout(otimerid); otimerid=setTimeout("cClick()", otimeout); } disp(ostatus); if(osticky){ oallowmove=0; return false; }else{ return true; } } function ol_content_simple(text){ if(ocss==CSSCLASS)txt="<TABLE WIDTH="+owidth+" BORDER=0 CELLPADDING="+oborder+" CELLSPACING=0 class=\""+obgclass+"\"><TR><TD><TABLE WIDTH=100% BORDER=0 CELLPADDING=2 CELLSPACING=0 class=\""+ofgclass+"\"><TR><TD VALIGN=TOP><FONT class=\""+otextfontclass+"\">"+text+"</FONT></TD></TR></TABLE></TD></TR></TABLE>"; if(ocss==CSSSTYLE)txt="<TABLE WIDTH="+owidth+" BORDER=0 CELLPADDING="+oborder+" CELLSPACING=0 style=\"background-color: "+obgcolor+";height: "+oheight+oheightunit+";\"><TR><TD><TABLE WIDTH=100% BORDER=0 CELLPADDING=2 CELLSPACING=0 style=\"color: "+ofgcolor+";background-color: "+ofgcolor+";height: "+oheight+oheightunit+";\"><TR><TD VALIGN=TOP><FONT style=\"font-family: "+otextfont+";color: "+otextcolor+";font-size: "+otextsize+otextsizeunit+";text-decoration: "+otextdecoration+";font-weight: "+otextweight+";font-style:"+otextstyle+"\">"+text+"</FONT></TD></TR></TABLE></TD></TR></TABLE>"; if(ocss==CSSOFF)txt="<TABLE WIDTH="+owidth+" BORDER=0 CELLPADDING="+oborder+" CELLSPACING=0 "+obgcolor+" "+oheight+"><TR><TD><TABLE WIDTH=100% BORDER=0 CELLPADDING=2 CELLSPACING=0 "+ofgcolor+" "+ofgbackground+" "+oheight+"><TR><TD VALIGN=TOP><FONT FACE=\""+otextfont+"\" COLOR=\""+otextcolor+"\" SIZE=\""+otextsize+"\">"+text+"</FONT></TD></TR></TABLE></TD></TR></TABLE>"; set_background(""); return txt; } function ol_content_caption(text, title, close){ closing=""; closeevent="onMouseOver"; if(ocloseclick==1)closeevent="onClick"; if(ocapicon !="")ocapicon="<IMG SRC=\""+ocapicon+"\"> "; if(close !=""){ if(ocss==CSSCLASS)closing="<TD ALIGN=RIGHT><A HREF=\"/\" "+closeevent+"=\"return cClick();\" class=\""+oclosefontclass+"\">"+close+"</A></TD>"; if(ocss==CSSSTYLE)closing="<TD ALIGN=RIGHT><A HREF=\"/\" "+closeevent+"=\"return cClick();\" style=\"color: "+oclosecolor+";font-family: "+oclosefont+";font-size: "+oclosesize+oclosesizeunit+";text-decoration: "+oclosedecoration+";font-weight: "+ocloseweight+";font-style:"+oclosestyle+";\">"+close+"</A></TD>"; if(ocss==CSSOFF)closing="<TD ALIGN=RIGHT><A HREF=\"/\" "+closeevent+"=\"return cClick();\"><FONT COLOR=\""+oclosecolor+"\" FACE=\""+oclosefont+"\" SIZE=\""+oclosesize+"\">"+close+"</FONT></A></TD>"; } if(ocss==CSSCLASS)txt="<TABLE WIDTH="+owidth+" BORDER=0 CELLPADDING="+oborder+" CELLSPACING=0 class=\""+obgclass+"\"><TR><TD><TABLE WIDTH=100% BORDER=0 CELLPADDING=0 CELLSPACING=0><TR><TD><FONT class=\""+ocaptionfontclass+"\">"+ocapicon+title+"</FONT></TD>"+closing+"</TR></TABLE><TABLE WIDTH=100% BORDER=0 CELLPADDING=2 CELLSPACING=0 class=\""+ofgclass+"\"><TR><TD VALIGN=TOP><FONT class=\""+otextfontclass+"\">"+text+"</FONT></TD></TR></TABLE></TD></TR></TABLE>"; if(ocss==CSSSTYLE)txt="<TABLE WIDTH="+owidth+" BORDER=0 CELLPADDING="+oborder+" CELLSPACING=0 style=\"background-color: "+obgcolor+";background-image: url("+obgbackground+");height: "+oheight+oheightunit+";\"><TR><TD><TABLE WIDTH=100% BORDER=0 CELLPADDING=0 CELLSPACING=0><TR><TD><FONT style=\"font-family: "+ocaptionfont+";color: "+ocapcolor+";font-size: "+ocaptionsize+ocaptionsizeunit+";font-weight: "+ocaptionweight+";font-style: "+ocaptionstyle+";\">"+ocapicon+title+"</FONT></TD>"+closing+"</TR></TABLE><TABLE WIDTH=100% BORDER=0 CELLPADDING=2 CELLSPACING=0 style=\"color: "+ofgcolor+";background-color: "+ofgcolor+";height: "+oheight+oheightunit+";\"><TR><TD VALIGN=TOP><FONT style=\"font-family: "+otextfont+";color: "+otextcolor+";font-size: "+otextsize+otextsizeunit+";text-decoration: "+otextdecoration+";font-weight: "+otextweight+";font-style:"+otextstyle+"\">"+text+"</FONT></TD></TR></TABLE></TD></TR></TABLE>"; if(ocss==CSSOFF)txt="<TABLE WIDTH="+owidth+" BORDER=0 CELLPADDING="+oborder+" CELLSPACING=0 "+obgcolor+" "+obgbackground+" "+oheight+"><TR><TD><TABLE WIDTH=100% BORDER=0 CELLPADDING=0 CELLSPACING=0><TR><TD><B><FONT COLOR=\""+ocapcolor+"\" FACE=\""+ocaptionfont+"\" SIZE=\""+ocaptionsize+"\">"+ocapicon+title+"</FONT></B></TD>"+closing+"</TR></TABLE><TABLE WIDTH=100% BORDER=0 CELLPADDING=2 CELLSPACING=0 "+ofgcolor+" "+ofgbackground+" "+oheight+"><TR><TD VALIGN=TOP><FONT COLOR=\""+otextcolor+"\" FACE=\""+otextfont+"\" SIZE=\""+otextsize+"\">"+text+"</FONT></TD></TR></TABLE></TD></TR></TABLE>"; set_background(""); return txt; } function ol_content_background(text, picture, hasfullhtml){ if(hasfullhtml){ txt=text; }else{ if(ocss==CSSCLASS)txt="<TABLE WIDTH="+owidth+owidthunit+" BORDER=0 CELLPADDING=0 CELLSPACING=0 HEIGHT="+oheight+oheightunit+"><TR><TD COLSPAN=3 HEIGHT="+opadyt+opadunit+"></TD></TR><TR><TD WIDTH="+opadxl+opadunit+"></TD><TD VALIGN=TOP WIDTH="+(owidth-opadxl-opadxr)+opadunit+"><FONT class=\""+otextfontclass+"\">"+text+"</FONT></TD><TD WIDTH="+opadxr+opadunit+"></TD></TR><TR><TD COLSPAN=3 HEIGHT="+opadyb+opadunit+"></TD></TR></TABLE>"; if(ocss==CSSSTYLE)txt="<TABLE WIDTH="+owidth+owidthunit+" BORDER=0 CELLPADDING=0 CELLSPACING=0 HEIGHT="+oheight+oheightunit+"><TR><TD COLSPAN=3 HEIGHT="+opadyt+opadunit+"></TD></TR><TR><TD WIDTH="+opadxl+opadunit+"></TD><TD VALIGN=TOP WIDTH="+(owidth-opadxl-opadxr)+opadunit+"><FONT style=\"font-family: "+otextfont+";color: "+otextcolor+";font-size: "+otextsize+otextsizeunit+";\">"+text+"</FONT></TD><TD WIDTH="+opadxr+opadunit+"></TD></TR><TR><TD COLSPAN=3 HEIGHT="+opadyb+opadunit+"></TD></TR></TABLE>"; if(ocss==CSSOFF)txt="<TABLE WIDTH="+owidth+" BORDER=0 CELLPADDING=0 CELLSPACING=0 HEIGHT="+oheight+"><TR><TD COLSPAN=3 HEIGHT="+opadyt+"></TD></TR><TR><TD WIDTH="+opadxl+"></TD><TD VALIGN=TOP WIDTH="+(owidth-opadxl-opadxr)+"><FONT FACE=\""+otextfont+"\" COLOR=\""+otextcolor+"\" SIZE=\""+otextsize+"\">"+text+"</FONT></TD><TD WIDTH="+opadxr+"></TD></TR><TR><TD COLSPAN=3 HEIGHT="+opadyb+"></TD></TR></TABLE>"; } set_background(picture); return txt; } function set_background(pic){ if(pic==""){ if(ie4)over.backgroundImage="none"; if(ns6)over.style.backgroundImage="none"; }else{ if(ns4){ over.background.src=pic; }else if(ie4){ over.backgroundImage="url("+pic+")"; }else if(ns6){ over.style.backgroundImage="url("+pic+")"; } } } function disp(statustext){ if((ns4)||(ie4)||(ns6)){ if(oallowmove==0){ placeLayer(); showObject(over); oallowmove=1; } } if(statustext !=""){ self.status=statustext; } } function placeLayer(){ var placeX, placeY; if(ofixx > -1){ placeX=ofixx; }else{ winoffset=(ie4)? oframe.document.body.scrollLeft : oframe.pageXOffset; if(ie4)iwidth=oframe.document.body.clientWidth; if(ns4)iwidth=oframe.innerWidth;// was screwed in mozilla, fixed now? if(ns6)iwidth=oframe.outerWidth; if(ohauto==1){ if((ox - winoffset)>((eval(iwidth))/ 2)){ ohpos=7; }else{ ohpos=8; } } if(ohpos==9){// Center placeX=ox+ooffsetx-(owidth/2); } if(ohpos==8){// Right placeX=ox+ooffsetx; if((eval(placeX)+ eval(owidth))>(winoffset + iwidth)){ placeX=iwidth + winoffset - owidth; if(placeX < 0)placeX=0; } } if(ohpos==7){// Left placeX=ox-ooffsetx-owidth; if(placeX < winoffset)placeX=winoffset; } if(osnapx > 1){ var snapping=placeX % osnapx; if(ohpos==7){ placeX=placeX -(osnapx + snapping); }else{ placeX=placeX +(osnapx - snapping); } if(placeX < winoffset)placeX=winoffset; } } if(ofixy > -1){ placeY=ofixy; }else{ scrolloffset=(ie4)? oframe.document.body.scrollTop : oframe.pageYOffset; if(ovauto==1){ if(ie4)iheight=oframe.document.body.clientHeight; if(ns4)iheight=oframe.innerHeight; if(ns6)iheight=oframe.outerHeight; iheight=(eval(iheight))/ 2; if((oy - scrolloffset)> iheight){ ovpos=35; }else{ ovpos=36; } } if(ovpos==35){ if(oaboveheight==0){ var divref=(ie4)? oframe.document.all['overDiv'] : over; oaboveheight=(ns4)? divref.clip.height : divref.offsetHeight; } placeY=oy -(oaboveheight + ooffsety); if(placeY < scrolloffset)placeY=scrolloffset; }else{ placeY=oy + ooffsety; } if(osnapy > 1){ var snapping=placeY % osnapy; if(oaboveheight > 0 && ovpos==35){ placeY=placeY -(osnapy + snapping); }else{ placeY=placeY +(osnapy - snapping); } if(placeY < scrolloffset)placeY=scrolloffset; } } repositionTo(over, placeX, placeY); } function mouseMove(e){ if((ns4)||(ns6)){ox=e.pageX;oy=e.pageY;} if(ie4){ox=event.x;oy=event.y;} if(ie5){ox=event.x+oframe.document.body.scrollLeft;oy=event.y+oframe.document.body.scrollTop;} if(oallowmove==1){ placeLayer(); } } function cClick(){ hideObject(over); oshowingsticky=0; return false; } function compatibleframe(frameid){ if(ns4){ if(typeof frameid.document.overDiv=='undefined')return false; }else if(ie4){ if(typeof frameid.document.all["overDiv"]=='undefined')return false; }else if(ns6){ if(frameid.document.getElementById('overDiv')==null)return false; } return true; } function layerWrite(txt){ txt +="\n"; if(ns4){ var lyr=oframe.document.overDiv.document lyr.write(txt) lyr.close() }else if(ie4){ oframe.document.all["overDiv"].innerHTML=txt }else if(ns6){ range=oframe.document.createRange(); range.setStartBefore(over); domfrag=range.createContextualFragment(txt); while(over.hasChildNodes()){ over.removeChild(over.lastChild); } over.appendChild(domfrag); } } function showObject(obj){ if(ns4)obj.visibility="show"; else if(ie4)obj.visibility="visible"; else if(ns6)obj.style.visibility="visible"; } function hideObject(obj){ if(ns4)obj.visibility="hide"; else if(ie4)obj.visibility="hidden"; else if(ns6)obj.style.visibility="hidden"; if(otimerid > 0)clearTimeout(otimerid); if(odelayid > 0)clearTimeout(odelayid); otimerid=0; odelayid=0; self.status=""; } function repositionTo(obj,xL,yL){ if((ns4)||(ie4)){ obj.left=xL; obj.top=yL; }else if(ns6){ obj.style.left=xL + "px"; obj.style.top=yL+ "px"; } } function opt_FRAME(frm){ oframe=compatibleframe(frm)? frm : ol_frame; if((ns4)||(ie4 ||(ns6))){ if(ns4)over=oframe.document.overDiv; if(ie4)over=oframe.overDiv.style; if(ns6)over=oframe.document.getElementById("overDiv"); } return 0; } function opt_FUNCTION(callme){ otext=callme() return 0; } </SCRIPT> <DIV id=overDiv style="Z-INDEX: 1000; VISIBILITY: hidden; POSITION: absolute"></DIV> <FORM name=sample> <P>开始日期: <INPUT name=T1> <!-- ggPosX and ggPosY not set, so popup will autolocate to the right of the graphic --><A onmouseover="window.status='Date Picker'; overlib('点击选择当前日期-只显示当月的日历'); return true;" onmouseout="window.status=''; nd(); return true;" href="javascript:show_calendar('sample.T1');"><IMG height=22 src="//ku.shouce.ren/files/images/201601/56a32311493ff.gif" width=24 border=0></A> </P> <P>结束日期: <INPUT name=T2> <!-- ggPosX and ggPosY are set, so popup goes where you tell it --><A onmouseover="window.status='Date Picker'; overlib('点击选择当前日期-显示完整的日历'); return true;" onmouseout="window.status=''; nd(); return true;" href="javascript:ggPosX=5;ggPosY=200;show_yearly_calendar('sample.T2');"><IMG height=22 src="//ku.shouce.ren/files/images/201601/56a32311493ff.gif" width=24 border=0></A></P> <P><INPUT type=submit value=确定 name=B1><INPUT type=reset value=重选 name=B2></P></FORM></TD></TR></TBODY></TABLE> </CENTER> </BODY> </HTML>
CSS代码
复制
格式化
注释
注释
颜色
清空
放大
JS代码
复制
格式化
注释
注释
清空
放大
运行代码
简介
请输入代码名称!
名称
可选择超始日期和结束日期的弹出日历代码
分类
日期时间
描述
js日历选择器代码,在网页上方便用户选择开始日期和结束日期,网上见到不少的酒店、机票预订网站,他们的日期选择功能都是可以选择起始日期和终止日期,有两个供选择的JS日历插件,大大方便了网民的使用,今天的这款弹出日历选择器虽然界...
收藏