웹사이트 관련 팁들을 모아놓은 곳입니다. 좋은팁 공유 합시다.
  • 웹미니 한줄 전광판 영역 입니다.
글 수 186

13

조회 수 : 2547 신고 : 0

profile
작성자 : title: [ani]깜빡이는 표정빽짱구
포인트 : 56933 | 레벨 : 25





<body></body> 사이에 아래소스 삽입

<!--버튼 메뉴 스크립트 시작-->
<SCRIPT LANGUAGE="JavaScript">
<!--
var button = new Array();
var link = new Array();
var buttonWidth = new Array();
button[1] = '<a>버튼메뉴 1<a>';
buttonWidth[1] = 130; //버튼의 가로 너비(단위:픽셀)
link[1] = function () {
// 첫번째 버튼 클릭시 이동할 문서의 경로 설정
window.location.href('http://backzzanggu.com');
// 버튼 1 끝
}

button[2] = '<a>버튼메뉴 2<a>';
buttonWidth[2] = 130;
link[2] = function () {
// 두번째 버튼 클릭시 이동할 문서의 경로 설정
window.location.href('http://backzzanggu.com');
// 버튼 2 끝
}

button[3] = '<a>버튼메뉴 3<a>';
buttonWidth[3] = 130;
link[3] = function () {
// 세번째 버튼 클릭시 이동할 문서의 경로 설정
window.location.href('http://backzzanggu.com');
// 버튼 3 끝
}

button[4] = '<a>버튼메뉴 4<a>';
buttonWidth[4] = 130;
link[4] = function () {
// 네번째 버튼 클릭시 이동할 문서의 경로 설정
window.location.href('http://backzzanggu.com');
// 버튼 4 끝
}

button[5] = '<a>버튼메뉴 5<a>';
buttonWidth[5] = 130;
link[5] = function () {
// 다섯번째 버튼 클릭시 이동할 문서의 경로 설정
window.location.href('http://backzzanggu.com');
// 버튼 5 끝
}
button[6] = '<a>버튼메뉴 6<a>';
buttonWidth[6] = 130;
link[6] = function () {
// 여섯번째 버튼 클릭시 이동할 문서의 경로 설정
window.location.href('http://backzzanggu.com');
// 버튼 6 끝
}

function alignButtons(value) {
if (button[value]) {
if (button[value].indexOf('<a>') != -1) {
document.write('<button id="b'+value+'" style="Width : '+buttonWidth[value]+'px ; Height : 22px" onClick="link['+value+']()"><font face="MS Sans Serif" size="1">'+button[value]+'</button>');
}
}
}

document.write('<script'+'>');
document.write('function myfocus(n) {');
for (a=1; a<button.length; a++) {
document.write('if (n=='+a+') {document.all.b'+a+'.focus()}');
}
document.write('}');
document.write('<'+'/script>');


//-->
</script>
<!--버튼 메뉴 스크립트 끝-->
<!--버튼 메뉴 출력 부분-->
<script>alignButtons(1)</script><br>
<script>alignButtons(2)</script><br>
<script>alignButtons(3)</script><br>
<script>alignButtons(4)</script><br>
<script>alignButtons(5)</script><br>
<script>alignButtons(6)</script>
<!--버튼 메뉴 출력 끝-->

 

버튼에 쓰일 이름과 경로는 자신에 맞게 수정

profile 글쓴이 빽짱구

단점이 없는 사람은 장점도 거의 없다 - 에이브러햄 링컨

엮인글 :
https://web.webmini.net/webtip/13982/697/trackback
소중한 댓글 부탁드립니다.
추천수 10단위당 메달이 1개씩 노출되고, 추천수에 따라 배경색이 변하며, 일정수의 추천수를 받을시 BEST 아이콘이 붙게됩니다.
추천수에 따른 배경색 보기 본문으로 바로가기
  • 추천수 50개이상
  • 추천수 30개이상
  • 추천수 20개이상
  • 추천수 10개이상
  • 추천수 3개이상
닫기

첫번째 댓글을 남겨주세요!

List of Articles
번호 제목 글쓴이 날짜 추천 수sort 조회 수
86 로딩속도 빠르게 하기 title: [ani]깜빡이는 표정빽짱구 2004-04-20 14 2920
85 금주가 이번해에 몇번째 주인지 알려주기 title: [ani]깜빡이는 표정빽짱구 2004-04-22 14 3214
84 색깔 보기 [2] title: [ani]깜빡이는 표정빽짱구 2004-07-12 14 2713
83 포토샵에서 폰트복구 확실한 방법 [2] title: [ani]깜빡이는 표정빽짱구 2004-02-07 15 3355
82 윈도우 단축키 [2] title: [ani]깜빡이는 표정빽짱구 2004-02-10 15 2638
81 저장영역 복사및 클립보드로 복사하기 [1] title: [ani]깜빡이는 표정빽짱구 2004-02-22 15 3451
80 한영전환 변환키 [1] title: [ani]깜빡이는 표정빽짱구 2004-04-05 15 3170
79 풀윈도우 다른팁 title: [ani]깜빡이는 표정빽짱구 2004-05-04 15 2510
78 투명하게 보이기 위한 레이어에 적용 [2] title: [ani]보라색 나비바비인형 2004-06-23 15 3028
77 검색엔진 달기 [2] title: [ani]깜빡이는 표정빽짱구 2004-08-10 15 3534
76 누르기 버튼 이뿌게 만들기 [2] title: [ani]깜빡이는 표정빽짱구 2004-08-16 15 2534
75 phpmyadmin을 내 계정에 설치하기 [5] title: [ani]깜빡이는 표정빽짱구 2005-09-27 15 7835
74 입력란에 한글만 입력되게 하기. [2] title: [ani]깜빡이는 표정빽짱구 2004-02-22 16 3263
73 포인트에 따른 자동레벨변경 title: [ani]깜빡이는 표정빽짱구 2004-03-29 16 2261
72 [나야나] 계정에 알ftp로 파일 올리는 방법 title: [ani]깜빡이는 표정빽짱구 2004-04-12 16 3750
71 세계 시간보기 title: [ani]깜빡이는 표정빽짱구 2004-04-18 16 3607
70 이전, 다음 버튼이 있는 달력 title: [ani]깜빡이는 표정빽짱구 2004-04-22 16 3001
69 포토샵에서 텍스트작업 [9] title: [ani]깜빡이는 표정빽짱구 2005-07-04 16 7598
68 잘못된 html코딩습관 몇가지 [5] title: [ani]깜빡이는 표정빽짱구 2004-02-07 17 3626
67 배너광고 효과 높이기 [4] title: [ani]깜빡이는 표정빽짱구 2004-02-07 17 3439