Hallo,
( function() {
var tuwas = function() {
...
}...
var JB_addEvent = function (obj, type, fn) {
if(type.search("on")==0) type = type.substr(2);
if (obj.addEventListener) {
obj.addEventListener(type, fn, false);
}
else if (obj.attachEvent) {
obj.attachEvent('on' + type, function () {
return fn.call(obj, window.event);
});
}
} // addEventJB_addEvent(window,"onload",function(e) {
...
tu_was();
...
});})();
>
Du registrierst ein Eventhandler für das Ereignis "onload", wenn die Seite bereits geladen ist?
Grüße
Siri