Ver Mensaje Individual
  #1 (permalink)  
Antiguo 07/02/2002, 18:54
zpez
 
Fecha de Ingreso: octubre-2001
Mensajes: 268
Antigüedad: 22 años, 6 meses
Puntos: 0
abrir con el teclado un pop-up??????????????????

Yo tengo esta función en un .js que abre un enlace con una tecla:

var Navegador = (window.Event) ? 1 : 0

function CompruebaTecla(evento) {
var codigo = Navegador ? evento.which : event.keyCode
var tecla = String.fromCharCode(codigo)
for (var x = 0; x < listaURLs.length; x++) {
if ( tecla == listaURLs[x].tecla )
location.href = listaURLs[x].direccion
}
}

function objetoURL(tecla, direccion) {
this.tecla = tecla
this.direccion = direccion
}

var listaURLs = new Array()

listaURLs[0] = new objetoURL("i", "../../index.htm")
listaURLs[1] = new objetoURL("u", "entrar.php")

if (Navegador)
document.captureEvents(Event.KEYPRESS)
document.onkeypress = CompruebaTecla

esto funciona abriendo el enlace de la tecla en la misma ventana pero lo que quiero conseguir es que lo haga en un pop-up con un tamaño predefinido.

gracias y
Saludos

<html><center><img src="http://www.globalmedialab.com/firma/zpez.jpg" height=79 width=352 border="0" alt= ""></a>
</center></html>