I haven't looked at the source of Top Menu III extensively yet, but assuming your problem is with multiple onload events conflicting, what you can do is first add the below function to the very end of sniffer.js. This function lets you assign a function to the BODY onload event without having it cancel out/ conflict with the next function that does the same:
Code:
function dotask(target, functionref, tasktype){ //assign a function to execute to an event handler (ie: onunload)
var tasktype=(window.addEventListener)? tasktype : "on"+tasktype
if (target.addEventListener)
target.addEventListener(tasktype, functionref, false)
else if (target.attachEvent)
target.attachEvent(tasktype, functionref)
}
So lets say initializePage() is the function you wish to assign to the BODY. You would call it this way instead:
Code:
dotask(window, function(){initializePage()}, "load")
Bookmarks