Event.observe(window,'load',function() { Event.observe('newsticker','mouseover',function() { this.scrollAmount=1; }); Event.observe('newsticker','mouseout',function() { this.scrollAmount=3; } ); // lil hack to fix msie6 display bug window.setTimeout(function() { $('newsticker').scrollAmount=4; },1000); });