var searchRow = 0; function stopScroll2() { clearInterval(s_status3); } function scrollRT() { if(searchRow >= Sea_totalRow) { searchRow = 0; } for(var jk = 0; jk < Sea_totalRow; jk++) { if(jk == searchRow) { document.getElementById("banner_" + jk).style.display = "block"; document.getElementById("banner_" + jk).style.backgroundColor=""; } else { document.getElementById("banner_" + jk).style.display = "none"; document.getElementById("banner_" + jk).style.backgroundColor=""; } } searchRow += 1; document.getElementById("ingi_Area").style.height="15px"; document.getElementById("ingi_Area").style.backgroundColor=""; } function scrollControl2() { stopScroll2(); for(var jk = 0; jk < Sea_totalRow; jk++) { document.getElementById("banner_" + jk).style.display = "block"; document.getElementById("banner_" + jk).style.backgroundColor="#ffffff"; } document.getElementById("ingi_Area").style.backgroundColor="#ffffff"; document.getElementById("ingi_Area").style.height="150px"; } function startBanner() { s_status3 = setInterval("scrollRT()", 1000); } startBanner();