// RBWD Newsticker 1.0.0
var cntrWidth = 390; var cntrHeight = 16; var speed = 10; var content = '<div style="padding-top: 1px"><nobr>' + content + '</nobr></div>'; var stop = 0; document.write('<span id="temp" style="visibility: hidden; position: absolute; top: -200px; left: -1000px">' + content + '</span>');
function rbwd_newsticker() { var cntr = document.getElementById("cntr"); cntr.style.left = cntrWidth + 8; cntr.innerHTML = content; setInterval(function() { if (parseInt(cntr.style.left) > (8 - cntr.offsetWidth) && !stop) cntr.style.left = parseInt(cntr.style.left) - speed; else if(parseInt(cntr.style.left) <= (8 - cntr.offsetWidth)) cntr.style.left = cntrWidth + 8; }, 200); }
document.write('<table border="0" cellspacing="0" cellpadding="0"><tr><td><div style="position: relative; width: ' + cntrWidth+'; height: ' + cntrHeight + '; overflow: hidden"><div style="position: absolute; width: ' + cntrWidth + '; height: ' + cntrHeight + '" onMouseover="stop = 1" onMouseout="stop = 0;"><div id="cntr" style="position: absolute; left: 0; top: 0"></div></div></td></tr></table>');
rbwd_newsticker();
