quarta-feira, 30 de abril de 2014

Relógio digital de 24 horas para blog

Relógio digital de 24 horas para blog.
Pequeno relógio digital de 24 horas para seu blog.


........Veja o script abaixo, copie e cole no htm.......

 <!--COMEÇA O CÓDIGO AQUI-->
<SCRIPT language=javascript>
<!--
var timerID = null;
var timerRunning = false;
function stopclock()
{
    if(timerRunning)
        clearTimeout(timerID)
    timerRunning = false;
}

function startclock()
{
    stopclock();
    showtime();
}

function showtime()
{
    var now = new Date();
    var hours = now.getHours();
    var minutes = now.getMinutes();
    var seconds = now.getSeconds();
    var timeValue = "" + ((hours > 24) ? hours - 24 : hours);
    timeValue  += ((minutes < 10) ? ":0" : ":") + minutes;
    timeValue  += ((seconds < 10) ? ":0" : ":") + seconds;
    document.clock.face.value = timeValue;
    timerID = setTimeout("showtime()",1000);
    timerRunning = true;
}
//-->
</SCRIPT>
<FORM name=clock onsubmit=0><font size="4" color="#FFFFFF">
<INPUT
style="BACKGROUND: #FF1493; COLOR: #FFFFFF; FONT-VARIANT: normal; font-weight:bold"
size=6 border=0 name=face></font></FORM>
<SCRIPT>startclock();</SCRIPT>
<!--TERMINA O CÓDIGO AQUI-->



Nenhum comentário:

Postar um comentário

Seguidores

Postagens populares

Prestação de serviço

  • "TAMBÉM PODERÁ GOSTAR DE:"