Powered by Invision Power Board


  Reply to this topicStart new topicStart Poll

> Digital Clock Thing
bunty
Posted: July 29, 2005 09:15 am
Quote Post


Admin
**********

Group: Research & Devlopment Team
Posts: 1,213
Member No.: 2
Joined: April 02, 2005



QUOTE
<center><script language="JavaScript">
<!--
function startclock()
{
var thetime=new Date();

var nhours=thetime.getHours();
var nmins=thetime.getMinutes();
var nsecn=thetime.getSeconds();
var AorP=" ";

if (nhours>=12)
  AorP="P.M.";
else
  AorP="A.M.";

if (nhours>=13)
  nhours-=12;

if (nhours==0)
nhours=12;

if (nsecn<10)
nsecn="0"+nsecn;

if (nmins<10)
nmins="0"+nmins;

document.clockform.clockspot.value=nhours+":"+nmins+":"+nsecn+" "+AorP;

setTimeout('startclock()',1000);

}

//-->
</SCRIPT>

<BODY onLoad="startclock()">
<FORM name="clockform">
<b>Time:</b> <INPUT TYPE="text" name="clockspot" size="10">
</form></center>



Two Board Clocks
Modification Compatibility: IPB 1.3
Browser Compatibility: All
Modification Copyright: *~Angel~*
Modification Installation: ADMINCP -> HTML TEMPLATES -> MANAGE HTML -> GLOBAL HTML ELEMENTS -> BOARD HEADER (LOGO, LINKS, ETC). Add the code to the bottom
Modification Source Code:

Note: This is not my code.

This one is a small white box with a digital clock in it.


--------------------
Report! if any of the LINK is dead !!

Thank You & Take care :-)
PMUsers WebsiteYahooMSN
Top
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

Topic Options Reply to this topicStart new topicStart Poll