아

[Javascript] 끊기지 않는 배너 롤링

· 2006-09-21 (목) 18:10:51 · 5153 · 1
<html>
<head>
<script language="JavaScript">
var banner_1_mouseEvent = 1;
<!--
// banner_roll("div태그 id", 배너1개높이, 딜레이, 1칸이동속도, 0);
function banner_roll(div_id, banner_height, banner_delay, banner_speed, this_height){

if(eval(div_id + "_mouseEvent")){
var div_tag = document.getElementById(div_id);
var a_tag, i;
this_height++;
if(this_height < banner_height){
div_tag.style.top = -this_height;
setTimeout("banner_roll('" + div_id + "', " + banner_height + ", " + banner_delay + ", " + banner_speed + ", " + this_height + ");", banner_speed);
}
else{
a_tag = div_tag.getElementsByTagName("TABLE");
div_tag.appendChild(a_tag[0]);
div_tag.style.top = 0;
setTimeout("banner_roll('" + div_id + "', " + banner_height + ", " + banner_delay + ", " + banner_speed + ", 0);", banner_delay);
}
}
else{
setTimeout("banner_roll('" + div_id + "', " + banner_height + ", " + banner_delay + ", " + banner_speed + ", " + this_height + ");", banner_speed);
}
return true;
}
//-->
</script>
</head>

<body leftmargin=0 topmargin=0 bgcolor="DFECB8">

<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="790" height="49" valign="top" style="padding-left:0px;" bgcolor="#DFECB8">

<div style="position:absolute;width:970px;height:49px;overflow:hidden;" onMouseover="banner_1_mouseEvent=0" onMouseout="banner_1_mouseEvent=1">
<div style="position:relative;" id="banner_1">
<table width='970' height='49' border='0' cellspacing='0' cellpadding='0'>
<tr align='center' valign="top" bgcolor='#FFFFFF' >
<td background="../images/banner_back_01.gif"><a href="http://www.gov-innovation.go.kr/" target="_blank"><img src="../images/banner_01.gif" width="147" height="49" border="0"></a> </td>
<td background="../images/banner_back_01.gif"><a href="http://www.182.go.kr/" target="_blank"><img src="../images/banner_02.gif" width="165" height="49" border="0"></a> </td>
<td background="../images/banner_back_01.gif"><a href="http://www.police.go.kr/HONOR/index.jsp" target="_blank"><img src="../images/banner_03.gif" width="181" height="49" border="0"></a> </td>
<td background="../images/banner_back_01.gif"><a href="http://kid.police.go.kr/index.jsp" target="_blank"><img src="../images/banner_04.gif" width="168" height="49" border="0"></a> </td>
<td background="../images/banner_back_01.gif"><a href="http://www.policefund.or.kr/" target="_blank"><img src="../images/banner_05.gif" width="150" height="49" border="0"></a> </td>
<td background="../images/banner_back_01.gif"><a href="http://www.ipodori.or.kr" target="_blank"><img src="../images/banner_06.gif" width="159" height="49" border="0"></a></td>
</tr>
</table>
<table width='970' height='49' border='0' cellspacing='0' cellpadding='0'>
<tr align='center' valign="top" bgcolor='#FFFFFF' background="../images/banner_back_01.gif" >
<td background="../images/banner_back_01.gif" align="absmiddle"><a href="http://knpu.police.ac.kr/policesin/login.jsp" target="_blank"><img src="../images/ban_15.gif" height="35" border="0"></a> </td>
<td background="../images/banner_back_01.gif"><a href="http://phone.korea.go.kr/hjb_index.jsp" target="_blank"><img src="../images/banner_08.gif" height="49" border="0"></a> </td>
<td background="../images/banner_back_01.gif"><a onClick="openWinCenter(this.href,'newwin','width=666,height=600,status=no,menubar=no,scrollbars=yes');return false" href="http://www.npa.go.kr/data/susa/dataSusaList.jsp"><img src="../images/banner_09.gif" height="49" border="0"></a> </td>
<td background="../images/banner_back_01.gif"><a href="http://www.police.go.kr/plaza/memorial/main.jsp" target="_blank"><img src="../images/banner_10.gif" height="49" border="0"></a> </td>
<!--td background="../images/banner_back_01.gif"><a onClick="openWinCenter(this.href,'newwin','width=800,height=600,status=no,menubar=no,scrollbars=yes');return false" href="http://www.npa.go.kr/virtual/cyber.html"><img src="../images/banner_11.gif" height="49" border="0"></a> </td-->
<td background="../images/banner_back_01.gif"><a href="/03_service/service_01_05.asp" target="_parent"><img src="../images/banner_12.gif" height="49" border="0"></a></td>
<td background="../images/banner_back_01.gif"><a href="http://www.mogaha.go.kr/html/policy/policy_06_07.jsp" target="_blank"><img src="../images/banner_060428.gif" border="0"></a></td>
<td background="../images/banner_back_01.gif"> </td>
</tr>
</table>

</div>
</div>
</td>
</tr>
</table>

<script language="JavaScript">
<!--

// banner_roll("div태그 id", 배너1개높이, 딜레이, 1칸이동속도, 0);
banner_roll("banner_1", 51, 4000, 20, 0);
//-->
</script>
</body>
</html><div class='small'>[이 게시물은 관리자님에 의해 2011-10-31 16:57:14 JavaScript에서 이동 됨]</div>
|

댓글 1개

자바스크립트
댓글을 작성하시려면 로그인이 필요합니다.

프로그램

8,188건
+
제목 글쓴이 날짜 조회
10-09-25 조회 2,722
10-09-19 조회 2,757
10-09-15 조회 2,757
10-09-15 조회 4,163
10-09-15 조회 3,379
10-09-15 조회 2,493
10-09-07 조회 3,602
10-08-27 조회 4,065
10-06-11 조회 4,237
10-05-31 조회 2,486
10-02-27 조회 5,003
10-02-09 조회 3,749
09-10-10 조회 7,344
09-03-19 조회 3,194
09-02-09 조회 3,464
09-02-09 조회 4,531
08-11-01 조회 2,909
08-09-29 조회 4,562
08-09-26 조회 3,511
08-09-26 조회 3,589
08-09-26 조회 2,724
08-09-26 조회 3,768
08-09-26 조회 3,494
08-09-26 조회 4,255
08-09-18 조회 3,576
08-09-09 조회 3,229
08-08-28 조회 2,773
08-07-06 조회 3,542
08-05-21 조회 4,706
08-05-13 조회 4,540
08-04-17 조회 4,920
08-02-19 조회 3,542
08-01-18 조회 3,843
08-01-10 조회 3,818
07-10-22 조회 3,654
07-10-09 조회 4,308
07-10-03 조회 3,514
07-07-06 조회 4,212
07-07-06 조회 4,426
07-07-06 조회 4,036
07-06-28 조회 3,567
07-06-05 조회 3,568
07-06-05 조회 4,118
07-05-30 조회 3,289
07-05-02 조회 3,686
07-04-15 조회 5,148
07-04-11 조회 3,628
07-04-05 조회 3,927
07-03-31 조회 3,149
07-03-31 조회 4,123
07-03-30 조회 3,732
07-03-24 조회 4,001
07-03-22 조회 3,658
07-03-12 조회 4,413
07-02-16 조회 3,270
07-02-14 조회 5,168
07-02-10 조회 3,997
07-02-09 조회 4,381
07-01-19 조회 4,049
07-01-16 조회 4,975
06-12-16 조회 5,835
06-11-30 조회 3,599
06-11-25 조회 3,709
06-10-15 조회 5,068
06-09-26 조회 5,310
06-09-26 조회 5,425
06-09-22 조회 4,275
06-09-21 조회 3,546
06-09-21 조회 3,638
06-09-02 조회 3,484
06-08-08 조회 5,115
06-07-20 조회 3,720
06-07-17 조회 3,358
06-07-13 조회 4,175
06-07-11 조회 3,475
06-07-11 조회 3,483
06-07-11 조회 3,840
06-06-29 조회 6,063
06-06-19 조회 6,461
06-06-02 조회 3,514
06-05-24 조회 4,998
06-05-14 조회 7,776
06-05-08 조회 3,894
06-02-02 조회 5,456
05-12-16 조회 4,509
05-12-05 조회 5,158
05-06-28 조회 4,111
05-04-11 조회 4,066
05-04-11 조회 4,252
05-04-11 조회 3,317
05-03-13 조회 3,221
05-03-12 조회 4,297
04-12-08 조회 7,780
04-12-01 조회 5,184
04-11-28 조회 3,358
04-11-28 조회 3,201
04-08-05 조회 5,614
04-08-05 조회 4,969
04-08-05 조회 5,580