Buscar hosting en BuscaHost.com Alojamiento web : Plataforma Windows Plataforma Linux/Unix Espacio: Costo:
Servicio proporcionado por BuscaHost.com, el primer buscador de hosting hispano


Efectos JavaScript para Imagenes

Fondo Aleatorio

<script>
/*Random background color- by javascriptkit.com
Visit JavaScript Kit (http://javascriptkit.com) for script
Credit must stay intact for use*/ //Pone la lista de colores aqui:
var bgcolorlist=new Array("#DFDFFF", "#FFFFBF", "#80FF80", "#EAEAFF", "#C9FFA8", "#F7F7F7", "#FFFFFF", "#DDDD00") document.bgColor=bgcolorlist[Math.floor
(Math.random()*bgcolorlist.length)]
</script>

Fondo Cambia Segun La Hora

<script>
<!--
//Feel free to copy and modify this script, but please keep the comment lines!
//Written by Mattias Sj&ouml;berg 8/8-1996
//-----------------------------------------
//| mattias.sjoberg@swipnet.se |
//|---------------------------------------|
//| //\\ //\\ /// | |
//| // \\// \\ / | Advertise |
//|// \\ /// | |
//| Mattias / | Here |
//| Sjoberg /// | |
//|---------------------------------------|
//| www.geocities.com/SiliconValley/7116 |
//| Vote for my page the above URL |
//-----------------------------------------
var now = new Date();
var hours = now.getHours();
var psj=0; //18-19 night
if (hours > 17 && hours < 20){
document.write('<body bgcolor="orange" text="#FFFFFF">')
} //20-21 night
if (hours > 19 && hours < 22){
document.write('<body bgcolor="orangered" text="#FFFFFF">')
} //22-4 night
if (hours > 21 || hours < 5){
document.write('<body bgcolor="black" text="#FFFFFF">')
} //9-17 day
if (hours > 8 && hours < 18){
document.write('<body bgcolor="deepskyblue" text="#FFFFFF">')
} //7-8 day
if (hours > 6 && hours < 9){
document.write('<body bgcolor="skyblue" text="#FFFFFF">')
} //5-6 day
if (hours > 4 && hours < 7){
document.write('<body bgcolor="steelblue" text="#FFFFFF">')
}
//-->
</script>

Background Cambia De Color Continuamente

<script language="JavaScript" type="text/javascript">
<!--
//you can assign the initial color of the background here
r=255;
g=255;
b=255;
flag=0;
t=new Array;
o=new Array;
d=new Array; function hex(a,c)
{
t[a]=Math.floor(c/16)
o[a]=c%16
switch (t[a])
{
case 10:t[a]='A';break;
case 11:t[a]='B';break;
case 12:t[a]='C';break;
case 13:t[a]='D';break;
case 14:t[a]='E';break;
case 15:t[a]='F';break;
default:break;}
switch (o[a]){
case 10:o[a]='A';break;
case 11:o[a]='B';
break;case 12:o[a]='C';
break;case 13:o[a]='D';
break;case 14:o[a]='E';
break;case 15:o[a]='F';
break;default:break;}} function ran(a,c)
{
if ((Math.random()>2/3||c==0)&&c<255)
{
c++
d[a]=2;
}
else
{
if ((Math.random()<=1/2||c==255)&&c>0)
{c--
d[a]=1;
}else d[a]=0;
}return c
}function do_it(a,c)
{if ((d[a]==2&&c<255)||c==0){
c++
d[a]=2}
else
if ((d[a]==1&&c>0)||c==255)
{c--;
d[a]=1;}
if (a==3){
if (d[1]==0&&d[2]==0&&d[3]==0)
flag=1}
return c}
function disco(){
if (flag==0){
r=ran(1, r);
g=ran(2, g);
b=ran(3, b);
hex(1,r)
hex(2,g)
hex(3,b)
document.bgColor="#"+t[1]+o[1]+t[2]+o[2]+t[3]+o[3]
flag=50}else{
r=do_it(1, r)
g=do_it(2,g)
b=do_it(3,b)
hex(1,r)
hex(2,g)
hex(3,b)
document.bgColor="#"+t[1]+o[1]+t[2]+o[2]+t[3]+o[3]
flag--}if (document.all)
setTimeout('disco()',50)
}
//-->
</script>

Finalmente, agregar dentro de la etiqueta <body> este codigo: onload="disco()"   Te tiene que quedar algo como esto: <body onload="disco()">. Si tenes algo mas adentro de la etiqueta body, no importa. Generalmente hay un color o imagen de fondo dentro de esta etiqueta.