E

위에서 하나씩 떨어지는 메뉴 스크립트

· 2006-05-11 (목) 10:54:48 · 2720
<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=euc-kr">
<title> jasko sample script </title>

<!---- [1단계] 아래 코드를 <HEAD> 와 </HEAD> 태그 사이에 붙여 넣으세요 --->

<style type="text/css">
<!--
a:link { text-decoration: none;}
a:visited { text-decoration: none;}
a:active { text-decoration: none;}
-->
</style>

<script language="javascript">
<!--
function dropMenu() {
speed=0;
topdistance=10; // 맨위 메뉴가 보여질 위쪽위치(위에서 10픽셀 떨어진 지점부터 메뉴가 보여집니다)
items=4;
y=-50;
ob=1;
if (navigator.appName == "Netscape") {
v=".top=",dS="document.",sD="";
}
else {
v=".pixelTop=",dS="",sD=".style";
}
}
function scrollItems() {
if (ob<items+1) {
objectX="object"+ob; y+=10; eval(dS + objectX + sD + v + y);
if (y<topdistance) setTimeout("scrollItems()",speed);
else y=-50, topdistance+=40, ob+=1, setTimeout("scrollItems()",speed);
}
}
// -->
</script>

</head>

<!---- [2단계] onLoad="dropMenu(), scrollItems();" 코드를 <BODY> 태그 안에 붙여 넣으세요 --->

<body bgcolor="white" text="black" link="white" vlink="white" alink="red" onLoad="dropMenu(), scrollItems();">

<!---- [2단계] 아래의 방법으로 <BODY> 와 </BODY> 태그 사이에 붙여 넣으세요 --->

<div id="object1" style="width:100px; height:100px; position:absolute; left:10px; top:-50px; z-index:2; visibility:show;">
<table style="border-width:1; border-color:silver; border-style:solid;" border="0" width=70 bgcolor=#0066FF>
<td>
<center>

<font size="2"><a href=#>메뉴 - 1</a></font>
</center>
</td>
</table>
</div>

<div id="object2" style="width:100px; height:100px; position:absolute; left:10px; top:-50px; z-index:2; visibility:show;">
<table style="border-width:1; border-color:silver; border-style:solid;" border="0" width=70 bgcolor=#333333>
<td>
<center>

<font size="2"><a href=#>메뉴 - 2</a></font>
</center>
</td>
</table>
</div>

<div id="object3" style="width:100px; height:100px; position:absolute; left:10px; top:-50px; z-index:2; visibility:show;">
<table style="border-width:1; border-color:silver; border-style:solid;" border="0" width=70 bgcolor=#FF6633>
<td>
<center>

<font size="2"><a href=#>메뉴 - 3</a></font>
</center>
</td>
</table>
</div>

<div id="object4" style="width:100px; height:100px; position:absolute; left:10px; top:-50px; z-index:2; visibility:show;">
<table style="border-width:1; border-color:silver; border-style:solid;" border="0" width=70 bgcolor=#008080>
<td>
<center>

<font size="2"><a href=#>메뉴 - 4</a></font>
</center>
</td>
</table>
</div>

<!------------------------- 여기까지 ------------------------------------>

</body>
</html><div class='small'>[이 게시물은 관리자님에 의해 2011-10-31 17:16:08 PHP & HTML에서 이동 됨]</div>
|
댓글을 작성하시려면 로그인이 필요합니다.

프로그램

8,188건
+
제목 글쓴이 날짜 조회
06-05-31 조회 4,121
06-05-31 조회 4,353
06-05-30 조회 3,381
06-05-26 조회 4,480
06-05-26 조회 4,767
06-05-15 조회 4,499
06-05-14 조회 5,733
06-05-12 조회 3,168
06-05-11 조회 4,581
06-05-11 조회 2,721
06-05-11 조회 2,840
06-05-11 조회 2,556
06-05-11 조회 2,822
06-05-11 조회 2,414
06-05-11 조회 2,952
06-05-10 조회 3,439
06-05-09 조회 8,114
06-05-09 조회 3,331
06-05-09 조회 3,432
06-05-07 조회 3,916
06-05-07 조회 3,015
06-05-07 조회 3,643
06-04-29 조회 3,664
06-04-28 조회 4,557
06-04-25 조회 3,466
06-04-25 조회 3,752
06-04-25 조회 3,558
06-04-22 조회 3,183
06-04-13 조회 4,505
06-04-13 조회 4,373
06-04-09 조회 3,339
06-03-30 조회 4,767
06-03-24 조회 3,595
06-03-21 조회 3,587
06-03-15 조회 4,611
06-03-11 조회 3,219
06-03-03 조회 3,461
06-02-22 조회 3,268
06-01-27 조회 3,424
06-01-05 조회 3,511
05-12-30 조회 3,358
05-12-29 조회 3,848
bbbking
05-10-22 조회 5,312
05-08-19 조회 5,518
05-08-16 조회 3,546
05-07-13 조회 4,738
05-07-11 조회 3,885
05-07-01 조회 3,485
05-07-01 조회 3,092
05-07-01 조회 3,552
bbbking
05-06-30 조회 6,263
bbbking
05-06-16 조회 6,835
05-04-04 조회 6,370
05-03-13 조회 3,253
05-03-13 조회 2,329
05-03-13 조회 2,490
04-12-16 조회 5,791
04-11-29 조회 4,161
04-11-28 조회 3,957
04-11-28 조회 3,154
04-11-28 조회 3,802
04-11-28 조회 3,575
04-11-24 조회 3,008
04-11-12 조회 2,971
04-08-24 조회 5,275
04-08-10 조회 4,487
04-08-10 조회 5,080