메뉴 슬라이딩(가로)

이온디
2009년 01월 20일
menu_sliding.png

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>레이어 이동 - 1 </title>

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


/**************************************
제작 : 미친개
수정과 사용, 재배포에서 자유롭습니다.
학습용으로 쓰시길 권합니다.
**************************************/



sliding = false;
function slide(posi) {
    key = posi;
    if(parseInt(document.all.maddog1.style.left) >(-1)*key) slideleft();
    else slideright();
    }

function slideleft()  {
  sliding = true;
  i = parseInt(document.all.maddog1.style.left);
        if (i > key*(-1)){
                i -= 10;
                document.all.maddog1.style.left = i;
                setTimeout("slideleft()",1);
        }
else sliding = false;
}

function slideright()  {
  sliding = true;
  i = parseInt(document.all.maddog1.style.left);
        if (i < key*(-1)){
                i += 10;
                document.all.maddog1.style.left = i;
                setTimeout("slideright()",1);
        }
else sliding = false;
}


//-->
</SCRIPT>
</head>

<BODY bgcolor=#9c9c9c scroll=no>



<div id='mylayer' style='position:absolute; left:110px; top:100px; width:614; hgight=410; clip:rect(0,616,420,0);layer-background-color:#000000';>
<DIV ID="maddog1" STYLE="position:absolute; left:0px; top:0px; width:3060px; height:420px;background-color:#000000;">


<DIV ID="home" STYLE="position:absolute; left:5px; top:5px; width:600px; height:400px;">
<table border=0>
<tr>
<td align=center bgcolor=#0000ff width=610 height=405>
nzeo.com
</td>
</tr></table>
</div>


<DIV ID="pds" STYLE="position:absolute; left:615px; top:5px; width:600px; height:400px;">
<table>
<tr>
<td bgcolor=#ff00ff width=600 height=400>
eond.com
</td>
</tr></table>
</div>



<DIV ID="mds" STYLE="position:absolute; left:1225px; top:5px; width:600px; height:400px;">
<table border=0>
<tr>
<td bgcolor=#00ffff width=600 height=400>
tagmania.net
</td>
</tr></table>
</div>



<DIV ID="js" STYLE="position:absolute; left:1835px; top:5px; width:600px; height:400px;">
<table border=0>
<tr>
<td>
naver.com
</td>
</tr></table>
</div>


<DIV ID="board" STYLE="position:absolute; left:2445px; top:5px; width:600px; height:400px;">
<table border=0>
<tr>
<td>
yahoo.com
</td></tr>
</table>
</DIV>

</div>
</div>


<div style='position:absolute;left:780;top:100;width:70;height:420;visibility:visible;'>
<table border=2 width=100% height=100% bordercolor=000000>
<tr><td>
<A HREF="javascript:if(!sliding) slide(0)">엔지오</A>
</td></tr>
<tr><td>
<A HREF="javascript:if(!sliding) slide(610)">이온디</A>
</td></tr>
<tr><td>
<A HREF="javascript:if(!sliding) slide(1220)">태그매니아</A>
</td></tr>
<tr><td>
<A HREF="javascript:if(!sliding) slide(1830)">네이버</A>
</td></tr>
<tr><td>
<A HREF="javascript:if(!sliding) slide(2440)">야후코리아</A>
</td></tr>
</table>
</div>




</body>
</html>