Guest SirLucane Posted September 3, 2011 Share Posted September 3, 2011 Aici este javascript-ul pentru a fi inclus intre <head> . </head> : [color=#0000FF]<script type="text/javascript">function UR_Start(){ UR_Nu = new Date; UR_Indhold = showFilled(UR_Nu.getHours()) + ":" + showFilled(UR_Nu.getMinutes()) + ":" + showFilled(UR_Nu.getSeconds()); document.getElementById("ur").innerHTML = UR_Indhold; setTimeout("UR_Start()",1000);}function showFilled(Value){ return (Value > 9) ? "" + Value : "0" + Value;}</script>[/color] Includeti acest cod html in pozitia dorita pe pagina web, unde vreti ca ceasul sa fie aratat: Alte detalii : Cum puteti schimba fontul , marimea : [color=#0000FF]<font id="ur" size="10" face="Trebuchet MS, Verdana, Arial, sans-serif" color="#DAD3B7"></font> [/color][/code] [color=#0000FF][b]Schimbare body :[/b][/color] [CODE][color=#0000FF]<body onload="UR_Start()"> [/color][/code] Link to comment Share on other sites More sharing options...
Recommended Posts