-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
executable file
·182 lines (164 loc) · 4.64 KB
/
index.html
1
<HTML><HEAD><TITLE>clock</TITLE><META http-equiv="Content-type" content="text/html; charset=iso-8859-1"> <link rel="stylesheet" type="text/css" href="style.css"> <script src="names.js" type="text/javascript"> </script> <script src="script.js" type="text/javascript"> </script><style type="text/css"><!--body { background:#ffffff;}div { position: absolute; background: transparent;}--></style><script type="text/javascript"><!--var posx=200;var posy=200;var radiusminute=60;var radiusstunde=50;var radiussekunde=70;var radiuspunkte=80;function init() {document.getElementsByName("mitte")[0].style.top=posy;document.getElementsByName("mitte")[0].style.left=posx;punkte();zeiger();var klaus=window.setInterval("zeiger()",1000);}function start() {document.getElementsByTagName("embed")[0].style.width="300";alert("patrick");document.embeds["paul"].play();}function punkte() {for (var i=0; i<12; i++) {document.getElementsByName("punkt")[i].style.top=posy+radiuspunkte*Math.sin(transform(i*30));document.getElementsByName("punkt")[i].style.left=posx+radiuspunkte*Math.cos(transform(i*30));}}function transform(angle) {angle=angle-90;angle=angle*Math.PI/180;return angle;}function zeiger() {var jetzt=new Date();sekunde=transform(jetzt.getSeconds()*6);minute=transform(jetzt.getMinutes()*6+jetzt.getSeconds()/10);stunde=transform(jetzt.getHours()*30+jetzt.getMinutes()/2+jetzt.getSeconds()/120);for (var i=0; i<document.getElementsByName("sekunde").length; i++) {document.getElementsByName("sekunde")[i].style.top=posy+((i+1)*radiussekunde/(document.getElementsByName("sekunde").length)*Math.sin(sekunde));document.getElementsByName("sekunde")[i].style.left=posx+((i+1)*radiussekunde/(document.getElementsByName("sekunde").length)*Math.cos(sekunde));}for (var i=0; i<document.getElementsByName("minute").length; i++) {document.getElementsByName("minute")[i].style.top=posy+((i+1)*radiusminute/(document.getElementsByName("minute").length)*Math.sin(minute));document.getElementsByName("minute")[i].style.left=posx+((i+1)*radiusminute/(document.getElementsByName("minute").length)*Math.cos(minute));}for (var i=0; i<document.getElementsByName("stunde").length; i++) {document.getElementsByName("stunde")[i].style.top=posy+((i+1)*radiusstunde/(document.getElementsByName("stunde").length)*Math.sin(stunde));document.getElementsByName("stunde")[i].style.left=posx+((i+1)*radiusstunde/(document.getElementsByName("stunde").length)*Math.cos(stunde));}}//--></script> </HEAD><BODY BGCOLOR="#FFFFFF" onLoad="javascript:init();"><div name="minute"><img src="blue.gif" height="5" width="5"></div><div name="minute"><img src="blue.gif" height="5" width="5"></div><div name="minute"><img src="blue.gif" height="5" width="5"></div><div name="minute"><img src="blue.gif" height="5" width="5"></div><div name="minute"><img src="blue.gif" height="5" width="5"></div><div name="minute"><img src="blue.gif" height="5" width="5"></div><div name="stunde"><img src="red.gif" height="5" width="5"></div><div name="stunde"><img src="red.gif" height="5" width="5"></div><div name="stunde"><img src="red.gif" height="5" width="5"></div><div name="stunde"><img src="red.gif" height="5" width="5"></div><div name="stunde"><img src="red.gif" height="5" width="5"></div><div name="sekunde"><img src="green.gif" height="5" width="5"></div><div name="sekunde"><img src="green.gif" height="5" width="5"></div><div name="sekunde"><img src="green.gif" height="5" width="5"></div><div name="sekunde"><img src="green.gif" height="5" width="5"></div><div name="sekunde"><img src="green.gif" height="5" width="5"></div><div name="sekunde"><img src="green.gif" height="5" width="5"></div><div name="sekunde"><img src="green.gif" height="5" width="5"></div><div name="mitte"><img src="black.gif" height="5" width="5"></div><div name="punkt"><img src="grey.gif" height="5" width="5"></div><div name="punkt"><img src="grey.gif" height="5" width="5"></div><div name="punkt"><img src="grey.gif" height="5" width="5"></div><div name="punkt"><img src="grey.gif" height="5" width="5"></div><div name="punkt"><img src="grey.gif" height="5" width="5"></div><div name="punkt"><img src="grey.gif" height="5" width="5"></div><div name="punkt"><img src="grey.gif" height="5" width="5"></div><div name="punkt"><img src="grey.gif" height="5" width="5"></div><div name="punkt"><img src="grey.gif" height="5" width="5"></div><div name="punkt"><img src="grey.gif" height="5" width="5"></div><div name="punkt"><img src="grey.gif" height="5" width="5"></div><div name="punkt"><img src="grey.gif" height="5" width="5"></div></BODY></HTML>