웹마스터 팁

중복되는게 있는지 뒤져보았더니 비슷한건 있지만 똑같은건 없더라고요...
소스가 좋아서 퍼왔으니 고수님들의 태클은 없었으면 좋겠습니다...
--------------------------------------------------------------------------------
예제보기 : http://www.jin-hyunji.com/layer.html

<head>와  </head>사이에 아래 소스를 붙여넣으세요....

<SCRIPT LANGUAGE="JavaScript">
<!-- Original:  Randy Bennett (rbennett@thezone.net) -->
<!-- Web Site:  http://home.thezone.net/~rbennett/sitemap.htm -->

<!-- Begin
function setVariables() {
if (navigator.appName == "Netscape") {
v = ".top=";
h = ".left=";
dS = "document.";
sD = "";
y = "window.pageYOffset";
x = "window.pageXOffset";
iW = "window.innerWidth";
iH = "window.innerHeight";
}

else {
h = ".pixelLeft=";
v = ".pixelTop=";
dS = "";
sD = ".style";
y = "document.body.scrollTop";
x = "document.body.scrollLeft";
iW = "document.body.clientWidth";
iH = "document.body.clientHeight";
}
xyz = 500;
innerX = eval(iW) - 115;     //숫자가 커질수록 왼쪽으로 이동
innerY = eval(iH) - 110;     //숫자가 커질수록 위로 이동
object = "logo";
checkLocationA();
}
movex = 0;
movey = 0;
xdiff = 0;
ydiff = 0;
ystart = 0;
xstart = 0;

function checkLocation() {
yy = eval(y);
xx = eval(x);
ydiff = ystart - yy;
xdiff = xstart - xx;
if ((ydiff < (-1)) || (ydiff > (1))) movey = Math.round(ydiff / 10), ystart -= movey;
if ((xdiff < (-1)) || (xdiff > (1))) movex = Math.round(xdiff / 10), xstart -= movex;
eval(dS + object + sD + v + (ystart + innerY));
eval(dS + object + sD + h + (xstart + innerX));
setTimeout("checkLocation()", 10);
}

function checkLocationA() {
ystart = eval(y);
xstart=eval(x);
}

function switchLogo(abc) {
if (abc == "menu") {
eval(dS + object + sD + v + 0);
eval(dS + object + sD + h + (-200));
object = abc;
}
else xyz = setTimeout("delayLogo()", 2000)
}

function delayLogo() {
eval(dS + object + sD + v + 0);
eval(dS + object + sD + h + (-200));
object = 'logo';
}
//  End -->
</script>

아래 소스를 <body>와 </body> 사이에 붙여 넣으세요...

<body OnLoad="setVariables();checkLocation()">

<div id="logo" style="position:absolute; visibility:show; left:0px; top:-200px; z-index:2">

<table border=0 cellspacing=10 cellpadding=0 width=100>
<tr>
<td>
<center><br><br><br>
<A href="javascript:void(0)"; onmouseover="switchLogo('menu')">

추천사이트                                      // 이 부분에 이미지를 넣어도 가능합니다...^^*

</A>
</center>
</td>
</tr>
</table>


</div>


<div id="menu" style="position:absolute; visibility:show; left:0px; top:-200px; z-index:2">

<table border=0 cellspacing=10 cellpadding=0 width=100>
<tr>
<td>
<center>
<a href="http://www.jin-hyunji.com/bbs/index.php"; onmouseover="clearTimeout(xyz)"; onmouseout="switchLogo('logo')">Main</a>
</center>
</td>
</tr>
<tr>
<td>
<center>
<a href="http://www.nzeo.com/" target="_new"; onmouseover="clearTimeout(xyz)"; onmouseout="switchLogo('logo')">Nzeo</a>
</center>
</td>
</tr>
<tr>
<td>
<center>
<a href="http://cartoon.daganda.com/" target="_new"; onmouseover="clearTimeout(xyz)"; onmouseout="switchLogo('logo')">Cartoon</a>
</center>
</td>
</tr>
</table>

</div>

예제보기 : http://www.jin-hyunji.com/layer.html

소스가 좋아서 퍼왔습니다...다시 한번 부탁드리지만 질문 및 태클은 사양합니다....

소스 원본이 있는 곳 : http://javascript.internet.com
제목 글쓴이 날짜
심플한 원단위를 콤마로 나타내주기 [2] zentoo.com 2003.11.11
플래시느낌의 유동적인 메뉴 [9] jabusim 2003.11.13
동영상 오른쪽 버튼 방지 소스 입니다... [9] 김성목 2003.11.15
자바로 만들어진 계산기 [1] 현규웅 2003.11.20
팝업공지창 다시 안뜨게 하는 소스[날짜지정가능] [17] lemin 2003.11.20
3D 효과의 원형 거울을 띄우자. [6] 줄리앙 2003.11.21
익스플로러에서 인쇄 누르면 페이지 이동.... [3] 조한웅 2003.11.28
크리스마스 날짜 카운터 [1] keymove 2003.12.04
소스연구1 테이블 자동으로 늘었다 커지기 태클환영 [9] 박한웅 2003.12.04
오른버튼 누를때 메뉴 뜨게하기(깔끔버전) [5] file 2003.12.09
소스보기를 일부 차단하는 방법입니다. [12] Juny. 2003.12.12
들어갈때 시작페이지 설정하는거... [2] 쉿!비밀 2003.12.17
링크에 마우스를 올리면 배경 변하게 하는 소스 봉팀장 2003.12.30
화면 오른쪽 아래부분에 떠있는 메뉴 레이어(마우스 오버시 부메뉴 펼쳐짐) [7] 봉팀장 2003.12.30
[초간단 자바스크립트!] 아이프레임 이용한 이미지 갤러리(?) ∑Ztxy 2004.01.02
마우스 올리면 링크 텍스트를 무지개빛으로_12시20분 수정.;; [1] keymove 2004.01.06
아기창 자동으루 띄우고 엄마창 자동으루 죽이기 -_-;; [13] 후르츠 2004.01.09
[초간단 자바스크립트!] 홈페이지접속 시간,날짜 표시기 [3] ∑Ztxy 2004.01.09
Thinking In Java 2nd Edition file n25 2004.01.14
[초간단 자바스크립트(강의)!]나만의 익스플로러창 만들기[허접] [2] ∑Ztxy 2004.01.17