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

· 10년 전 · 301

<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년 전 조회 272
10년 전 조회 317
10년 전 조회 230
10년 전 조회 249
10년 전 조회 416
10년 전 조회 258
10년 전 조회 318
10년 전 조회 290
10년 전 조회 329
10년 전 조회 441
10년 전 조회 312
10년 전 조회 281
10년 전 조회 302
10년 전 조회 403
10년 전 조회 318
10년 전 조회 273
10년 전 조회 274
10년 전 조회 278
10년 전 조회 240
10년 전 조회 239
10년 전 조회 420
10년 전 조회 488
10년 전 조회 275
10년 전 조회 269
10년 전 조회 233