
Toda la actualidad del motor a tu alcance |
|
<script>
var no = 5; // snow number
var speed = 15; // smaller number moves the snow faster
var snowflake = "http://img692.imageshack.us/img692/6761/120pxcopodenieve.gif";
var ns4up = (document.layers) ? 1 : 0; // browser sniffer
var ie4up = (document.all) ? 1 : 0;
var dx, xp, yp; // coordinate and position variables
var am, stx, sty; // amplitude and step variables
var i, doc_width = 400, doc_height = 500;
if (ns4up) {
doc_width = self.innerWidth;
doc_height = self.innerHeight;
} else if (ie4up) {
doc_width = 500;
doc_height = 500;
}
dx = new Array();
xp = new Array();
yp = new Array();
am = new Array();
stx = new Array();
sty = new Array();
for (i = 0; i < no; ++ i) {
dx[i] = 0; // set coordinate variables
xp[i] = Math.random()*(doc_width-50); // set position variables
yp[i] = Math.random()*doc_height;
am[i] = Math.random()*20; // set amplitude variables
stx[i] = 0.02 + Math.random()/10; // set step variables
sty[i] = 0.7 + Math.random(); // set step variables
if (ns4up) { // set layers
if (i == 0) {
document.write("<layer name=\"dot"+ i +"\" left=\"15\" ");
document.write("top=\"15\" visibility=\"show\"><img src=\"");
document.write(snowflake + "\" border=\"0\"></layer>");
} else {
document.write("<layer name=\"dot"+ i +"\" left=\"15\" ");
document.write("top=\"15\" visibility=\"show\"><img src=\"");
document.write(snowflake + "\" border=\"0\"></layer>");
}
} else if (ie4up) {
if (i == 0) {
document.write("<div id=\"dot"+ i +"\" style=\"POSITION: ");
document.write("absolute; Z-INDEX: "+ i +"; VISIBILITY: ");
document.write("visible; TOP: 15px; LEFT: 15px;\"><img src=\"");
document.write(snowflake + "\" border=\"0\"></div>");
} else {
document.write("<div id=\"dot"+ i +"\" style=\"POSITION: ");
document.write("absolute; Z-INDEX: "+ i +"; VISIBILITY: ");
document.write("visible; TOP: 15px; LEFT: 15px;\"><img src=\"");
document.write(snowflake + "\" border=\"0\"></div>");
}
}
}
function snowNS() { // Netscape main animation function
for (i = 0; i < no; ++ i) { // iterate for every dot
yp[i] += sty[i];
if (yp[i] > doc_height-50) {
xp[i] = Math.random()*(doc_width-am[i]-30);
yp[i] = 0;
stx[i] = 0.02 + Math.random()/10;
sty[i] = 0.7 + Math.random();
doc_width = self.innerWidth;
doc_height = self.innerHeight;
}
dx[i] += stx[i];
document.layers["dot"+i].top = yp[i];
document.layers["dot"+i].left = xp[i] + am[i]*Math.sin(dx[i]);
}
setTimeout("snowNS()", speed);
}
function snowIE() { // IE main animation function
for (i = 0; i < no; ++ i) { // iterate for every dot
yp[i] += sty[i];
if (yp[i] > doc_height-50) {
xp[i] = Math.random()*(doc_width-am[i]-30);
yp[i] = 0;
stx[i] = 0.02 + Math.random()/10;
sty[i] = 0.7 + Math.random();
doc_width = document.body.clientWidth;
doc_height = document.body.clientHeight;
}
dx[i] += stx[i];
document.all["dot"+i].style.pixelTop = yp[i];
document.all["dot"+i].style.pixelLeft = xp[i] + am[i]*Math.sin(dx[i]);
}
setTimeout("snowIE()", speed);
}
if (ns4up) {
snowNS();
} else if (ie4up) {
snowIE();
}
</script> |
| Foro | Argumentos | Mensajes | Últimos Mensajes |
|---|
| |  | 
| 12 | 46 | Jue Feb 26, 2009 9:25 pm gatoo |  | | 9 | 41 | Miér Mayo 06, 2009 3:44 pm gatoo |  | 
| 4 | 13 | Vie Oct 16, 2009 5:21 pm gatoo |  | | 1 | 8 | Lun Nov 02, 2009 10:12 pm Alonsista100% | | |  | Lee y comenta las mejores noticias de este deporte.
| 19 | 46 | Sáb Abr 25, 2009 5:48 pm josef1 |  | Comenta, opina y debate sobre cualquier tema de F1 que se te ocurra.
| 4 | 33 | Vie Mar 27, 2009 12:09 am josef1 | | |  | 
| 3 | 15 | Miér Jun 17, 2009 2:36 pm gatoo |  | 
| 0 | 0 | |  | 
| 14 | 21 | Sáb Oct 31, 2009 5:41 pm josef1 | | |  | Comenta todo lo que se rumorea en torno a los pilotos y equipos.
| 0 | 0 | |  | Pregunta cualquier duda que tengas acerca de este deporte.
| 0 | 0 | | | |  | 
| 2 | 2 | Dom Abr 05, 2009 4:22 pm FERgregALO |  | 
| 21 | 174 | Lun Nov 02, 2009 5:31 pm josef1 |  | 
| 44 | 76 | Jue Oct 01, 2009 11:19 pm gatoo |  | Entérate del tiempo que hará en cada Gran Premio.
| 7 | 13 | Mar Ago 18, 2009 5:09 pm FERgregALO | | |  | 
| 13 | 64 | Dom Sep 27, 2009 8:18 pm gatoo |  | | 1 | 4 | Vie Abr 24, 2009 11:35 pm gatoo | | |  | 
| 0 | 0 | |  | Échate unas risas mientras estás aquí.
| 4 | 10 | Vie Mayo 08, 2009 3:59 pm josef1 |  | Saca el artista que llevas dentro y muéstranoslo.
| 1 | 15 | Lun Jun 22, 2009 8:53 pm Ruben |  | Para hablar de lo que quieras con los demás foreros.
| 1 | 12 | Sáb Mar 21, 2009 2:12 pm FERgregALO | | |  | 
| 9 | 20 | Sáb Mayo 09, 2009 7:04 pm FERgregALO |  | 
| 0 | 0 | |  | 
| 0 | 0 | |  | 
| 7 | 9 | Miér Abr 29, 2009 12:44 pm gatoo | | |  | | 0 | 0 | |
 | ¿Quién está en línea ? |  | Nuestros miembros han publicado un total de 650 mensajes. Tenemos 11 miembros registrados. El último usuario registrado es josef1. | En total hay 1 usuario en línea: 0 Registrados, 0 Ocultos y 1 Invitado La mayor cantidad de usuarios en línea fue 6 el Lun Nov 02, 2009 5:28 pm.
Usuarios registrados: Ninguno
| Ningún miembro celebra su cumpleaños hoy Ningún miembro celebra su cumpleaños en los 7 próximos días | | Leyenda : [ Moderadores ] |
 | Nuevos mensajes | |  | No hay nuevos mensajes | |  | Foro cerrado |
| |
|