跟随鼠标的彩色数字时钟.doc

上传人:ni****g 文档编号:549028558 上传时间:2023-05-11 格式:DOC 页数:7 大小:29.50KB
返回 下载 相关 举报
跟随鼠标的彩色数字时钟.doc_第1页
第1页 / 共7页
跟随鼠标的彩色数字时钟.doc_第2页
第2页 / 共7页
跟随鼠标的彩色数字时钟.doc_第3页
第3页 / 共7页
跟随鼠标的彩色数字时钟.doc_第4页
第4页 / 共7页
跟随鼠标的彩色数字时钟.doc_第5页
第5页 / 共7页
点击查看更多>>
资源描述

《跟随鼠标的彩色数字时钟.doc》由会员分享,可在线阅读,更多相关《跟随鼠标的彩色数字时钟.doc(7页珍藏版)》请在金锄头文库上搜索。

1、跟随鼠标的彩色数字时钟dCol=990000;/date colour.fCol=990000;/face colour.sCol=FF0000;/seconds colour.mCol=000000;/minutes colour.hCol=000000;/hours colour.ClockHeight=40;ClockWidth=40;ClockFromMouseY=0;ClockFromMouseX=100;/Alter nothing below! Alignments will be lost!d=new Array(SUNDAY,MONDAY,TUESDAY,WEDNESDAY,

2、THURSDAY,FRIDAY,SATURDAY);m=new Array(JANUARY,FEBRUARY,MARCH,APRIL,MAY,JUNE,JULY,AUGUST,SEPTEMBER,OCTOBER,NOVEMBER,DECEMBER);date=new Date();day=date.getDate();year=date.getYear();if (year 2000) year=year+1900;TodaysDate= +ddate.getDay()+ +day+ +mdate.getMonth()+ +year;D=TodaysDate.split();H=.;H=H.s

3、plit();M=.;M=M.split();S=.;S=S.split();Face=1 2 3 4 5 6 7 8 9 10 11 12;font=Arial;size=1;speed=0.6;ns=(document.layers);ie=(document.all);Face=Face.split( );n=Face.length;a=size*10;ymouse=0;xmouse=0;scrll=0;props=;props2=;Split=360/n;Dsplit=360/D.length;HandHeight=ClockHeight/4.5HandWidth=ClockWidth

4、/4.5HandY=-7;HandX=-2.5;scrll=0;step=0.06;currStep=0;y=new Array();x=new Array();Y=new Array();X=new Array();for (i=0; i n; i+)yi=0;xi=0;Yi=0;Xi=0Dy=new Array();Dx=new Array();DY=new Array();DX=new Array();for (i=0; i D.length; i+)Dyi=0;Dxi=0;DYi=0;DXi=0if (ns)for (i=0; i D.length; i+)document.write

5、(+props2+Di+);for (i=0; i n; i+)document.write(+props+Facei+);for (i=0; i S.length; i+)document.write(+Si+);for (i=0; i M.length; i+)document.write(+Mi+);for (i=0; i H.length; i+)document.write(+Hi+);if (ie)document.write();for (i=0; i D.length; i+)document.write(+props2+Di+);document.write();docume

6、nt.write();for (i=0; i n; i+)document.write(+props+Facei+);document.write();document.write();for (i=0; i H.length; i+)document.write(+Hi+);document.write();document.write();for (i=0; i M.length; i+)document.write(+Mi+);document.write()document.write();for (i=0; i S.length; i+)document.write(+Si+);do

7、cument.write()(ns)?window.captureEvents(Event.MOUSEMOVE):0;function Mouse(evnt)ymouse = (ns)?evnt.pageY+ClockFromMouseY-(window.pageYOffset):event.y+ClockFromMouseY;xmouse = (ns)?evnt.pageX+ClockFromMouseX:event.x+ClockFromMouseX;(ns)?window.onMouseMove=Mouse:document.onmousemove=Mouse;function Cloc

8、kAndAssign()time = new Date ();secs = time.getSeconds();sec = -1.57 + Math.PI * secs/30;mins = time.getMinutes();min = -1.57 + Math.PI * mins/30;hr = time.getHours();hrs = -1.575 + Math.PI * hr/6+Math.PI*parseInt(time.getMinutes()/360;if (ie)Od.style.top=window.document.body.scrollTop;Of.style.top=window.document.body.scrollTop;Oh.style.top=window.document.body.scrollTop;Om.style.top=window.document.body.scrollTop;Os.style.top=window.document.body.scrollTop;for (i=0; i n; i+)var F=(ns

展开阅读全文
相关资源
相关搜索

当前位置:首页 > 生活休闲 > 社会民生

电脑版 |金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号