var speed = 0, currentpos = curpos1 = 0, alt = 1, curpos2=-1; function initialize(){ if (window.parent.scroll01speed != 0){ speed = window.parent.scroll01speed; scrollwindow(); } } function scrollwindow(){ temp = (document.all) ? document.documentElement.scrollTop : window.pageYOffset; alt = (alt == 0)? 1 : 0; if (alt == 0) curpos1 = temp; else curpos2 = temp; window.scrollBy(0,speed); } setInterval("initialize()",10);