fsanches 1 Denunciar post Postado Fevereiro 27, 2003 Aos iniciantes em php, como eu Script hora/data. Quem precisar deste script simples, segue abaixo seu código fonte. <script language="JavaScript"> <!-- function showtime() { setTimeout("showtime();",1000); callerdate.setTime(callerdate.getTime()+1000); var hh = String(callerdate.getHours()); var mm = String(callerdate.getMinutes()); var ss = String(callerdate.getSeconds()); document.clock.face.value = ((hh < 10) ? " " : "") + hh + ((mm < 10) ? ":0" : ":") + mm + ((ss < 10) ? ":0" : ":") + ss; } callerdate=new Date(<?php echo date("Y,m,d,H,i,s");?>); //--> </script> <body onLoad="showtime()"> <form name="clock"><input type="text" name="face" value="" size=15></form> Compartilhar este post Link para o post Compartilhar em outros sites
Daniel Bahia 0 Denunciar post Postado Junho 27, 2007 Cara eu achei que esse Fórum fosse sobre PHP Compartilhar este post Link para o post Compartilhar em outros sites