JavaScript Source Code 3000: Navigation: Key Launcher
Key Launcher
The easiest website navigation yet requires nothing more than touching letters on your keyboard. Just touch a letter that has been defined as a launcher key and you are sent to that key's pre-defined page. It's easy to add as many launcher keys as you want and surely will amaze your visitors! Awesome!
This site equipped with Key Launcher!
The following launch keys are available:
Press the letter 'y' for: Yahoo
Press the letter 'e' for: Excite
Press the letter 'a' for: Altavista
Press the letter 'h' for: Hotbot
JavaScript Source Code 3000: Navigation: Key Launcher
Simply click inside the window below, use your cursor to highlight the script, and copy (type Control-c or Apple-c) the script into a new file in your text editor (such as Note Pad or Simple Text) and save (Control-s or Apple-s). The script is yours!!!
<!-- TWO STEPS TO INSTALL KEY LAUNCHER:
1. Copy the coding into the HEAD of your HTML document
2. Add the last code into the BODY of your HTML document -->
<!-- STEP ONE: Paste this code into the HEAD of your HTML document -->
<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 (rbennett@thezone.net)
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>
<!-- STEP TWO: Copy this code into the BODY of your HTML document -->
<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>
<!-- Script Size: 1.52 KB -->
Wyszukiwarka
Podobne podstrony:
function mcrypt module get algo key sizeanswer key action=produkty wyswietl&todo=koszyk&produkt=12&key= action=produkty wyswietl&todo=koszyk&produkt=71&key=English for Medical S&D Practical English sentences key action=produkty wyswietl&todo=koszyk&produkt=61&key= action=produkty wyswietl&todo=koszyk&produkt=27&key=Key Skills 3 action=produkty wyswietl&todo=koszyk&produkt=126&key=42 keycd key office 2007więcej podobnych podstron