Ver Mensaje Individual
  #6 (permalink)  
Antiguo 27/01/2011, 14:58
Avatar de Perr0
Perr0
 
Fecha de Ingreso: mayo-2005
Ubicación: Santiago de Chile, Chile
Mensajes: 676
Antigüedad: 18 años, 11 meses
Puntos: 79
Respuesta: Necesito rotar banners aleatoriamente

por enésima vez XD (bueno lo hice porque me tomo 3 min)

esta montado en la misma pagina el ejemplo

http://perr0.netii.net/exs/banner_aleatorio/

pero te digo como funciona:
agrege un array de paginas, respectiva al array de banners, luego viene lo siguiente:

pg="http://"+paginacarga[aleatorio];
if(contador==0){
b1.style.zIndex=50;
b2.style.zIndex=80;
b2.style.opacity = 0;
b2.style.filter = 'alpha(opacity=' + 0 + ')';
b2.style.backgroundImage="url("+im+")";
b2.onclick=function(){document.location=pg};
alphaimg(b2.id);
}else{
b1.style.zIndex=80;
b2.style.zIndex=50;
b1.style.opacity = 0;
b1.style.filter = 'alpha(opacity=' + 0 + ')';
b1.style.backgroundImage="url("+im+")";
b1.onclick=function(){document.location=pg};
alphaimg(b1.id);
}


lo que esta en negro es lo agregado...ahora me desconecto

salu2
__________________
Numerador Mp3 en Access =)
http://www.mediafire.com/download/r9...pdw/mp3(2).zip