Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <HTML>
- <base href="Private/"/>
- <meta name="viewport" content="width=320" />
- <br>
- <br>
- <br>
- <br>
- <br>
- <br>
- <br>
- <br>
- <br>
- <SCRIPT language=JavaScript>
- <!--
- function startclock()
- {
- var thetime=new Date();
- var nhours=thetime.getHours();
- var nmins=thetime.getMinutes();
- var nsecn=thetime.getSeconds();
- var theIamge;
- if (nhours>=13)
- nhours-=12;
- if (nhours==0)
- nhours=12;
- // Display the LEDS images
- theImage = document.getElementById('H8');
- if (nhours >= 8) {
- nhours -= 8;
- theImage.src = "ON.png";
- }
- else theImage.src = "OFF.png";
- theImage = document.getElementById('H4');
- if (nhours >= 4) {
- nhours -= 4;
- theImage.src = "ON.png";
- }
- else theImage.src = "OFF.png";
- theImage = document.getElementById('H2');
- if (nhours >= 2) {
- nhours -= 2;
- theImage.src = "ON.png";
- }
- else theImage.src = "OFF.png";
- theImage = document.getElementById('H1');
- if (nhours == 1) {
- theImage.src = "ON.png";
- }
- else theImage.src = "OFF.png";
- theImage = document.getElementById('M32');
- if (nmins >= 32) {
- nmins -= 32;
- theImage.src = "ON.png";
- }
- else theImage.src = "OFF.png";
- theImage = document.getElementById('M16');
- if (nmins >= 16) {
- nmins -= 16;
- theImage.src = "ON.png";
- }
- else theImage.src = "OFF.png";
- theImage = document.getElementById('M8');
- if (nmins >= 8) {
- nmins -= 8;
- theImage.src = "ON.png";
- }
- else theImage.src = "OFF.png";
- theImage = document.getElementById('M4');
- if (nmins >= 4) {
- nmins -= 4;
- theImage.src = "ON.png";
- }
- else theImage.src = "OFF.png";
- theImage = document.getElementById('M2');
- if (nmins >= 2) {
- nmins -= 2;
- theImage.src = "ON.png";
- }
- else theImage.src = "OFF.png";
- theImage = document.getElementById('M1');
- if (nmins == 1) {
- theImage.src = "ON.png";
- }
- else theImage.src = "OFF.png";
- theImage = document.getElementById('S32');
- if (nsecn >= 32) {
- nsecn -= 32;
- theImage.src = "ON.png";
- }
- else theImage.src = "OFF.png";
- theImage = document.getElementById('S16');
- if (nsecn >= 16) {
- nsecn -= 16;
- theImage.src = "ON.png";
- }
- else theImage.src = "OFF.png";
- theImage = document.getElementById('S8');
- if (nsecn >= 8) {
- nsecn -= 8;
- theImage.src = "ON.png";
- }
- else theImage.src = "OFF.png";
- theImage = document.getElementById('S4');
- if (nsecn >= 4) {
- nsecn -= 4;
- theImage.src = "ON.png";
- }
- else theImage.src = "OFF.png";
- theImage = document.getElementById('S2');
- if (nsecn >= 2) {
- nsecn -= 2;
- theImage.src = "ON.png";
- }
- else theImage.src = "OFF.png";
- theImage = document.getElementById('S1');
- if (nsecn == 1) {
- theImage.src = "ON.png";
- }
- else theImage.src = "OFF.png";
- setTimeout('startclock()',1000);
- }
- </SCRIPT>
- <BODY onload=startclock()>
- <TABLE cellSpacing=0 cellPadding=2 width="100%" border=0>
- <TBODY>
- <TR valign=middle>
- <TD align=middle><TABLE cellSpacing=0 cellPadding=0 border=0>
- <TBODY>
- <TR>
- <TD width=46></TD>
- <TD width=46></TD>
- <TD width=46></TD>
- <TD width=46></TD>
- <TD width=46></TD>
- <TD width=46><IMG height=11 alt=""
- src="Bc_Spacer.gif" width=5 border=0></TD></TR>
- <TR>
- <TD width=46></TD>
- <TD width=46></TD>
- <TD align=middle width=46><IMG id=H8 height=32 alt=""
- src="OFF.png" width=32 border=0></TD>
- <TD align=middle width=46><IMG id=H4 height=32 alt=""
- src="OFF.png" width=32 border=0></TD>
- <TD align=middle width=46><IMG id=H2 height=32 alt=""
- src="OFF.png" width=32 border=0></TD>
- <TD align=middle width=46><IMG id=H1 height=32 alt=""
- src="OFF.png" width=32 border=0></TD></TR>
- <TR>
- <TD width=46></TD>
- <TD width=46></TD>
- <TD width=46></TD>
- <TD width=46></TD>
- <TD width=46></TD>
- <TD width=46><IMG height=11 alt=""
- src="Bc_Spacer.gif" width=5 border=0></TD></TR>
- <TR>
- <TD align=middle width=46><IMG id=M32 height=32 alt=""
- src="OFF.png" width=32 border=0></TD>
- <TD align=middle width=46><IMG id=M16 height=32 alt=""
- src="OFF.png" width=32 border=0></TD>
- <TD align=middle width=46><IMG id=M8 height=32 alt=""
- src="OFF.png" width=32 border=0></TD>
- <TD align=middle width=46><IMG id=M4 height=32 alt=""
- src="OFF.png" width=32 border=0></TD>
- <TD align=middle width=46><IMG id=M2 height=32 alt=""
- src="OFF.png" width=32 border=0></TD>
- <TD align=middle width=46><IMG id=M1 height=32 alt=""
- src="OFF.png" width=32 border=0></TD></TR>
- <TR>
- <TD width=46></TD>
- <TD width=46></TD>
- <TD width=46></TD>
- <TD width=46></TD>
- <TD width=46></TD>
- <TD width=46><IMG height=11 alt=""
- src="Bc_Spacer.gif" width=5 border=0></TD></TR>
- <TR>
- <TD align=middle width=46><IMG id=S32 height=32 alt=""
- src="OFF.png" width=32 border=0></TD>
- <TD align=middle width=46><IMG id=S16 height=32 alt=""
- src="OFF.png" width=32 border=0></TD>
- <TD align=middle width=46><IMG id=S8 height=32 alt=""
- src="OFF.png" width=32 border=0></TD>
- <TD align=middle width=46><IMG id=S4 height=32 alt=""
- src="OFF.png" width=32 border=0></TD>
- <TD align=middle width=46><IMG id=S2 height=32 alt=""
- src="OFF.png" width=32 border=0></TD>
- <TD align=middle width=46><IMG id=S1 height=32 alt=""
- src="OFF.png" width=32 border=0></TD></TR>
- <TR>
- <TD width=46></TD>
- <TD width=46></TD>
- <TD width=46></TD>
- <TD width=46></TD>
- <TD width=46></TD>
- <TD width=46><IMG height=11 alt=""
- src="Bc_Spacer.gif" width=5 border=0></TD></TR>
- <TR>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement