Ver Mensaje Individual
  #6 (permalink)  
Antiguo 22/09/2005, 15:18
Avatar de Saruman
Saruman
 
Fecha de Ingreso: mayo-2003
Ubicación: Panama city, Panama, Panama
Mensajes: 1.154
Antigüedad: 21 años, 8 meses
Puntos: 5
ok, ya lo tengo.
copia y pega en tu editor html estos dos archivos por separado con sus nombres.

default.html
Código HTML:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Untitled Document</title>
</head>
<body> 
<a href="#" onclick="window.open('vistaprevia.html?imagen=miimagen.jpg','Flores','width=370,height=489')">IMAGEN</a>
</body>
</html> 
la variable "imagen" es la que contiene el nombre de la imagen que quieres mostrar... si no entiendes me avisas.

vistaprevia.html
Código HTML:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Untitled Document</title>
</head>
<body onLoad="getImageName()"> 
<script language="javascript">
 function getImageName() {
  var main_url = "http://www.direccion.com/folder_imagenes/";
  var url = document.location;
  url = url.toString();
  var question_mark_position = url.indexOf("?imagen=");
  var nom_image = String(url).substring((question_mark_position+8), url.length);
  var img = document.getElementById("MiImagen");
  img.src = main_url + nom_image;
 }
 
 function click() {
  if (event.button == 2) {
   alert ("Imágenes y contenido, propiedad de Erika.");
  }
 }
 document.onmousedown = click;
</script>
<img id="MiImagen" border="0">
</body>
</html> 
y listo. no tienes que preocuparte por muchas paginas, solo envia el nombre de la imagen y listo.

espero te sirva.

saludos.
__________________
Saruman

One Ring to rule them all, One Ring to find them, One Ring to bring them all and in the darkness bind them.