Good, I thought of another improvement after testing in IE 10. It seems that IE 9 and greater can handle the "ns6" way of working things and behave better with it (prevents the page from getting larger and smaller when the leaves cross over the right and bottom edges - aka "dancing scrollbars"). To take advantage of that, add the highlighted, as shown:
Code:
Ypos=new Array();
Xpos=new Array();
Speed=new Array();
Step=new Array();
Cstep=new Array();
ns=(document.layers)?1:0;
ns6=(document.getElementById&&!document.all||window.opera)?1:0;
var newie = /MSIE (\d+)/.exec(navigator.userAgent);
if(newie && newie[1] > 8){ns6 = true;}
speed=ns6? speed-12 : speed
IE 8 and less still need the old IE methods and will use them. For some reason though they, IE 8 at least, have a problem with the page getting larger and smaller as mentioned above. The script was supposed to prevent that, but IE 6 was the latest IE browser at that time, probably still works fine in it. If I see an easy fix, I'll let you know.
Bookmarks