Advertisement
Guest User

Untitled

a guest
Sep 16th, 2011
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.25 KB | None | 0 0
  1. <HTML>
  2. <base href="Private/"/>
  3. <meta name="viewport" content="width=320" />
  4. <br>
  5. <br>
  6. <br>
  7. <br>
  8. <br>
  9. <br>
  10. <br>
  11. <br>
  12. <br>
  13. <SCRIPT language=JavaScript>
  14. <!--
  15. function startclock()
  16. {
  17. var thetime=new Date();
  18.  
  19. var nhours=thetime.getHours();
  20. var nmins=thetime.getMinutes();
  21. var nsecn=thetime.getSeconds();
  22. var theIamge;
  23.  
  24. if (nhours>=13)
  25. nhours-=12;
  26.  
  27. if (nhours==0)
  28. nhours=12;
  29.  
  30. // Display the LEDS images
  31. theImage = document.getElementById('H8');
  32. if (nhours >= 8) {
  33. nhours -= 8;
  34. theImage.src = "ON.png";
  35. }
  36. else theImage.src = "OFF.png";
  37. theImage = document.getElementById('H4');
  38. if (nhours >= 4) {
  39. nhours -= 4;
  40. theImage.src = "ON.png";
  41. }
  42. else theImage.src = "OFF.png";
  43. theImage = document.getElementById('H2');
  44. if (nhours >= 2) {
  45. nhours -= 2;
  46. theImage.src = "ON.png";
  47. }
  48. else theImage.src = "OFF.png";
  49. theImage = document.getElementById('H1');
  50. if (nhours == 1) {
  51. theImage.src = "ON.png";
  52. }
  53. else theImage.src = "OFF.png";
  54.  
  55.  
  56. theImage = document.getElementById('M32');
  57. if (nmins >= 32) {
  58. nmins -= 32;
  59. theImage.src = "ON.png";
  60. }
  61. else theImage.src = "OFF.png";
  62. theImage = document.getElementById('M16');
  63. if (nmins >= 16) {
  64. nmins -= 16;
  65. theImage.src = "ON.png";
  66. }
  67. else theImage.src = "OFF.png";
  68. theImage = document.getElementById('M8');
  69. if (nmins >= 8) {
  70. nmins -= 8;
  71. theImage.src = "ON.png";
  72. }
  73. else theImage.src = "OFF.png";
  74. theImage = document.getElementById('M4');
  75. if (nmins >= 4) {
  76. nmins -= 4;
  77. theImage.src = "ON.png";
  78. }
  79. else theImage.src = "OFF.png";
  80. theImage = document.getElementById('M2');
  81. if (nmins >= 2) {
  82. nmins -= 2;
  83. theImage.src = "ON.png";
  84. }
  85. else theImage.src = "OFF.png";
  86. theImage = document.getElementById('M1');
  87. if (nmins == 1) {
  88. theImage.src = "ON.png";
  89. }
  90. else theImage.src = "OFF.png";
  91.  
  92.  
  93. theImage = document.getElementById('S32');
  94. if (nsecn >= 32) {
  95. nsecn -= 32;
  96. theImage.src = "ON.png";
  97. }
  98. else theImage.src = "OFF.png";
  99. theImage = document.getElementById('S16');
  100. if (nsecn >= 16) {
  101. nsecn -= 16;
  102. theImage.src = "ON.png";
  103. }
  104. else theImage.src = "OFF.png";
  105. theImage = document.getElementById('S8');
  106. if (nsecn >= 8) {
  107. nsecn -= 8;
  108. theImage.src = "ON.png";
  109. }
  110. else theImage.src = "OFF.png";
  111. theImage = document.getElementById('S4');
  112. if (nsecn >= 4) {
  113. nsecn -= 4;
  114. theImage.src = "ON.png";
  115. }
  116. else theImage.src = "OFF.png";
  117. theImage = document.getElementById('S2');
  118. if (nsecn >= 2) {
  119. nsecn -= 2;
  120. theImage.src = "ON.png";
  121. }
  122. else theImage.src = "OFF.png";
  123. theImage = document.getElementById('S1');
  124. if (nsecn == 1) {
  125. theImage.src = "ON.png";
  126. }
  127. else theImage.src = "OFF.png";
  128.  
  129. setTimeout('startclock()',1000);
  130. }
  131.  
  132.  
  133. </SCRIPT>
  134.  
  135. <BODY onload=startclock()>
  136. <TABLE cellSpacing=0 cellPadding=2 width="100%" border=0>
  137. <TBODY>
  138. <TR valign=middle>
  139. <TD align=middle><TABLE cellSpacing=0 cellPadding=0 border=0>
  140. <TBODY>
  141. <TR>
  142. <TD width=46></TD>
  143. <TD width=46></TD>
  144. <TD width=46></TD>
  145. <TD width=46></TD>
  146. <TD width=46></TD>
  147. <TD width=46><IMG height=11 alt=""
  148. src="Bc_Spacer.gif" width=5 border=0></TD></TR>
  149. <TR>
  150. <TD width=46></TD>
  151. <TD width=46></TD>
  152. <TD align=middle width=46><IMG id=H8 height=32 alt=""
  153. src="OFF.png" width=32 border=0></TD>
  154. <TD align=middle width=46><IMG id=H4 height=32 alt=""
  155. src="OFF.png" width=32 border=0></TD>
  156. <TD align=middle width=46><IMG id=H2 height=32 alt=""
  157. src="OFF.png" width=32 border=0></TD>
  158. <TD align=middle width=46><IMG id=H1 height=32 alt=""
  159. src="OFF.png" width=32 border=0></TD></TR>
  160. <TR>
  161. <TD width=46></TD>
  162. <TD width=46></TD>
  163. <TD width=46></TD>
  164. <TD width=46></TD>
  165. <TD width=46></TD>
  166. <TD width=46><IMG height=11 alt=""
  167. src="Bc_Spacer.gif" width=5 border=0></TD></TR>
  168. <TR>
  169. <TD align=middle width=46><IMG id=M32 height=32 alt=""
  170. src="OFF.png" width=32 border=0></TD>
  171. <TD align=middle width=46><IMG id=M16 height=32 alt=""
  172. src="OFF.png" width=32 border=0></TD>
  173. <TD align=middle width=46><IMG id=M8 height=32 alt=""
  174. src="OFF.png" width=32 border=0></TD>
  175. <TD align=middle width=46><IMG id=M4 height=32 alt=""
  176. src="OFF.png" width=32 border=0></TD>
  177. <TD align=middle width=46><IMG id=M2 height=32 alt=""
  178. src="OFF.png" width=32 border=0></TD>
  179. <TD align=middle width=46><IMG id=M1 height=32 alt=""
  180. src="OFF.png" width=32 border=0></TD></TR>
  181. <TR>
  182. <TD width=46></TD>
  183. <TD width=46></TD>
  184. <TD width=46></TD>
  185. <TD width=46></TD>
  186. <TD width=46></TD>
  187. <TD width=46><IMG height=11 alt=""
  188. src="Bc_Spacer.gif" width=5 border=0></TD></TR>
  189. <TR>
  190. <TD align=middle width=46><IMG id=S32 height=32 alt=""
  191. src="OFF.png" width=32 border=0></TD>
  192. <TD align=middle width=46><IMG id=S16 height=32 alt=""
  193. src="OFF.png" width=32 border=0></TD>
  194. <TD align=middle width=46><IMG id=S8 height=32 alt=""
  195. src="OFF.png" width=32 border=0></TD>
  196. <TD align=middle width=46><IMG id=S4 height=32 alt=""
  197. src="OFF.png" width=32 border=0></TD>
  198. <TD align=middle width=46><IMG id=S2 height=32 alt=""
  199. src="OFF.png" width=32 border=0></TD>
  200. <TD align=middle width=46><IMG id=S1 height=32 alt=""
  201. src="OFF.png" width=32 border=0></TD></TR>
  202. <TR>
  203. <TD width=46></TD>
  204. <TD width=46></TD>
  205. <TD width=46></TD>
  206. <TD width=46></TD>
  207. <TD width=46></TD>
  208. <TD width=46><IMG height=11 alt=""
  209. src="Bc_Spacer.gif" width=5 border=0></TD></TR>
  210. <TR>
  211.  
  212. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement