Wouldn't it be better form to use window.onload on the javascript instead of <body onload="onLoadFunction()"> ? It seems that the best practice to separate event listeners from the HTML content, maintaining all the javascript in one place. That is to say, instead of the current script use the following:
window.onload = function () {
var bandInfos = [ /* some infos... */ ];
tl = Timeline.create(document.getElementById("the-timeline"), bandInfos);
}
var resizeTimerID = null;
window.onresize = function () {
if (resizeTimerID == null) {
resizeTimerID = window.setTimeout(function() {
resizeTimerID = null;
tl.layout();
}, 500);
}
}
And let the body tag alone... Marciorps 01:11, 5 January 2007 (EST)
I'll second this. And onresize was dropped in XHTML, so you'll have to use window.onload anyway to create valid XHTML. Joern 17:34, 10 October 2007 (EDT)

