! problems with scrollBy !

wxdqz

New Member
hi,this is the problem:This script don't work properly in Explorer Mac, Mozilla, Netscape...In MIE (win) the scroll is smoothy, the other browsers "jump" to the point...Here is the script:function scrolla(DISTANZA,VELOCITA){ I=0; DIR=0; var x=parent.sotto.document.body.scrollLeft ; if (x<DISTANZA){ spostamento=DISTANZA-x; DIR=0; }else{ spostamento=-(DISTANZA-x); DIR=1; } while (I<=spostamento){ if (DIR==0){ parent.sotto.scrollBy(VELOCITA,0) }else{ parent.sotto.scrollBy(-VELOCITA,0) } I=I+VELOCITA }}Thank you...
 
Top