|
|
|
17년 전
|
조회 851
|
|
|
|
17년 전
|
조회 770
|
|
|
|
17년 전
|
조회 783
|
|
|
|
17년 전
|
조회 828
|
|
|
|
17년 전
|
조회 952
|
|
|
|
17년 전
|
조회 819
|
|
|
|
17년 전
|
조회 798
|
|
|
|
17년 전
|
조회 688
|
|
|
|
17년 전
|
조회 757
|
|
|
|
17년 전
|
조회 986
|
|
|
|
17년 전
|
조회 774
|
|
|
|
17년 전
|
조회 1,541
|
|
|
|
17년 전
|
조회 976
|
|
|
|
17년 전
|
조회 1,286
|
|
|
|
17년 전
|
조회 1,524
|
|
|
|
17년 전
|
조회 1,527
|
|
|
|
17년 전
|
조회 803
|
|
|
|
17년 전
|
조회 801
|
|
|
|
17년 전
|
조회 897
|
|
|
|
17년 전
|
조회 774
|
댓글 2개
var key = new Array();
key['a'] = "이동할 주소";
key['b'] = "이동할 주소";
key['c'] = "이동할 주소";
key['d'] = "이동할 주소";
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];
}
}
</script>
상단 코드는 게시판 작성시 쓰이는 스크립트가 아니라 홈페이지에 적용되는 스크립트입니다.
이 부분 보시면 -->if ( (event.srcElement.tagName != 'INPUT') && (event.srcElement.tagName != 'TEXTAREA') ) { // 쿨럭 ^^;
암튼 게시판에서 alt+s 조합 같은걸로 구현하겠다는 소리죠?
<input 어쩌고 저쩌고 ... accesskey="s" /> 하시면 됩니다.
위 코멘트는 냅두겠습니다. 귀차니스트들에게 도움이 될까해서