Autor | Zpráva | ||
---|---|---|---|
Petr PV Profil * |
#1 · Zasláno: 17. 6. 2006, 09:26:26
prosim jak u tohoto kodu zmenim barvu na šedou ??? jsou to hodiny s barvou černou ....
<script> function tick() { var hours, minutes, seconds, ap; var intHours, intMinutes, intSeconds; var today; today = new Date(); intHours = today.getHours(); intMinutes = today.getMinutes(); intSeconds = today.getSeconds(); if (intHours == 0) { hours = "12:"; ap = "Midnight"; } else if (intHours < 12) { hours = intHours+":"; ap = "A.M."; } else if (intHours == 12) { hours = "12:"; ap = "Noon"; } else { intHours = intHours - 12 hours = intHours + ":"; ap = "P.M."; } if (intMinutes < 10) { minutes = "0" + intMinutes + ":"; } else { minutes = intMinutes + ":"; } if (intSeconds < 10) { seconds = "0" + intSeconds + " "; } else { seconds = intSeconds + " "; } timeString = hours + minutes + seconds + ap; Clock.innerHTML = timeString; window.setTimeout("tick();", 100); } window.onload = tick; </script> <div id="Clock" align="center" style="font-family: Verdana; font-size: 20px;"> </div> diikk |
||
aitoo Profil |
#2 · Zasláno: 17. 6. 2006, 09:30:46
Takto:
<div id="Clock" align="center" style="font-family: Verdana; font-size: 20px; color: gray;"> </div> |
||
Radek Hrabůvka Profil |
#3 · Zasláno: 17. 6. 2006, 11:23:58
<div id="Clock" align="center" style="font-family: Verdana; font-size: 20px; color: #999999;"> </div>
Všechny číslice stejné, nezapomeň na znak #, vyber si vhodcou šedou: http://www.jakpsatweb.cz/archiv/barvy-bezpecne.html |
||
Časová prodleva: 19 let
|
Toto téma je uzamčeno. Odpověď nelze zaslat.
0