<HTML>
<HEAD>
<SCRIPT LANGUAGE="JavaScript">
<!--
var key = new Array();
key['h'] = "http://www.yahoo.co.jp";
key['f'] = "http://japan.infoseek.com/";
key['n'] = "http://www.excite.co.jp/";
key['s'] = "http://www.google.com/";
function Key_stroke(keyStroke) {
isNetscape=(document.layers);
eventChooser = (isNetscape) ? keyStroke.which : event.keyCode;
which = String.fromCharCode(eventChooser).toLowerCase();
for (var i in key) {
if (which == i) {
window.open(key[i]);
}
}
}
document.onkeypress = Key_stroke;
//-->
</SCRIPT>
</HEAD>
<BODY>
<center>
<table border=0 cellpadding=2>
<tr><td>
<font color=blue size=4><b>h</b></font></td><td>キー:</td><td>yahoo.co.jp</td>
</tr>
<tr><td>
<font color=blue size=4><b>f</b></font></td><td>キー:</td><td>japan.infoseek.com</td>
</tr>
<tr><td>
<font color=blue size=4><b>n</b></font></td><td>キー:</td><td>excite.co.jp</td>
</tr>
<tr><td>
<font color=blue size=4><b>s</b></font></td><td>キー:</td><td>google.com</td>
</tr>
</table>
</center>
</BODY>
</HTML>
|