묻고답하기

자바를 하나 찾았는뎅...-_-;;어케 써야 되는 지 몰라서 말이져...
각 수치마다 어디에 쓰이는 지 점 일러 주세여~^-^

<SCRIPT LANGUAGE="JavaScript">
<!-- Beginning of JavaScript -

// CREDITS:
// Top-Slide-Menu
// Copyright (c) 2000 Peter Gehrig and Urs Dudli. All rights reserved.
// Permission given to use the script provided that this notice remains as is.
// Additional scripts can be found at http://www.24fun.com.
// info@24fun.ch
// 2/10/2000

// IMPORTANT:
// If you add this script to a script-library or script-archive
// you have to add a link to http://www.24fun.com on the webpage

// INSTRUCTIONS:
// 1.   Create an imagemap (image with hotspots) for each of your menu categories.
// 2.   Put each imagemap into a DIV-Container. These DIV-containers must be called
//      menu1, menu2, menu3 and so on. Insert those DIV-containers at the end
//      of the body-section.
// 3.   Configure the vertical and horizontal position of each imagemap (just below)
// 4.   The bottom part of each imagemap calls a special function called            
//      getmenuname('menu1'). See inside the body-section how this should look like.
// 5.   The top part of each imagemap is simple imagemapping where you can configure
//      the hotspots for your links. In this sample only one URL for each category
//      has been configured. Yet you can add as many links as you like.
// 6.   Do not forget to copy the style-tag inside the head-section of the document.
// 7.   Configure the script-variables just below.

//  Configure the horizontal position for each menu-category  (pixels)
//  If you want more than 3 menu categories you have to add menu4left, menu5left
//  and so on.
var menu1left=20

//  Configure the vertical position for your menu-categories (pixels).
//  This value should be the same for all menu-categories
var menutop=-180

// This variable configures the length and the speed of the menu-movement.
// Play around with it until you are satisfied.
var pace=18

//  If you want more than 3 menu categories you have to add vorzeimenu4,
//  vorzeimenu5, vorzeimenu6 and so on
var vorzeimenu1=-1

// Don't edit the variables below.
var step
var direction
var pause=25

var thismenu
var vorzeichen=1

var menuismoving="no"

// If you have more than 3 menu-catagories
// you have to change this function too. It sould be not too difficult.
// In fact it's just a matter of proper counting!
function inite() {
        if (document.layers) {
        document.menu1.left=menu1left
        document.menu1.top=menutop
        }        
        if (document.all) {
        document.all.menu1.style.posLeft=menu1left
        document.all.menu1.style.posTop=menutop
        }
}

// This function needs no configuration
function getmenuname(clickedmenu) {
    if (menuismoving=="no") {
            if (document.layers) {
            thismenu=eval("document."+clickedmenu)
            }        
            if (document.all) {
            thismenu=eval("document.all."+clickedmenu+".style")
            }
        step=pace
        checkdirection()
            movemenu()
    }
}

// If you have more than 3 menu-catagories
// you have to change this function too. It's just a matter of proper counting!
function checkdirection() {
        if (document.layers) {    
        if (thismenu==document.menu1){vorzeimenu1=vorzeimenu1*-1;vorzeichen=vorzeimenu1}
        }        
        if (document.all) {
        if (thismenu==document.all.menu1.style){vorzeimenu1=vorzeimenu1*-1;vorzeichen=vorzeimenu1}
        }
    menuismoving="yes"
}

// This function needs no configuration
function movemenu() {
        if (document.layers) {
        if (step>=0) {
            thismenu.top+=step*vorzeichen
            step--
            var movetimer=setTimeout("movemenu()",pause)  
            }
        else {
            menuismoving="no"
            clearTimeout(movetimer)
        }
        }          
        if (document.all) {
        if (step>=0) {
            thismenu.posTop+=step*vorzeichen
            step--
            var movetimer=setTimeout("movemenu()",pause)  
            }
        else {
            menuismoving="no"
            clearTimeout(movetimer)
        }
    }
}
// - End of JavaScript - -->
</SCRIPT>

<style type="text/css">
.menu {position:absolute;left:-1000px;}
</STYLE>
</head>
<body bgcolor=#707070 text=#bbbbbb link="blue" vlink="purple" alink="red" oncontextmenu="return false"
ondragstart="return false" onselectstart="return false" scroll="no" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onLoad="inite();">
<p>
<DIV ID="menu1" class="menu">
<img src="img/ff-menu.gif" width="100" height="200" BORDER=0 usemap="#men1"> </p>
<MAP NAME="men1">

    <area shape="rect" coords="9, 181, 89, 196" href="javascript:getmenuname('menu1')" onfocus="this.blur()">
    <area shape="rect" coords="9, 24, 89, 37" href="ff1.html" target="ff-main" onfocus="this.blur()">
    <area shape="rect" coords="9, 39, 89, 50" href="ff2.html" target="ff-main" onfocus="this.blur()">
    <area shape="rect" coords="10, 53, 89, 64" href="ff3.html" target="ff-main" onfocus="this.blur()">
    <area shape="rect" coords="10, 67, 90, 77" href="ff4.html" target="ff-main" onfocus="this.blur()">
    <area shape="rect" coords="9, 82, 88, 92" href="ff5.html" target="ff-main" onfocus="this.blur()">
    <area shape="rect" coords="10, 95, 90, 106" href="ff6.html" target="ff-main" onfocus="this.blur()">
    <area shape="rect" coords="9, 110, 92, 119" href="ff7.html" target="ff-main" onfocus="this.blur()">
    <area shape="rect" coords="10, 124, 94, 134" href="ff8.html" target="ff-main" onfocus="this.blur()">
    <area shape="rect" coords="10, 138, 92, 147" href="ff9.html" target="ff-main" onfocus="this.blur()">
</MAP></DIV>
</body>

</html>
글쓴이 제목 최종 글
XE 공지 글 쓰기,삭제 운영방식 변경 공지 [16] 2019.03.05 by 남기남
조원석 [질문] 윈도우 새로 열기..;; [1] 2007.08.10
임미혜 도대체,.,.. [1] 2007.08.10
이승환 포토샵 질문입니다. [1] 2007.08.10
하얀바다 정규 표현식에 관한 질문 입니다.  
이정훈 제발 부탁드립니다 얼른좀 알려주세요 급합니다 ㅠ.ㅠ  
BattleLady 스크롤바에 관한 질문..  
myzero [요청] 엔지오 Notice & News.. [1] 2007.08.10
구민관 아비타 채팅 같은...  
최덕상 [질문] 외부로그인관련 질문입니다.. [1] 2007.08.10
*^^* 제발 급합니다.. 라디오 버튼 선택시..  
장환실 [질문] 메뉴없는 새창 뛰우는방법좀 알려주세요. [1] 2007.08.10
김진우 [폰트질문]꼬옥 봐주세요~!  
한광영 링크방지소스좀  
개인 고속인터넷으로 리눅스 웹서버가 탈없이 만들어 질까요? [1] 2007.08.10
고니 [질문]카운터 하루에 1씩 올라가기 ..아시는 분 없으세요?  
CheckMe 포토샵에서 stroke 기능에 대해서.. [2] 2007.08.10
이나래 회원가입 로그인창 소스를 붙이려는데 어디에 붙이는지 모르겠어효.. 제발 가르쳐 주세요..  
마정원 mysql -DB를 윈도우에서 백업하는법 가르쳐주세여... [4] 2007.08.10
조은일 NZEO처럼 위로 스크롤되는 뉴스에서 2개이상의 게시판 게시물 추출하는 법좀 알려주세요.  
엠™ 주민번호 체크하는거여...... [2] 2007.08.10
한광영 메뉴바때문에 그러는데요~~^^ 답변좀 자세히.... [2] 2007.08.10
김정현 10의 제곱승 구하기?? [1] 2007.08.10
계라니 A주소에 있던 한게시판을 B주소로  
조은일 포토샵 강좌 잘 되어있는 싸이트들 좀 추천해주세요.  
하은찬 제로카운터..-_-+ [2] 2007.08.10
조승훈 포토샵 초보입니다. 튜턴 말구 이중톤 말구 색깔 전체를 바꿀라면 어떻게 해야대는지? [2] 2007.08.10
조승훈 포토샵 초보입니다. 튜턴 말구 이중톤 말구 색깔 전체를 바꿀라면 어떻게 해야대는지?  
남의원 아웃로그인에 관해서......  
Nytoner 선택된 곳에 진하게 표시하기..-_- [4] 2007.08.10
유윤원 자바 소스 좀 분해해주세여..-ㅁ-;;