끊기지 않는 배너 롤링 입니다.

· 10년 전 · 317

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

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

팁게시판

디자인과 관련된 유용한 정보를 공유하세요. 질문은 상단의 QA에서 해주시기 바랍니다.

+
제목 글쓴이 날짜 조회
10년 전 조회 288
10년 전 조회 330
10년 전 조회 240
10년 전 조회 258
10년 전 조회 433
10년 전 조회 270
10년 전 조회 331
10년 전 조회 297
10년 전 조회 345
10년 전 조회 452
10년 전 조회 326
10년 전 조회 299
10년 전 조회 318
10년 전 조회 419
10년 전 조회 333
10년 전 조회 283
10년 전 조회 290
10년 전 조회 295
10년 전 조회 247
10년 전 조회 256
10년 전 조회 443
10년 전 조회 507
10년 전 조회 292
10년 전 조회 283
10년 전 조회 247