Changing the name of a local variable should not make any difference and window.onload+= is unconventional at best, probably unreliable. I'd have changed:
Code:
if (ie4||dom)
window.onload=startit
else
setInterval("rotateimage()",pause)
to:
Code:
if (ie4||dom){
if ( typeof window.addEventListener != "undefined" )
window.addEventListener( "load", startit, false );
else if ( typeof window.attachEvent != "undefined" ) {
window.attachEvent( "onload", startit );
}
else {
if ( window.onload != null ) {
var oldOnload = window.onload;
window.onload = function ( e ) {
oldOnload( e );
startit();
};
}
else
window.onload = startit;
}
}
else
setInterval("rotateimage()",pause)
and be done with it. Works here.
Bookmarks