[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,538
19년 전 조회 3,143
19년 전 조회 2,892
19년 전 조회 3,045
19년 전 조회 2,253
19년 전 조회 2,475
19년 전 조회 4,094
19년 전 조회 2,258
19년 전 조회 4,256
19년 전 조회 2,419
19년 전 조회 2,109
19년 전 조회 2,355
19년 전 조회 1,903
19년 전 조회 2,439
19년 전 조회 2,229
19년 전 조회 3,101
19년 전 조회 1,885
19년 전 조회 3,566
19년 전 조회 2,736
19년 전 조회 3,467
19년 전 조회 3,475
19년 전 조회 3,172
19년 전 조회 5,465
19년 전 조회 2,199
19년 전 조회 2,250
19년 전 조회 2,342
19년 전 조회 3,425
19년 전 조회 3,731
19년 전 조회 3,769
19년 전 조회 2,381
19년 전 조회 2,418
19년 전 조회 2,715
19년 전 조회 3,059
19년 전 조회 2,480
19년 전 조회 2,648
19년 전 조회 2,483
19년 전 조회 2,232
19년 전 조회 3,251
19년 전 조회 3,311
19년 전 조회 3,055
19년 전 조회 4,882
19년 전 조회 2,725
19년 전 조회 3,332
19년 전 조회 3,158
19년 전 조회 2,018
19년 전 조회 3,153
19년 전 조회 1,892
19년 전 조회 2,366
19년 전 조회 2,432
19년 전 조회 4,008
19년 전 조회 3,213
19년 전 조회 3,128
19년 전 조회 2,567
19년 전 조회 2,032
19년 전 조회 1,670
19년 전 조회 2,450
19년 전 조회 2,359
19년 전 조회 1,846
19년 전 조회 1,843
19년 전 조회 2,637
19년 전 조회 2,611
19년 전 조회 1,906
19년 전 조회 2,137
19년 전 조회 3,330
19년 전 조회 1,974
19년 전 조회 2,514
19년 전 조회 2,595
19년 전 조회 2,691
19년 전 조회 2,966
19년 전 조회 2,591
19년 전 조회 3,003
19년 전 조회 2,777
19년 전 조회 3,543
19년 전 조회 1,903
19년 전 조회 2,761
19년 전 조회 2,401
19년 전 조회 2,044
19년 전 조회 2,459
19년 전 조회 1,898
19년 전 조회 5,459
19년 전 조회 2,300
19년 전 조회 4,263
19년 전 조회 2,329
19년 전 조회 1,874
19년 전 조회 2,630
19년 전 조회 2,375
19년 전 조회 2,566
19년 전 조회 2,196
19년 전 조회 3,947
19년 전 조회 3,453
19년 전 조회 2,223
19년 전 조회 2,134
19년 전 조회 2,000
19년 전 조회 2,034
19년 전 조회 4,406
19년 전 조회 3,374
19년 전 조회 2,805
19년 전 조회 3,376
19년 전 조회 3,031
19년 전 조회 2,871