All pastes #533989 Raw Edit

devent

public html v1 · immutable
·published 2007-06-03 17:08 UTC
rendered paste body
;; koda ot html-to		<div id="clockposition">		<script type="text/javascript" src="scripts/js2.js" language="javascript"></script></div>;; koda ot css-a#clockposition {	position:absolute; 	overflow:hidden; 	left:0px; 	top:0px; 	width:674px; 	height:18px; };; Samia javascript:var dayNames = new Array("&#1055;&#1086;&#1085;&#1077;&#1076;&#1077;&#1083;&#1085;&#1080;&#1082;","&#1042;&#1090;&#1086;&#1088;&#1085;&#1080;&#1082;","&#1057;&#1088;&#1103;&#1076;&#1072;","&#1063;&#1077;&#1090;&#1074;&#1098;&#1088;&#1090;&#1098;&#1082;","&#1055;&#1077;&#1090;&#1098;&#1082;","&#1057;&#1098;&#1073;&#1086;&#1090;&#1072;","&#1053;&#1077;&#1076;&#1077;&#1083;&#1103;");var monthNames = new Array("&#1071;&#1085;&#1091;&#1072;&#1088;&#1080;","&#1060;&#1077;&#1074;&#1088;&#1091;&#1072;&#1088;&#1080;","&#1052;&#1072;&#1088;&#1090;","&#1040;&#1087;&#1088;&#1080;&#1083;","&#1052;&#1072;&#1081;","&#1070;&#1085;&#1080;","&#1070;&#1083;&#1080;","&#1040;&#1074;&#1075;&#1091;&#1089;&#1090;","&#1057;&#1077;&#1087;&#1090;&#1077;&#1084;&#1074;&#1088;&#1080;","&#1054;&#1082;&#1090;&#1086;&#1084;&#1074;&#1088;&#1080;","&#1053;&#1086;&#1077;&#1084;&#1074;&#1088;&#1080;","&#1044;&#1077;&#1082;&#1077;&#1084;&#1074;&#1088;&#1080;");var dt = new Date();var y  = dt.getYear();// Y2K compliantif (y < 1000) y +=1900;document.write('<font color=#FF face=verdana size=1>' + dayNames[dt.getDay()] + ", " + monthNames[dt.getMonth()] + " " + dt.getDate() + ", " + y + '</font>');// -->         function getTime() {            var runTime = new Date();            var hours = runTime.getHours();            var minutes = runTime.getMinutes();            var seconds = runTime.getSeconds();            if (hours == 24) {hours = 0;}            if (minutes <= 9) {minutes = "0"+minutes}            if (seconds <= 9) {seconds = "0"+seconds}            movingtime = "<font face=verdana size=1px color=#FF>"+hours+":"+minutes+":"+seconds+"</font>";            document.getElementById('clock').innerHTML = movingtime;            setTimeout("getTime()",1000);         }         window.onload=getTime;