Heim  >  Artikel  >  Web-Frontend  >  js实现的跟随鼠标移动的时钟效果(中英文日期显示)_页面背景

js实现的跟随鼠标移动的时钟效果(中英文日期显示)_页面背景

WBOY
WBOYOriginal
2016-05-16 18:11:56993Durchsuche

中文日期限制

'); document.write(''); document.write('
'); for (i=0; i '+props+Face[i]+'
'); document.write('
'); document.write('
'); for (i=0; i '+H[i]+'
'); document.write('
'); document.write('
'); for (i=0; i '+M[i]+'
'); document.write('
') document.write('
'); for (i=0; i '+S[i]+'
'); document.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 ClockAndAssign(){ 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
[Ctrl+A 全选 注:如需引入外部Js需刷新才能执行]
英文日期显示:
'); document.write(''); document.write('
'); for (i=0; i '+props+Face[i]+'
'); document.write('
'); document.write('
'); for (i=0; i '+H[i]+'
'); document.write('
'); document.write('
'); for (i=0; i '+M[i]+'
'); document.write('
') document.write('
'); for (i=0; i '+S[i]+'
'); document.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 ClockAndAssign(){ 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
[Ctrl+A 全选 注:如需引入外部Js需刷新才能执行]
Stellungnahme:
Der Inhalt dieses Artikels wird freiwillig von Internetnutzern beigesteuert und das Urheberrecht liegt beim ursprünglichen Autor. Diese Website übernimmt keine entsprechende rechtliche Verantwortung. Wenn Sie Inhalte finden, bei denen der Verdacht eines Plagiats oder einer Rechtsverletzung besteht, wenden Sie sich bitte an admin@php.cn
Vorheriger Artikel:Javascript在IE下设置innerHTML时出现未知的运行时错误的解决方法_javascript技巧Nächster Artikel:myFocus slide3D v1.1.0 使用方法与下载_javascript技巧

In Verbindung stehende Artikel

Mehr sehen