E

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

· 2006-05-11 (목) 10:54:48 · 2803
<!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건
+
제목 글쓴이 날짜 조회
05-08-01 조회 4,039
05-07-24 조회 5,409
05-07-16 조회 5,519
bbbking
05-07-08 조회 3,342
bbbking
05-07-08 조회 3,139
bbbking
05-07-08 조회 8,775
05-07-01 조회 3,323
05-06-30 조회 4,705
05-06-24 조회 5,172
05-06-24 조회 3,406
05-06-21 조회 6,813
05-06-17 조회 4,643
05-06-15 조회 5,454
05-05-04 조회 3,695
05-04-11 조회 4,794
05-04-04 조회 5,206
05-04-02 조회 3,598
05-03-30 조회 3,300
05-03-15 조회 3,453
05-03-15 조회 3,131
05-03-14 조회 2,609
05-03-13 조회 2,823
05-03-13 조회 2,966
05-03-13 조회 2,796
05-03-13 조회 3,041
05-03-13 조회 4,634
05-03-13 조회 3,175
05-03-13 조회 2,602
05-03-13 조회 2,630
05-03-13 조회 2,491
05-03-13 조회 3,664
05-03-13 조회 2,697
05-03-13 조회 2,708
05-03-13 조회 3,222
05-03-13 조회 3,493
05-03-13 조회 3,085
05-03-13 조회 3,036
05-03-13 조회 3,715
05-03-13 조회 2,654
05-03-13 조회 4,165
05-03-13 조회 2,876
05-03-13 조회 3,232
05-03-13 조회 2,703
05-03-13 조회 3,884
05-03-13 조회 2,573
05-03-12 조회 4,907
05-02-04 조회 3,483
04-12-13 조회 7,110
04-12-01 조회 3,387
04-11-30 조회 3,456
04-11-30 조회 2,795
04-11-30 조회 2,695
04-11-30 조회 4,098
04-11-29 조회 3,834
04-11-28 조회 3,768
04-11-28 조회 4,129
04-11-28 조회 3,554
04-11-28 조회 3,047
04-11-28 조회 3,588
04-11-24 조회 3,262
04-11-23 조회 3,041
04-11-17 조회 3,050
04-11-12 조회 3,334
04-11-12 조회 2,678
04-11-10 조회 3,908
04-08-23 조회 4,425
04-08-09 조회 5,072
04-08-08 조회 4,809
04-08-05 조회 6,608
03-09-26 조회 5,262