Hi,
Wie wärs mit sowas in der Richtung:
im Prinzip ja, allerdings muss das dann wieder jeder selbst implementieren ...
var oldonload = window.onload;
... und es gibt 'ne ziemliche Inflation an Variablen ;-) Ich arbeite schon an eine objektorientierten Variante davon. Motto:
new EventCollectionHandler(window, ['load', 'resize']); // o.ä.
window.addOnload('foo()');
window.addOnload(bar);
window.addOnload(function() { ... });
window.addOnresize(new Function('', '...'));
// Färtsch.
Sollte eigentlich so machbar sein, wenn ich nicht irre. Das größte Problem wird das Objekt-Binding sein, aber das schaue ich mir von prototype.js ab.
Cheatah
--
X-Self-Code: sh:( fo:} ch:~ rl:° br:> n4:& ie:% mo:) va:) de:] zu:) fl:{ ss:) ls:~ js:|
X-Self-Code-Url: http://emmanuel.dammerer.at/selfcode.html
X-Will-Answer-Email: No
X-Please-Search-Archive-First: Absolutely Yes
X-Self-Code: sh:( fo:} ch:~ rl:° br:> n4:& ie:% mo:) va:) de:] zu:) fl:{ ss:) ls:~ js:|
X-Self-Code-Url: http://emmanuel.dammerer.at/selfcode.html
X-Will-Answer-Email: No
X-Please-Search-Archive-First: Absolutely Yes