Data e hora
#1 Visitante_Rafael
Posted 23/02/2003, 23:10
#2
Posted 23/02/2003, 23:27
<script language="JavaScript">
var now = new Date();
var mName = now.getMonth() + 1;
var dName = now.getDay() + 1;
var dayNr = now.getDate();
var yearNr=now.getYear();
if(dName==1) Day = "domingo";
if(dName==2) Day = "segunda";
if(dName==3) Day = "terça";
if(dName==4) Day = "quarta";
if(dName==5) Day = "quinta";
if(dName==6) Day = "sexta";
if(dName==7) Day = "sábado";
if(yearNr < 2000) Year = 1900 + yearNr;
else Year = yearNr;
var todaysDate =(" " + Day + ", " + dayNr + "/" + mName + "/" + Year);
// -->
</SCRIPT>
Aí, no lugar que vc quer que seja exibida a data, vc pôe assim:
<script>document.write(todaysDate);</SCRIPT>
Fui...
chinello at gmail dot com
System > Athlon 64 3200+ Mobile | Kubuntu 7.04 Fesity Fawn AMD64 | Kernel 2.6.20-16
Coding @ KDE 3.5.7 | PHP 5.2.1 | Apache 2.2.3 | MySQL 5.0.38
#3 eduaires
Posted 24/02/2003, 02:02
antes de pedir um script aki ... acesse este site www.scriptfacil.comAlguem tem?
q todos os scripts se encontram la... falow
#4
Posted 24/02/2003, 02:23
não faça mais isso
#5
Posted 27/11/2005, 03:46
Ele só aparece quando colocamos no modo VISUALIZAÇÃO ...
pq iso acontece??? existe alguma configuração??
outra coisa ... para mudar a font o q devo inserir no código?
[s]
1 user(s) are reading this topic
0 membro(s), 1 visitante(s) e 0 membros anônimo(s)