|
|
|

|

|
Dicas
|

|
ASP - Active Server Page (Miscelâneas)
|
|
 |
Título da Dica: Mostra a Data e a Hora do micro
|
 |
|
|
Postada em 17/10/2003 por Tekki
<html>
<head>
<style type="text/css"> <!-- A:link {color:ff0000;} A:link {text-decoration:none;} A:visited {text-decoration:none; color:ff0000;} A:hover {text-decoration: line-through;} A:hover{color:FFffff;} --> </style>
<title>Data e Hora</title> <script LANGUAGE="JAVASCRIPT"> <!-- function ShowHours() { TodaysHour = new Date() horas = TodaysHour.getHours() minutos = TodaysHour.getMinutes()
if (horas < 10) horas= "0" + horas
if (minutos < 10) minutos = "0" + minutos
document.write(horas+":"+minutos) }
function ShowTodayDate() { now = new Date() dia = now.getDate() mes = now.getMonth() + 1 ano = now.getYear()
if (dia < 10) dia = "0" + dia if (mes < 10) mes = "0" + mes if (ano < 2000) ano = "19" + ano
document.write(dia+"-" +mes+ "-" +ano)
}
// --></script> </head>
<body bgcolor="#501CB8" text="#ffffff" background="../Imagens/JPG/fundo_azul.JPG" bgproperties=fixed leftmargin="0" topmargin="0" marginwidth="0" marginheight="0"> <table border="0" align="right" width="198"> <tr> <td bgcolor="#000000" cellspacing="0" cellpadding="0"> <div align="right"><font color="#FFCC66" face="Tempus Sans ITC" size="4">Data e Hora</font></div> </td> </tr> </table> <p align="center"><font face="verdana" size="6"></font></p> <p align="center"> </p> <p align="center"> </p>
<p align="center"><font face="verdana">Olá, hoje é dia:<font color="#FFCC66"> <script>ShowTodayDate();</script> </font> e agora são exatamente<font color="#FFCC66"> <script>ShowHours();</script> </font>. </font></p> <p> </p><p> </p> <p align="right"> <font size="5" face="Tempus Sans ITC"><font size="5" face="Tempus Sans ITC"><a href="javascript:history.back()" onMouseOut="status='';" onMouseOver="status='VOLTAR'; return true;"><font size="5" face="Tempus Sans ITC"><<<Voltar</font></a></font></font> </body> </html>
|
|
|
|

|