var mouse1 = 1,
mouse2 = 1,
mouse3 = 1
mouse4 = 1
function banner_roll1(div_id, banner_height, banner_delay, banner_speed, this_height)
{
/* if(mouse1){
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_roll1('" + div_id + "', " + banner_height + ", " + banner_delay + ", " + banner_speed + ", " + this_height + ");", banner_speed);
} else {
a_tag = div_tag.getElementsByTagName("A");
div_tag.appendChild(a_tag[0]);
div_tag.style.top = 0;
setTimeout("banner_roll1('" + div_id + "', " + banner_height + ", " + banner_delay + ", " + banner_speed + ", 0);", banner_delay);
}
return true;
}
*/
window.setTimeout("banner_roll1('banner_1', 14, 3200, 17, 0)");
}
function banner_roll2(div_id, banner_height, banner_delay, banner_speed, this_height)
{
if(mouse2){
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_roll2('" + div_id + "', " + banner_height + ", " + banner_delay + ", " + banner_speed + ", " + this_height + ");", banner_speed);
} else {
a_tag = div_tag.getElementsByTagName("A");
div_tag.appendChild(a_tag[0]);
div_tag.style.top = 0;
setTimeout("banner_roll2('" + div_id + "', " + banner_height + ", " + banner_delay + ", " + banner_speed + ", 0);", banner_delay);
}
return true;
}
window.setTimeout("banner_roll2('banner_2', 14, 3200, 17, 0)");
}
// banner_roll("div태그 id", 배너1개높이, 딜레이, 1칸이동속도, 0);
banner_roll1("banner_1", 14, 3200, 17, 0);
// banner_roll("div태그 id", 배너1개높이, 딜레이, 1칸이동속도, 0);
banner_roll2("banner_2", 14, 3200, 17, 0);
|