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

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

프로그램

태그 필터 (최대 3개) 전체 개발자 소스 기타 mysql 팁자료실 javascript php linux flash 정규표현식 jquery node.js mobile 웹서버 os 프로그램 강좌 썸네일 이미지관련 도로명주소 그누보드5 기획자 견적서 계약서 기획서 마케팅 제안서 seo 통계 서식 통계자료 퍼블리셔 html css 반응형 웹접근성 퍼블리싱 표준화 반응형웹 홈페이지기초 부트스트랩 angularjs 포럼 스크린리더 센스리더 개발자톡 개발자팁 퍼블리셔톡 퍼블리셔팁 기획자톡 기획자팁 프로그램강좌 퍼블리싱강좌
+
제목 글쓴이 날짜 조회
19년 전 조회 2,713
19년 전 조회 3,319
19년 전 조회 3,083
19년 전 조회 3,193
19년 전 조회 2,435
19년 전 조회 2,660
19년 전 조회 4,263
19년 전 조회 2,452
19년 전 조회 4,440
19년 전 조회 2,603
19년 전 조회 2,287
19년 전 조회 2,523
19년 전 조회 2,079
19년 전 조회 2,618
19년 전 조회 2,393
19년 전 조회 3,272
19년 전 조회 2,048
19년 전 조회 3,729
19년 전 조회 2,903
19년 전 조회 3,627
19년 전 조회 3,653
19년 전 조회 3,345
19년 전 조회 5,636
19년 전 조회 2,373
19년 전 조회 2,416
19년 전 조회 2,521
19년 전 조회 3,592
19년 전 조회 3,912
19년 전 조회 3,938
19년 전 조회 2,558
19년 전 조회 2,589
19년 전 조회 2,880
19년 전 조회 3,194
19년 전 조회 2,643
19년 전 조회 2,821
19년 전 조회 2,661
19년 전 조회 2,396
19년 전 조회 3,418
19년 전 조회 3,487
19년 전 조회 3,222
19년 전 조회 5,043
19년 전 조회 2,882
19년 전 조회 3,501
19년 전 조회 3,330
19년 전 조회 2,190
19년 전 조회 3,320
19년 전 조회 2,067
19년 전 조회 2,520
19년 전 조회 2,606
19년 전 조회 4,181
19년 전 조회 3,375
19년 전 조회 3,282
19년 전 조회 2,731
19년 전 조회 2,194
19년 전 조회 1,834
19년 전 조회 2,620
19년 전 조회 2,528
19년 전 조회 2,005
19년 전 조회 2,005
19년 전 조회 2,788
19년 전 조회 2,754
19년 전 조회 2,076
19년 전 조회 2,300
19년 전 조회 3,480
19년 전 조회 2,142
19년 전 조회 2,662
19년 전 조회 2,738
19년 전 조회 2,862
19년 전 조회 3,125
19년 전 조회 2,762
19년 전 조회 3,172
19년 전 조회 2,948
19년 전 조회 3,694
19년 전 조회 2,058
19년 전 조회 2,918
19년 전 조회 2,572
19년 전 조회 2,208
19년 전 조회 2,615
19년 전 조회 2,051
19년 전 조회 5,617
19년 전 조회 2,467
19년 전 조회 4,417
19년 전 조회 2,493
19년 전 조회 2,048
19년 전 조회 2,776
19년 전 조회 2,530
19년 전 조회 2,705
19년 전 조회 2,362
19년 전 조회 4,111
19년 전 조회 3,597
19년 전 조회 2,376
19년 전 조회 2,306
19년 전 조회 2,176
19년 전 조회 2,171
19년 전 조회 4,569
19년 전 조회 3,534
19년 전 조회 2,950
19년 전 조회 3,538
19년 전 조회 3,173
19년 전 조회 3,031