1 person found this helpful
but it would be better to use a library like jquery that eliminate the cross-browser issues:
<script src="http://code.jquery.com/jquery-1.9.1.min.js"></script> // but you should check for the latest version
Thanks kglad, I tried adding document.onload=init; but it
wouldn't get past the pre-loader, so I tried
window.onload = init; (added it to the end of the script)
This worked but sometimes it took several seconds to load,
usually about 10 seconds, I could live with that but then I
found sometimes not all the external images loaded, so you
only got part of the animation.
I think the issue is a conflict between my theme (Morpheus)
and some browsers and OP cobinations.
window.onload generally takes longer to execute because it doesn't fire until everything needed for the page to display loads (and that includes images).
but again, because of browser differences you should use jquery.