LOGO 首页 OA教程 ERP教程 模切知识交流 PMS教程 CRM教程 技术文档 其他文档  
 
网站管理员
" if(i%7==0)iHTML+="" } iHTML+="

一个漂亮的日历+时钟

admin
2010年10月24日 18:55 本文热度 5737
[code]<script>var NowTime = new Date().valueOf()</script>
SMTWTFS
<script> /* for(i=0;i<6;i++)document.write(", ") for(i=1;i<56;i++) document.write((i+5)%13==0?"
,"+(i-6*parseInt((i+5)/13)):","+(i-6*parseInt((i+5)/13))) */ /* Calendar HTML start */ var iHTML="" for(i=1;i<=31;i++){ iHTML+="
"+i+"
" document.write(""+iHTML+"
"+iHTML) /* Calendar HTML end */ DateArray = [] for(i=0;i<31;i++){//Collect days
to an Array DateArray[i*2]=iCalendar.childNodes[1].rows[parseInt(i/7)].cells[i%7].firstChild DateArray[i*2+1]=iCalendar.childNodes[2].rows[parseInt(i/7)].cells[i%7].firstChild } </script>
Date Time <script> /* Clock HTML start */ function CalX(t,r,k){return parseInt(1+Math.sin(t*2*Math.PI/k)*r)} function CalY(t,r,k){return parseInt(1-Math.cos(t*2*Math.PI/k)*r)} for(i=0;i<60;i++) if(i%5 == 0) document.write("") else document.write("") document.write("") /* Clock HTML end */ setInterval(GetTime,1000) // use the rotation to control the time object function GetTime(){ t = new Date(NowTime+=1000) iSecond.style.rotation = t.getSeconds()*6 iMinute.style.rotation = t.getMinutes()*6+t.getSeconds()/10 iHour.style.rotation = t.getHours()*30+t.getMinutes()/2 iTime.value = t.toLocaleString().match(/\d+:\d+/)+':'+t.getSeconds() } </script> <script language="JavaScript"> function ShowDate(oYear,oMonth){ var oDays = new Date(oYear,oMonth,0).getDate() var oFirstDay = 7-new Date(oYear,oMonth-1).getDay() iCalendar.style.left = -iCalendar.offsetWidth*.07143*oFirstDay for(i=0;i<6;i++) DateArray[i+56].style.visibility = (parseInt(i/2)+29>oDays)?'hidden':'visible'//29->31 iMonths.parentNode.firstChild.value = MonthsArray[oMonth-1]; if(BackDay>oDays) DayChoose(oDays) } var BackDay = 0 function DayChoose(objnum){ if(BackDay==objnum) return for(i=1;i<=2;i++){ if(BackDay){ DateArray[BackDay*2-i].style.background = '' DateArray[BackDay*2-i].style.color = 'black' } DateArray[objnum*2-i].style.background = '#0054E3' DateArray[objnum*2-i].style.color = 'white' } BackDay = objnum } //document.write("&#",t.getMonth()+12992,"&#",t.getDate()+13279,"&#",t.getHours()+13144) function window.onload(){ var t = new Date(NowTime) iYears.value = t.getFullYear() iMonths.selectedIndex = t.getMonth()+1 setTimeout("ShowDate("+t.getFullYear()+","+(t.getMonth()+1)+")",10) DayChoose(t.getDate()) } function HeightLight(){ var obj = event.srcElement var obj2 = event.fromElement if(obj.nodeName=="INPUT"){ obj.style.color = 'white' obj.style.background = '#FFB0F8' } if(obj2.nodeName=="INPUT"){ obj2.style.color = '' obj2.style.background = '' } } window.onerror = ReturnTrue; window.onhelp = ReturnFalse; document.ondragstart = ReturnFalse; document.oncontextmenu = ReturnFalse; document.onselectstart = ReturnFalse; function document.onkeydown(){ with(event){ if((keyCode&&(event.ctrlKey||altKey)) || (keyCode>=112 && keyCode<=123)){ keyCode = 0; ReturnFalse(); } } } function ReturnTrue(){ event.returnValue = true; } function ReturnFalse(){ event.returnValue = false; } </script> [/code]

该文章在 2010/10/24 18:55:26 编辑过
关键字查询
相关文章
正在查询...
点晴ERP是一款针对中小制造业的专业生产管理软件系统,系统成熟度和易用性得到了国内大量中小企业的青睐。
点晴PMS码头管理系统主要针对港口码头集装箱与散货日常运作、调度、堆场、车队、财务费用、相关报表等业务管理,结合码头的业务特点,围绕调度、堆场作业而开发的。集技术的先进性、管理的有效性于一体,是物流码头及其他港口类企业的高效ERP管理信息系统。
点晴WMS仓储管理系统提供了货物产品管理,销售管理,采购管理,仓储管理,仓库管理,保质期管理,货位管理,库位管理,生产管理,WMS管理系统,标签打印,条形码,二维码管理,批号管理软件。
点晴免费OA是一款软件和通用服务都免费,不限功能、不限时间、不限用户的免费OA协同办公管理系统。
Copyright 2010-2026 ClickSun All Rights Reserved  粤ICP备13012886号-2  粤公网安备44030602007207号