//단축키
var key = new Array();


// 여기부터 수정하세요. 필요한 갯수만큼 여려 라인을 넣으시면 됩니다.
// key['단축키'] = "이동할 페이지 주소"
key['h'] = "http://fs1025.mireene.com/index.html";
key['1'] = "http://fs1025.mireene.com/menu01/page1.html";
key['2'] = "http://fs1025.mireene.com/menu02/page1.html";
key['3'] = "http://fs1025.mireene.com/menu03/page1.html";
key['4'] = "http://fs1025.mireene.com/menu04/page1.html";
key['5'] = "http://fs1025.mireene.com/menu05/page1.html";


function getKey(keyStroke) {
if ((event.srcElement.tagName != 'INPUT') && (event.srcElement.tagName != 'TEXTAREA')){
isNetscape=(document.layers);
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;

 

+ Recent posts