Para colocar um rel�gio em sua hp � s� copiar o c�digo abaixo
e ensira em sua p�gina.
<
form name="form1" onsubmit="0">
<
div align="center"><center><p><font face="Comic Sans MS"><input type="text" size="6"
name="
campo1" value="Hora Certa" style="border:
thick outset rgb(255,0,0)"><script><!-- hide from old broswers
// Copyright (c) 1997 GabScape�
// Todos os direitos s�o reservados
// Mais informa��es e outros scripts s�o encontrados
// em http://www.convoy.com.br/~pereira
var timerID = null;
var timerRunning = false;
function stopclock (){
if(timerRunning)
clearTimeout(timerID);
timerRunning = false;
}
function startclock () {
stopclock();
showtime();
}
function days(dom, seg, ter, qua, qui, sex, sab){
this.sun = dom;
this.mon = seg;
this.tue = ter;
this.wed = qua;
this.thu = qui;
this.fri = sex;
this.sat = sab; }
DayNames = new days("Domingo", "Segunda", "Ter�a",
"Quarta", "Quinta", "Sexta", "S�bado");
function showtime () {
var now = new Date();
var hours = now.getHours();
var minutes = ((now.getMinutes() < 10) ? ":0" : ":") +
now.getMinutes();
var seconds = ((now.getSeconds() < 10) ? ":0" : ":") +
now.getSeconds();
var timeValue = hours + minutes + seconds;
document.form1.campo1.value = timeValue;
var HourOffset = now.getHours() - Math.round(now.getTimezoneOffset() / 60);
var DayOffset = 0
if (HourOffset > 23)
{DayOffset = 1
HourOffset = HourOffset - 24 }
if (HourOffset < 0)
{DayOffset = -1
HourOffset = 24 + HourOffset }
if (now.getDay() + DayOffset == -1) {DayOffset = 6};
if (now.getDay() + DayOffset == 7) {DayOffset = -6};
var gmtTime = "" + DayNames[now.getDay() + DayOffset]
+ " " + HourOffset + minutes + seconds;
timerID = setTimeout("showtime()",1000);
timerRunning = true;
}
// end hide from old broswers-->
startclock()<
/script></font></p>
<
/center></div>
Para colocar um campo como o abaixo, copie o c�digo coloque em
sua HP.
<script language="JavaScript"><!--
// begin
// global variabes
var MESSAGE = " Aqui Voc� coloca a sua mensagem!!! "
var SPEED = 25;
var id,pause=0,position=0;
function banner() {
// variables declaration
var i,k,msg=MESSAGE; /*document.form1.message.value*/;
// increase msg
k=(66/msg.length)+1;
for(i=0;i<=k;i++) msg+=" "+msg;
// show it to the window
document.form2.banner.value=msg.substring(position,position+50);
// show it to the status bar
//window.status=msg.substring(position,position+66);
// set new position
if(position++==msg.length /*document.form1.message.value.length*/) position=0;// repeat
at entered speed
id=setTimeout("banner()",1000/SPEED); }
function action() {
// stop rolling
if(!pause) {
clearTimeout(id);
pause=1; }
// continue rolling
else {
banner();
pause=0; }
}
// End
document.write("<CENTER><form name=form2>");
document.write("<input type=text name=banner size=32>");
document.write("</form></CENTER>");
banner();
// --></script>
ASSINE MEU LIVRO DE VISITAS!!!
AssinarGuestbook
-- Ver Guestbook