JavaScript - ventana auxiliar

 
Vista:

ventana auxiliar

Publicado por joahna ruiz (3 intervenciones) el 24/02/2009 11:51:41
Hola.
Estoy desesperada y espero que alguién me pueda ayudar.
Tengo un script y lo que quiero es mostrar una imagen que le paso y un determinado texto.
No me sale la imagen.
Os dejo el código para ver si me podeis ayudar:

FUNCIÓN

<script LANGUAGE="JavaScript">
function CargarFoto(imgAux, ancho, alto){
derecha=(screen.width-ancho)/2;
arriba=(screen.height-alto)/2;
string="toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=1,width="+ancho+",height="+alto+",left="+derecha+",top="+arriba+"";
fin=window.open(imgAux,"",string);
fin.document.write("<html><head><title>Pendientes oferta</title></head><body><img src="+imgAux+"/>"+"</body>");
}
</script>

LLAMADA

<a href="javascript:CargarFoto('ofertas/pendiente oferta.jpg','240','350');">Ver oferta>>>> </a></h5>

No se si esta correcto. Yo lo que quiero es que cuando le des a un link me aparezca una ventana auxiliar con un determinado texto y la imagen que le paso.

GRACIAS!!!
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder