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

<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개

댓글을 작성하시려면 로그인이 필요합니다.

프로그램

+
제목 글쓴이 날짜 조회
19년 전 조회 2,498
19년 전 조회 3,108
19년 전 조회 2,856
19년 전 조회 3,015
19년 전 조회 2,217
19년 전 조회 2,450
19년 전 조회 4,073
19년 전 조회 2,223
19년 전 조회 4,225
19년 전 조회 2,383
19년 전 조회 2,078
19년 전 조회 2,329
19년 전 조회 1,869
19년 전 조회 2,406
19년 전 조회 2,195
19년 전 조회 3,066
19년 전 조회 1,848
19년 전 조회 3,544
19년 전 조회 2,699
19년 전 조회 3,444
19년 전 조회 3,447
19년 전 조회 3,146
19년 전 조회 5,436
19년 전 조회 2,166
19년 전 조회 2,218
19년 전 조회 2,312
19년 전 조회 3,391
19년 전 조회 3,699
19년 전 조회 3,745
19년 전 조회 2,352
19년 전 조회 2,394
19년 전 조회 2,687
19년 전 조회 3,035
19년 전 조회 2,459
19년 전 조회 2,624
19년 전 조회 2,445
19년 전 조회 2,205
19년 전 조회 3,230
19년 전 조회 3,290
19년 전 조회 3,027
19년 전 조회 4,862
19년 전 조회 2,694
19년 전 조회 3,305
19년 전 조회 3,133
19년 전 조회 1,984
19년 전 조회 3,124
19년 전 조회 1,870
19년 전 조회 2,335
19년 전 조회 2,405
19년 전 조회 3,987
19년 전 조회 3,172
19년 전 조회 3,096
19년 전 조회 2,539
19년 전 조회 1,999
19년 전 조회 1,642
19년 전 조회 2,413
19년 전 조회 2,332
19년 전 조회 1,822
19년 전 조회 1,818
19년 전 조회 2,605
19년 전 조회 2,580
19년 전 조회 1,880
19년 전 조회 2,111
19년 전 조회 3,296
19년 전 조회 1,952
19년 전 조회 2,495
19년 전 조회 2,569
19년 전 조회 2,664
19년 전 조회 2,939
19년 전 조회 2,564
19년 전 조회 2,978
19년 전 조회 2,760
19년 전 조회 3,516
19년 전 조회 1,872
19년 전 조회 2,734
19년 전 조회 2,372
19년 전 조회 2,020
19년 전 조회 2,428
19년 전 조회 1,875
19년 전 조회 5,441
19년 전 조회 2,261
19년 전 조회 4,244
19년 전 조회 2,298
19년 전 조회 1,849
19년 전 조회 2,591
19년 전 조회 2,334
19년 전 조회 2,528
19년 전 조회 2,171
19년 전 조회 3,912
19년 전 조회 3,416
19년 전 조회 2,201
19년 전 조회 2,107
19년 전 조회 1,975
19년 전 조회 1,995
19년 전 조회 4,375
19년 전 조회 3,353
19년 전 조회 2,775
19년 전 조회 3,354
19년 전 조회 3,003
19년 전 조회 2,843
🐛 버그신고