Ver Mensaje Individual
  #2 (permalink)  
Antiguo 12/01/2008, 06:32
Avatar de seoista
seoista
 
Fecha de Ingreso: septiembre-2003
Ubicación: Pues leyéndote
Mensajes: 1.076
Antigüedad: 20 años, 7 meses
Puntos: 59
Re: Cargar foto en popup

Hola canalnastic, tengo este código.

Espero que lo entiendas.
Cita:
<head>
<script type="text/javascript">
function detener(){
return true
}
window.onerror=detener

function verFoto(img, ancho, alto){
derecha=(screen.width-ancho)/2;
arriba=(550-alto)/2;

string="toolbar=0,scrollbars=0,location=0,statusba r=0,menubar=0,resizable=0,width="+ancho+",height=" +alto+",left="+derecha+"

,top="+arriba+"";
fin=window.open(img,"",string);
}
</script>
</head>

<body>
<!-- pop up -->
<a href="javascript:verFoto('foto1.html','550','475') "><img src="foto1.jpg" alt="" title="" /></a>
<a href="javascript:verFoto('foto2.html','550','475') "><img src="foto2.jpg" alt="" title="" /></a>
<!-- fin pop up -->
</body>
NOTA ACLARATORIA: ('foto1.html' , '550' , '475') = ('nombre_que_le_pongas_al_popup.html' , 'alto_de_la_foto' , 'ancho_de_la_foto')

Deseo que te sirva.

Saludos
__________________
· No contesto por M.P.