Ver Mensaje Individual
  #8 (permalink)  
Antiguo 03/06/2003, 03:00
Avatar de JavierB
JavierB
Colaborador
 
Fecha de Ingreso: febrero-2002
Ubicación: Madrid
Mensajes: 25.052
Antigüedad: 22 años, 2 meses
Puntos: 772
Rerehola.

En primer lugar derás poner las capas del mismo tamaño (ancho y alto) que las imágenes que has puesto dentro. En segundo, en tu código tienes que añadir lo que aparece en rojo:

function MM_showHideLayers() { //v6.0
var i,p,v,obj,args=MM_showHideLayers.arguments;
for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
if (v=='visible') centrarCapa(obj);
obj.visibility=v; }
}
function centrarCapa(obj) {
an=parseInt(obj.width);
al=parseInt(obj.height);
x=(document.body.clientWidth-an)/2;
y=(document.body.clientHeight-al)/2;
obj.left=x;
obj.top=y;
}


Saludos,