끊기지 않는 배너 롤링 입니다. 정보
JavaScript 끊기지 않는 배너 롤링 입니다.
본문
<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> 
0
 
 
댓글 0개