Foros del Web » Programando para Internet » Javascript »

Codigo para yampoo - navegar con teclas!!!

Estas en el tema de Codigo para yampoo - navegar con teclas!!! en el foro de Javascript en Foros del Web. Hola aca te paso el codigo, espero te sirva: <!-- Copiar dentro del tag HEAD --> <HEAD> <SCRIPT LANGUAGE="JavaScript"> <!-- Begin var key = new ...
  #1 (permalink)  
Antiguo 22/12/2002, 16:30
 
Fecha de Ingreso: julio-2002
Ubicación: Buenos Aires - Argentina
Mensajes: 255
Antigüedad: 21 años, 9 meses
Puntos: 0
Codigo para yampoo - navegar con teclas!!!

Hola aca te paso el codigo, espero te sirva:

<!-- Copiar dentro del tag HEAD -->

<HEAD>

<SCRIPT LANGUAGE="JavaScript">

<!-- Begin
var key = new Array(); // Define key launcher pages here
key['h'] = "http://javascript.internet.com/index.html";
key['f'] = "http://javascript.internet.com/feedback.html";
key['n'] = "http://javascript.internet.com/new.html";
key['s'] = "http://javascript.internet.com/toc.html";

function getKey(keyStroke) {
isNetscape=(document.layers);
// Cross-browser key capture routine couresty
// of Randy Bennett ([email protected])
eventChooser = (isNetscape) ? keyStroke.which : event.keyCode;
which = String.fromCharCode(eventChooser).toLowerCase();
for (var i in key) if (which == i) window.location = key[i];
}
document.onkeypress = getKey;
// End -->
</script>
</HEAD>

<!-- Copiar dentro del tag BODY -->

<BODY>

<center>
<table border=0><tr><td>
<pre>
This site equipped with Key Launcher!

The following launcher keys are available:

Press the letter 'h' for: Home Page
Press the letter 'f' for: Feedback Page
Press the letter 'n' for: What's New Page
Press the letter 's' for: Site Contents
</pre>
</td></tr></table>
</center>

</BODY>
__________________
Pablo Maurelli
Noc IT - Monitoreo y Administración de Red
Gerencia de Infraestructura IT
E-Mail: [email protected] (MSN)
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 20:29.