웹사이트 관련 팁들을 모아놓은 곳입니다. 좋은팁 공유 합시다.
  • 웹미니 한줄 전광판 영역 입니다.
글 수 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/2a6/trackback
소중한 댓글 부탁드립니다.
추천수 10단위당 메달이 1개씩 노출되고, 추천수에 따라 배경색이 변하며, 일정수의 추천수를 받을시 BEST 아이콘이 붙게됩니다.
추천수에 따른 배경색 보기 본문으로 바로가기
  • 추천수 50개이상
  • 추천수 30개이상
  • 추천수 20개이상
  • 추천수 10개이상
  • 추천수 3개이상
닫기

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

List of Articles
번호 제목 글쓴이 날짜 추천 수sort 조회 수
46 계산기 title: [ani]깜빡이는 표정빽짱구 2004-03-25 9 2241
45 돌아가는 마우스 title: [ani]깜빡이는 표정빽짱구 2004-03-08 9 2394
44 폰트설치법 [2] title: [ani]깜빡이는 표정빽짱구 2004-02-07 9 3305
43 google.com 으로 접속하는 방법 title: [ani]깜빡이는 표정빽짱구 2012-08-24 3 5224
42 구글 영문 웹폰트 사용하기 file title: [ani]깜빡이는 표정빽짱구 2012-08-30 2 5224
41 hit table 이 웹표준이 아니다? [4] title: [ani]깜빡이는 표정빽짱구 2007-11-13 2 24414
40 스마트폰, 태블릿 해상도와 웹브라우저별 해상도 [1] title: [ani]깜빡이는 표정빽짱구 2013-06-03 1 5825
39 메일링 코딩 스타일 title: [ani]깜빡이는 표정빽짱구 2013-09-29 1 2985
38 hit 아이폰/아이패드에서 '홈화면 추가' 아이콘 변경하기 file [1] title: [ani]깜빡이는 표정빽짱구 2011-02-12 1 13029
37 플래쉬에 마우스 오른쪽 버튼 클릭시 메뉴줄이기 file [2] title: [ani]깜빡이는 표정빽짱구 2008-03-05 1 8042
36 웹접근성에 대해서.. file [6] title: [ani]깜빡이는 표정빽짱구 2007-11-06 1 5537
35 괜찮은 구글 웹폰트 많네요. file title: [ani]깜빡이는 표정빽짱구 2018-10-23   222
34 카카오톡 미리보기 이미지 캐쉬 삭제 title: [ani]깜빡이는 표정빽짱구 2017-07-10   420
33 페이스북 og 이미지 캐시 업데이트 title: [ani]깜빡이는 표정빽짱구 2017-07-10   268
32 [스크랩] HTML5/CSS3 관련 팁 & 튜토리얼 title: 새싹사뎅이 2014-01-14   2071
31 모바일화면 pc에서 확인하기 file title: [ani]깜빡이는 표정빽짱구 2013-12-03   2016
30 반응형 웹 참고 사이트(미디어쿼리) file title: [ani]깜빡이는 표정빽짱구 2013-06-03   2280
29 ssl 보안인증서가 설치 잘되어있는지 확인하는곳 file [1] title: [ani]깜빡이는 표정빽짱구 2012-08-16   2850
28 반응형 웹사이트 [1] title: [ani]깜빡이는 표정빽짱구 2012-11-15   4998
27 제가 쓰고 있는 플래쉬 코딩소스 title: [ani]방울UI 2012-05-09   1225