var str1 ="
"; document.write(str1); var marqueeContent = new Array(); [add] var marqueeInterval = new Array(); var marqueeId = 0; var marqueeDelay = 4000; var marqueeHeight = [height]; function initMarquee() { var str = marqueeContent[0]; document.write('
' + str + '
'); marqueeId++; marqueeInterval[0] = setInterval('startMarquee()', marqueeDelay); } function startMarquee() { var str = marqueeContent[marqueeId]; marqueeId++; if (marqueeId >= marqueeContent.length) marqueeId = 0; if (mainone_ads_marqueeBox.childNodes.length == 1) { var nextLine = document.createElement('DIV'); nextLine.innerHTML = str; mainone_ads_marqueeBox.appendChild(nextLine); } else { mainone_ads_marqueeBox.childNodes[0].innerHTML = str; mainone_ads_marqueeBox.appendChild(mainone_ads_marqueeBox.childNodes[0]); mainone_ads_marqueeBox.scrollTop = 0; } clearInterval(marqueeInterval[1]); marqueeInterval[1] = setInterval('scrollMarquee()', 10); } function scrollMarquee() { mainone_ads_marqueeBox.scrollTop++; if (mainone_ads_marqueeBox.scrollTop % marqueeHeight == marqueeHeight) { clearInterval(marqueeInterval[1]); } } initMarquee(); document.write("
");