Ver Mensaje Individual
  #3 (permalink)  
Antiguo 28/08/2008, 23:29
NachoPistacho
 
Fecha de Ingreso: agosto-2008
Mensajes: 4
Antigüedad: 15 años, 8 meses
Puntos: 0
Respuesta: Ayuda con código Javascript

Gracias por contestar David, te refieres así?

Código:
<html>
<title>Proj</title>

<HEAD>

<SCRIPT LANGUAGE="JavaScript">

<!-- Begin

var x;
var z;
z=prompt("Numero de veces","");

closetime = 3; // Close window after __ number of seconds?
// 0 = do not close, anything else = number of seconds

function Start(URL, WIDTH, HEIGHT) {
windowprops = "left=50,top=50,width=" + WIDTH + ",height=" + HEIGHT;
preview = window.open(URL, "preview", windowprops);
if (closetime) setTimeout("preview.close();", closetime*1000);
}

function doPopup(){
 for (x = 1; x < z; x++)
   {
url = "http://www.google.es";
width = 267;  // width of window in pixels
height = 103; // height of window in pixels
delay = 2;    // time in seconds before popup opens
timer = setTimeout("Start(url, width, height)", delay*1000);
}
}

//  End -->
</script>
<body>

<BODY OnLoad="doPopup();">
</body>
</html>
Si es así, sigue sin funcionar :(!