Este divertido codigo HTML muestra sangre cayendo de arriba:
<img border='0' src='http://img260.imageshack.us/img260/119/bloodm.gif' style='position:fixed; top:0; left:0; width:100%; height:150px;'/>
Este codigo muestra la hora y la fecha exacta:
<color=#000000><script language="JavaScript">
//http://www.granhermano2011-envivo.blogspot.com/
function fecha(){
fecha = new Date()
mes = fecha.getMonth()
diaMes = fecha.getDate()
diaSemana = fecha.getDay()
anio = fecha.getFullYear()
dias = new Array('Domingo','Lunes','Martes','Miercoles','Jueves','Viernes','Sabado')
meses = new Array('Enero','Febrero','Marzo','Abril','Mayo','Junio','Julio','Agosto','Septiembre','Octubre','Noviembre','Diciembre')
document.write('<span id="fecha">')
document.write (dias[diaSemana] + ", " + diaMes + " de " + meses[mes] + " de " + anio)
document.write ('</span>')
}
</script>
<style type="text/css">
<!--
#fecha {
font-family: Tahoma, Verdana, Arial;
font-size: 12px;
color: #000000;
background :
}
-->
</style>
<script language="JavaScript">
function hora(){
var fecha = new Date()
var hora = fecha.getHours()
var minuto = fecha.getMinutes()
var segundo = fecha.getSeconds()
if (hora < 10) {hora = "0" + hora}
if (minuto < 10) {minuto = "0" + minuto}
if (segundo < 10) {segundo = "0" + segundo}
var horita = hora + ":" + minuto + ":" + segundo
document.getElementById('hora').firstChild.nodeValue = horita
tiempo = setTimeout('hora()',1000)
}
function inicio(){
document.write('<span id="hora">')
document.write ('000000</span>')
hora()
}
</script>
<style type="text/css">
<!--
#hora {
width:100px;
font-family: Tahoma, Verdana, Arial;
font-size: 12px;
color: #000000;
background :
}
-->
</style>
<div align="center">
<b><script>fecha()</script></b></div>
<div align="center">
<b><script>inicio()</script></b></div></color>
Este código sirve para cuando visiten tu página esta tiemble:
<html> <head> <title>TITULO</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head> <body bgcolor="#FFFFFF" text="#000000"> <p> <script language="JavaScript1.2"> function tremer(n) { if (self.moveBy) { for (i = 10; i > 0; i--) { for (j = n; j > 0; j--) { self.moveBy(0,i); self.moveBy(i,0); self.moveBy(0,-i); self.moveBy(-i,0); }}}} tremer(5) </script> <Script language=JavaScript> function right(e) {
if (navigator.appName == 'Netscape' && (e.which == 3 || e.which == 2)){ alert("PAGINA WEB"); return false; }
else if (navigator.appName == 'Microsoft Internet Explorer' && (event.button == 2 || event.button == 3)) { alert("PAGINAWEB"); return false; } return true;} document.onmousedown=right; if (document.layers)window.captureEvents(Event.MOUSEDOWN); window.onmousedown=right; </script> </body> </html>
</head> <body bgcolor="#FFFFFF" text="#000000"> <p> <script language="JavaScript1.2"> function tremer(n) { if (self.moveBy) { for (i = 10; i > 0; i--) { for (j = n; j > 0; j--) { self.moveBy(0,i); self.moveBy(i,0); self.moveBy(0,-i); self.moveBy(-i,0); }}}} tremer(5) </script> <Script language=JavaScript> function right(e) {
if (navigator.appName == 'Netscape' && (e.which == 3 || e.which == 2)){ alert("PAGINA WEB"); return false; }
else if (navigator.appName == 'Microsoft Internet Explorer' && (event.button == 2 || event.button == 3)) { alert("PAGINAWEB"); return false; } return true;} document.onmousedown=right; if (document.layers)window.captureEvents(Event.MOUSEDOWN); window.onmousedown=right; </script> </body> </html>
Este código sirve para poder cambiar el fondo de nuestra pagina:
<FORM> <INPUT TYPE="button" VALUE="gris" ONCLICK="document.bgColor='silver'"> <INPUT TYPE="button" VALUE="negro" ONCLICK="document.bgColor='black'"> <INPUT TYPE="button" VALUE="verde" ONCLICK="document.bgColor='lightgreen'"> <INPUT TYPE="button" VALUE="rojo" ONCLICK="document.bgColor='red'"> <INPUT TYPE="button" VALUE="blanco" ONCLICK="document.bgColor='white'"> <INPUT TYPE="button"VALUE="amarillo"ONCLICK="document.bgColor='yellow'"> </FORM>
Este código funciona para colocar un texto parpadeante en tu web:
<script language="JAVASCRIPT">TE1="AQUI EL TEXTO QUE VA A PARPADEAR";
TE2=""; M=TE1; cnt=0; function SH(){
document.Switch.A.value=M; cnt++; if(cnt==1 && M==TE1){M=TE2;} if(cnt==2 && M==TE2{cnt=0;M=TE1;} setTimeout("SH()",500); } // --> </script><form name="Switch"><div align="center"><center><p><font color="#008000" face="Verdana"><input name="A" size="50" style="color: #33ff33; font-weight: bold; font-family: Verdana, Arial; background-color: rgb(255,255,255); border: 2px outset rgb(0,128,0); margin-top: auto; padding-left: 5px"></font><script language="JAVASCRIPT"><!--SH();// --></script></font></p></center></div></form>
TE2=""; M=TE1; cnt=0; function SH(){
document.Switch.A.value=M; cnt++; if(cnt==1 && M==TE1){M=TE2;} if(cnt==2 && M==TE2{cnt=0;M=TE1;} setTimeout("SH()",500); } // --> </script><form name="Switch"><div align="center"><center><p><font color="#008000" face="Verdana"><input name="A" size="50" style="color: #33ff33; font-weight: bold; font-family: Verdana, Arial; background-color: rgb(255,255,255); border: 2px outset rgb(0,128,0); margin-top: auto; padding-left: 5px"></font><script language="JAVASCRIPT"><!--SH();// --></script></font></p></center></div></form>
http://www.todopatuweb.net/codigos/
http://tutoriales-ro0driig0o.blogspot.com/
No hay comentarios:
Publicar un comentario