document.write('<div id="meizzCalendarLayer" style="position: absolute; z-index: 9999; width: 144px; height: 193px; display:none">');
document.write('<iframe id="meizzCalendarIframe" name="meizzCalendarIframe" scrolling="no" frameborder="0" width="100%" height="100%"></iframe></div>');
function writeIframe()
{
var strIframe = '<!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><meta http-equiv="content-type" content="text/html; charset=gb2312" /><style>'+
'*{font-size: 12px; font-family: 宋体}'+
'.bg{ color: '+ WebCalendar.lightColor +'; cursor: default; background-color:'+ WebCalendar.darkColor +';}'+
'table#tableMain{ width: 142; height: 180;}'+
'table#tableWeek td{ color: '+ WebCalendar.lightColor +';}'+
'table#tableDay td{ font-weight: bold;}'+
'td#meizzYearHead, td#meizzYearMonth{color: '+ WebCalendar.wordColor +'}'+
'.out { text-align: center; border-top: 1px solid '+ WebCalendar.DarkBorder +'; border-left: 1px solid '+ WebCalendar.DarkBorder +';'+
'border-right: 1px solid '+ WebCalendar.lightColor +'; border-bottom: 1px solid '+ WebCalendar.lightColor +';}'+
'.over{ text-align: center; border-top: 1px solid #FFFFFF; border-left: 1px solid #FFFFFF;'+
'border-bottom: 1px solid '+ WebCalendar.DarkBorder +'; border-right: 1px solid '+ WebCalendar.DarkBorder +'}'+
'input{ border: 1px solid '+ WebCalendar.darkColor +'; padding-top: 1px; height: 18; cursor: hand;'+
' color:'+ WebCalendar.wordColor +'; background-color: '+ WebCalendar.btnBgColor +'}'+
'</style></head><body onselectstart="return false" style="margin: 0px" oncontextmenu="return false"><form name="meizz">';
if (WebCalendar.drag){ strIframe += '<script type="text/javascript">'+
'var drag=false, cx=0, cy=0, o = parent.WebCalendar.calendar; function document.onmousemove(){'+
'if(parent.WebCalendar.drag && drag){if(o.style.left=="")o.style.left=0; if(o.style.top=="")o.style.top=0;'+
'o.style.left = parseInt(o.style.left) + window.event.clientX-cx;'+
'o.style.top = parseInt(o.style.top) + window.event.clientY-cy;}}'+
'function document.onkeydown(){ switch(window.event.keyCode){ case 27 : parent.hiddenCalendar(); break;'+
'case 37 : parent.prevM(); break; case 38 : parent.prevY(); break; case 39 : parent.nextM(); break; case 40 : parent.nextY(); break;'+
'case 84 : document.forms[0].today.click(); break;} window.event.keyCode = 0; window.event.returnValue= false;}'+
'function dragStart(){cx=window.event.clientX; cy=window.event.clientY; drag=true;}</script>'}
strIframe += '<select name="tmpYearSelect" onblur="parent.hiddenSelect(this)" style="z-index:1;position:absolute;top:3;left:18;display:none"'+
' onchange="parent.WebCalendar.thisYear =this.value; parent.hiddenSelect(this); parent.writeCalendar();"></select>'+
'<select name="tmpMonthSelect" onblur="parent.hiddenSelect(this)" style="z-index:1; position:absolute;top:3;left:74;display:none"'+
' onchange="parent.WebCalendar.thisMonth=this.value; parent.hiddenSelect(this); parent.writeCalendar();"></select>'+
'<table id="tableMain" class="bg" border="0" cellspacing="2" cellpadding="0">'+
'<tr><td width="140px" height="19px" bgcolor="'+ WebCalendar.lightColor +'">'+
' <table width="140px" id="tableHead" border="0" cellspacing="1" cellpadding="0"><tr align="center">'+
' <td width="15px" height="19px" class="bg" title="向前翻 1 月 快捷键:←" style="cursor: hand" onclick="parent.prevM()"><b><</b></td>'+
' <td width="60px" id="meizzYearHead" title="点击此处选择年份" onclick="parent.funYearSelect(parseInt(this.innerText, 10))"'+
' onmouseover="this.bgColor=parent.WebCalendar.darkColor; this.style.color=parent.WebCalendar.lightColor"'+
' onmouseout="this.bgColor=parent.WebCalendar.lightColor; this.style.color=parent.WebCalendar.wordColor"></td>'+
' <td width="50px" id="meizzYearMonth" title="点击此处选择月份" onclick="parent.funMonthSelect(parseInt(this.innerText, 10))"'+
' onmouseover="this.bgColor=parent.WebCalendar.darkColor; this.style.color=parent.WebCalendar.lightColor"'+
' onmouseout="this.bgColor=parent.WebCalendar.lightColor; this.style.color=parent.WebCalendar.wordColor"></td>'+
' <td width="15px" class="bg" title="向后翻 1 月 快捷键:→" onclick="parent.nextM()" style="cursor: hand"><b>></b></td></tr></table>'+
'</td></tr><tr><td height="20px"><table id="tableWeek" border="1px" width="140px" cellpadding="0" cellspacing="0" ';
if(WebCalendar.drag){strIframe += ' onmousedown="dragStart()" onmouseup="drag=false" onmouseout="drag=false"';}
strIframe += ' borderColorLight="'+ WebCalendar.darkColor +'" borderColorDark="'+ WebCalendar.lightColor +'">'+
' <tr align="center"><td height="20px">日</td><td>一</td><td>二</td><td>三</td><td>四</td><td>五</td><td>六</td></tr></table>'+
'</td></tr><tr><td valign="top" width="140px" bgcolor="'+ WebCalendar.lightColor +'">'+
' <table id="tableDay" height="120px" width="140px" border="0" cellspacing="1px" cellpadding="0">';
for(var x=0; x<5; x++){ strIframe += '<tr>';
for(var y=0; y<7; y++) strIframe += '<td class="out" id="meizzDay'+ (x*7+y) +'"></td>'; strIframe += '</tr>';}
strIframe += '<tr>';
for(var x=35; x<39; x++) strIframe += '<td class="out" id="meizzDay'+ x +'"></td>';
strIframe +='<td colspan="3" class="out" title="'+ WebCalendar.regInfo +'"><input style="background-color: '+
WebCalendar.btnBgColor +';cursor: hand; padding-top: 4px; width: 100%; height: 100%; border: 0" onfocus="this.blur()"'+
' type="button" value=" 关闭" onclick="parent.hiddenCalendar()"></td></tr></table>'+
'</td></tr><tr><td height="20px" width="140px" bgcolor="'+ WebCalendar.lightColor +'">'+
' <table border="0" cellpadding="1px" cellspacing="0" width="140px">'+
' <tr><td><input name="prevYear" title="向前翻 1 年 快捷键:↑" onclick="parent.prevY()" type="button" value="<<"'+
' onfocus="this.blur()" style="meizz:expression(this.disabled=parent.WebCalendar.thisYear==1000)"><input'+
' onfocus="this.blur()" name="prevMonth" title="向前翻 1 月 快捷键:←" onclick="parent.prevM()" type="button" value="< ">'+
' </td><td align="center"><input name="today" type="button" value="今天" onfocus="this.blur()" style="width: 50" title="当前日期 快捷键:T"'+
' onclick="parent.returnDate(new Date().getDate() +\'/\'+ (new Date().getMonth() +1) +\'/\'+ new Date().getFullYear())">'+
' </td><td align="right"><input title="向后翻 1 月 快捷键:→" name="nextMonth" onclick="parent.nextM()" type=button value=" >"'+
' onfocus="this.blur()"><input name="nextYear" title="向后翻 1 年 快捷键:↓" onclick="parent.nextY()" type="button" value=">>"'+
' onfocus="this.blur()" style="meizz:expression(this.disabled=parent.WebCalendar.thisYear==9999)"></td></tr></table>'+
'</td></tr><table></form></body></html>';
with(WebCalendar.iframe)
{
document.writeln(strIframe); document.close();
for(var i=0; i<39; i++)
{
WebCalendar.dayObj[i] = eval("meizzDay"+ i);
WebCalendar.dayObj[i].onmouseover = dayMouseOver;
WebCalendar.dayObj[i].onmouseout = dayMouseOut;
WebCalendar.dayObj[i].onclick = returnDate;
}
}
}
function TWebCalendar() //初始化日历的设置
{
this.regInfo = "点击关闭按钮关闭日期选择器!";
// this.regInfo = "WEB Calendar 3.0 作者:meizz(梅花雪疏影横斜) 网站:http://www.me
没有合适的资源?快使用搜索试试~ 我知道了~
初学者最好最简单的ASP.NET操作数据库的例子
共53个文件
cs:21个
aspx:14个
jpg:4个
需积分: 20 10 下载量 148 浏览量
2009-04-15
22:16:13
上传
评论
收藏 184KB RAR 举报
温馨提示
初学者刚开始上手ASP.NET用的绝佳例子 里面的/wwwroot/Myself下是我自己练的例子,希望对大家有些帮助,另外还有些页面是练习JAVASCRIPT的例子
资源推荐
资源详情
资源评论
收起资源包目录
Test.rar (53个子文件)
Test
DataModel
bin
Debug
obj
Debug
TempPE
Properties
AssemblyInfo.cs 1KB
Class1.cs 141B
DataModel.csproj 2KB
Test.sln 2KB
DataAccess
DataAccess.suo 9KB
bin
Debug
obj
Debug
TempPE
Properties
AssemblyInfo.cs 1KB
DataAccess.csproj 2KB
Class1.cs 142B
DataAccess.sln 908B
Test.suo 28KB
wwwroot
App_Code
Model
PageBase.cs 645B
SData.cs 1KB
Access
SqlHelper.cs 10KB
msg.aspx.cs 562B
welcome2.aspx.cs 588B
Web.Config 2KB
Default.aspx 3KB
MySelf
DataTestAdd.aspx 1KB
DataTestAdd.aspx.cs 1KB
DataTest1.aspx 2KB
Default2.aspx 3KB
Default.aspx 1KB
Destnation.aspx 463B
Register.aspx 830B
Default.aspx.cs 1KB
Default2.aspx.cs 5KB
login.aspx.cs 1KB
Jump.aspx.cs 589B
DataTest1.aspx.cs 2KB
login.aspx 854B
Jump.aspx~RF94788f.TMP.exclude 444B
DataTestMod.aspx.cs 2KB
Destnation.aspx.cs 418B
Register.aspx.cs 1KB
Jump.aspx 1KB
DataTestMod.aspx 1KB
Default.aspx.cs 1KB
welcome2.aspx 717B
common
css
images
3.jpg 30KB
3.bmp 576KB
2.bmp 576KB
4.jpg 37KB
2.jpg 38KB
4.bmp 576KB
1.jpg 21KB
Thumbs.db 22KB
1.bmp 576KB
js
Calendar.js 19KB
index.aspx.cs 871B
msg.aspx 534B
index.aspx 524B
manage
Default.aspx 450B
Default.aspx.cs 413B
共 53 条
- 1
资源评论
SHARPOKEY
- 粉丝: 0
- 资源: 2
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 使用C语言与python分别实现文件的读写功能
- zephyr sdk package 2
- zephyr sdk package 1
- optimization.ipynb
- 数据库标识码BSM重排序工具、重构标识码工具
- 基于C语言的校园导航系统报告.doc
- __init__.py
- tensorflow-gpu-2.6.5-cp39-cp39-manylinux2010-x86-64.whl
- tensorflow-rocm-2.13.1.600-cp38-cp38-manylinux2014-x86-64.whl
- tensorflow-rocm-2.13.0.570-cp311-cp311-manylinux2014-x86-64.whl
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功