<html> <head> <title>Часы фоном. Можно менять размер, расположение и цветовую гамму часов.</title> </head> <script language=javaScript> <!-- function clockon() { thistime= new Date() var hours=thistime.getHours() var minutes=thistime.getMinutes() var seconds=thistime.getSeconds() if (eval(hours) <10) {hours="0"+hours} if (eval(minutes) < 10) {minutes="0"+minutes} if (seconds < 10) {seconds="0"+seconds} thistime = hours+":"+minutes+":"+seconds if(document.all) { bgclocknoshade.innerHTML=thistime bgclockshade.innerHTML=thistime } if(document.layers) { document.bgclockshade.document.write('<div id="bgclockshade" style="position:absolute;visibility:visible;font-family:Verdana;color:FFAAAAA;font-size:120px;top:10px;left:12px">'+thistime+'</div>') document.bgclocknoshade.document.write('<div id="bgclocknoshade" style="position:absolute;visibility:visible;font-family:Verdana;color:DDDDDD;font-size:120px;top:10px;left:10px">'+thistime+'</div>') document.close() } var timer=setTimeout("clockon()",200) }
// - End of JavaScript - --> </script> </head> <body onLoad=""> <div id="bgclockshade" style="position:absolute; visibility:visible; font-family:Verdana; color:#006600; font-size:36px; top:10px; left:290px"></div> <div id="bgclocknoshade" style="position:absolute; visibility:visible;font-family:Verdana; color:#009900; font-size:36px; top:9px; left:287px"></div> <div id="mainbody" style="position:absolute; visibility:visible"></div> </body> </html>
|