아

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

· 2006-09-21 (목) 18:10:51 · 5162 · 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건
+
제목 글쓴이 날짜 조회
07-07-16 조회 3,083
07-07-06 조회 2,952
07-07-06 조회 3,404
07-06-23 조회 3,228
07-06-16 조회 2,732
07-05-20 조회 4,231
07-05-09 조회 3,408
07-05-09 조회 6,053
07-05-04 조회 2,638
07-04-30 조회 9,786
07-04-27 조회 4,285
07-04-26 조회 3,403
07-04-25 조회 5,208
07-04-18 조회 7,730
07-04-13 조회 3,064
07-04-12 조회 6,585
07-04-12 조회 4,990
07-04-12 조회 3,295
07-04-11 조회 5,675
07-04-05 조회 6,322
07-03-24 조회 4,373
07-03-20 조회 3,689
07-03-18 조회 3,959
07-03-18 조회 4,708
07-03-17 조회 4,198
07-03-16 조회 4,102
07-03-15 조회 5,241
07-03-13 조회 5,343
07-03-13 조회 3,544
07-03-08 조회 4,459
07-03-08 조회 3,941
07-03-08 조회 3,245
07-03-08 조회 4,127
07-03-05 조회 4,360
07-03-04 조회 2,876
07-03-01 조회 5,912
07-02-28 조회 3,195
07-02-27 조회 4,366
07-02-26 조회 3,268
07-02-26 조회 2,981
07-02-23 조회 3,623
07-02-23 조회 3,588
07-02-22 조회 3,973
07-02-22 조회 3,769
07-02-19 조회 3,808
07-02-17 조회 4,824
07-02-14 조회 8,123
07-02-12 조회 3,891
07-02-10 조회 3,500
07-02-02 조회 3,746
07-01-31 조회 3,415
07-01-29 조회 3,270
07-01-25 조회 5,054
07-01-21 조회 3,206
07-01-19 조회 3,001
06-12-15 조회 3,983
06-12-15 조회 4,403
06-12-15 조회 2,898
06-12-15 조회 4,440
06-12-15 조회 3,333
06-12-15 조회 4,044
06-12-15 조회 2,986
06-12-15 조회 2,715
06-12-15 조회 4,588
06-12-15 조회 3,134
06-12-15 조회 3,223
06-12-07 조회 4,674
06-12-07 조회 3,963
06-12-04 조회 4,599
06-11-27 조회 3,649
06-11-21 조회 3,971
06-11-15 조회 3,410
06-11-04 조회 3,290
06-10-29 조회 3,946
06-10-13 조회 3,807
06-10-13 조회 4,172
06-10-13 조회 4,127
06-10-12 조회 5,324
06-10-12 조회 4,243
06-10-04 조회 3,738
06-10-02 조회 4,521
06-09-29 조회 3,009
06-09-26 조회 3,351
06-09-26 조회 3,603
06-09-26 조회 3,253
06-09-26 조회 3,400
06-09-26 조회 4,308
06-09-25 조회 4,607
06-09-22 조회 4,939
06-09-22 조회 3,507
06-09-21 조회 4,285
06-09-21 조회 4,294
06-09-21 조회 3,503
06-09-21 조회 5,163
06-09-21 조회 3,691
06-09-21 조회 3,429
06-09-20 조회 2,982
06-09-15 조회 3,107
06-09-13 조회 3,419
06-09-11 조회 3,232