Foros del Web » Creando para Internet » HTML »

Imagen En Nueva Ventana Redimensionada ?

Estas en el tema de Imagen En Nueva Ventana Redimensionada ? en el foro de HTML en Foros del Web. SE PUEDE COLOCAR EN UNA WEB UNA IMAGEN CON UN HIPERVINCULO A UNA VENTANA NUEVA CON LA IMAGEN QUE SEA DE TAMAÑO EXACTO DE LA ...
  #1 (permalink)  
Antiguo 09/05/2002, 04:33
 
Fecha de Ingreso: mayo-2002
Mensajes: 2
Antigüedad: 21 años, 10 meses
Puntos: 0
Imagen En Nueva Ventana Redimensionada ?

SE PUEDE COLOCAR EN UNA WEB UNA IMAGEN CON UN HIPERVINCULO A UNA VENTANA NUEVA CON LA IMAGEN QUE SEA DE TAMAÑO EXACTO DE LA IMAGEN ORIGINAL??
  #2 (permalink)  
Antiguo 09/05/2002, 07:57
bet
 
Fecha de Ingreso: febrero-2001
Mensajes: 292
Antigüedad: 23 años, 1 mes
Puntos: 0
Re: Imagen En Nueva Ventana Redimensionada ?

Esto es lo que precisás?

Código:
<html>
<head>
<title> New Document </title>

<script language="javascript">

var win = null;

function nuevaVentana(imag,nombre){

var imagen = new Image();
imagen.src = imag; 
imagen.name = 'imagen';

var w = imagen.width;
var h = imagen.height;

LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
TopPosition = (screen.height) ? (screen.height-h)/2 : 0;


est =
'height=' + h + ',width=' + w + ',top='+TopPosition+',left='+LeftPosition+',scrollbars=no,resizable';
win = window.open("",nombre,est);

win.document.open();
win.document.write("<html><head><title>");
win.document.write(nombre);
win.document.write("</title></head><body marginwidth='0' leftmargin='0' marginheight='0' topmargin='0'><img src='");
win.document.write(imag);
win.document.write("'></body></html>");
win.document.close();

}

</script>
</head>

<body>

<a href="javascript:;" onClick="nuevaVentana('493-minoucoeur.gif','imagen');return false">
Abrir Imagen</a>

</body>
</html>

<hr noshade size=1><img src="http://www.gograph.com/Images-8712/ClipArt/cat03.gif" height="50" border=0 align="absmiddle"> <font size="2" face="verdana" color="#000000">bet[/CODE]
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 23:29.