SupportArea

BoltWire is a FREE content management system written in PHP.

Its innovative architecture combined with best-in-class forms processing makes it ideal for creating complex, interactive, web applications fast...


PLUGINS

SKINS

LANGUAGES

Clock

Extensions > Plugins > Clock

Here's what this script produces:

To do it, just create a page called code.embed.clock with the following content. Then somewhere in your site put <(embed clock)>. That's about it.


<form name="clock" onSubmit="0">
<input type="text" name="face" size=13 value='' style="border:0;color: #000;">
</form>
<script language="JavaScript">
<!--
function showtime(){
    var now = new Date()
    var hours = now.getHours()
    var minutes = now.getMinutes()
    var seconds = now.getSeconds()
    var timeValue = "" + ((hours > 12) ? hours - 12 : hours)
    var timeValue1 = "" + ((hours < 10) ? "0" : "") + hours
    timeValue  += ((minutes < 10) ? ":0" : ":") + minutes
    timeValue1 += ((minutes < 10) ? ":0" : ":") + minutes
    timeValue  += ((seconds < 10) ? ":0" : ":") + seconds
    timeValue1 += ((seconds < 10) ? ":0" : ":") + seconds
    timeValue  += (hours >= 12) ? " p.m." : " a.m."
    document.clock.face.value = timeValue
    timerID = setTimeout("showtime()",1000)
}
showtime();
//-->
</script>