Autor Zpráva
Petr PV
Profil *
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
Takto:

<div id="Clock" align="center" style="font-family: Verdana; font-size: 20px; color: gray;"> </div>
Radek Hrabůvka
Profil
<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
Toto téma je uzamčeno. Odpověď nelze zaslat.

0