Well, the script does need to initialize after the browser has parsed the page. There are other ways to do this, generally if an onload event that is usually fine in the body tag causes a problem, there is a conflict with another javascript. If it is just a simple onload conflict, the other script should be removed, or have its onload event combined with this one. The function name 'init()' is such a common one though, you may have more than one of those, or you may have more than one of something else, either would require a different solution. However, it is always possible that something else is going on in this case.
Please post a link to the page on your site that contains the problematic script so we can check it out.
Bookmarks