Foros del Web » Programando para Internet » Javascript »

efecto nieve y archivos flash

Estas en el tema de efecto nieve y archivos flash en el foro de Javascript en Foros del Web. Hola a todos: Tengo este archivo que hace el efecto nieve: Código: var snowsrc="snow.gif" var no = 30; var ie4up = (document.all) ? 1 : ...
  #1 (permalink)  
Antiguo 14/12/2005, 20:28
 
Fecha de Ingreso: marzo-2005
Mensajes: 149
Antigüedad: 19 años, 2 meses
Puntos: 0
efecto nieve y archivos flash

Hola a todos:

Tengo este archivo que hace el efecto nieve:

Código:
var snowsrc="snow.gif"
var no = 30;
var ie4up = (document.all) ? 1 : 0;
var nn6up = (document.getElementById) ? 1 : 0;
var dx, xp, yp;
var am, stx, sty;
var i, doc_width = 800, doc_height = 3000;
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;
xp[i] = Math.random()*(doc_width-50);
yp[i] = Math.random()*doc_height;
am[i] = Math.random()*20;
stx[i] = 0.02 + Math.random()/10;
sty[i] = 0.7 + Math.random();
if (ie4up || nn6up) {
if (i == 0) { document.write("<div id=dot"+ i +" style=\"POSITION: absolute; Z-INDEX: "+ i +"; VISIBILITY: visible; TOP: 15px; LEFT: 15px;\"><img src='"+snowsrc+"' border=0></div>");
} else {
document.write("<div id=dot"+ i +" style=\"POSITION: absolute; Z-INDEX: "+ i +"; VISIBILITY: visible; TOP: 15px; LEFT: 15px;\"><img src='"+snowsrc+"' border=0></div>");
}
}
}
function snowIE() {
for (i = 0; i < no; ++ i) {
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();
}
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()", 35);
}
function snowNN6() {
for (i = 0; i < no; ++ i) {
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();
}
dx[i] += stx[i];
document.getElementById("dot"+i).style.top = yp[i];
document.getElementById("dot"+i).style.left = xp[i] + am[i]*Math.sin(dx[i]);
}
setTimeout("snowNN6()", 35);
}
if (ie4up) {
snowIE();
} else if (nn6up) {
snowNN6();
}
El problema que tengo es que en los archivos flash que tengo en la web el copo de nieve aparece justo detras de ellos y no se ven estos copos cuando llegan a estos archivos.

¿¿Alguna solución?? ¿¿Qué puedo modificar??

Gracias
  #2 (permalink)  
Antiguo 17/12/2005, 03:38
 
Fecha de Ingreso: octubre-2005
Mensajes: 407
Antigüedad: 18 años, 7 meses
Puntos: 2
respuesta

<param name="WMode" value="Transparent"> entre <object> y </object>, con esto funciona
  #3 (permalink)  
Antiguo 21/12/2005, 22:55
 
Fecha de Ingreso: marzo-2005
Mensajes: 149
Antigüedad: 19 años, 2 meses
Puntos: 0
Muchas gracias.

...y para las capas con etiqueta <div> q me sucede lo mismo??

Gracias por adelantado
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 15:48.