Das ist ja ne Klasse Fehlermeldung. Welches undefined? welche Zeile?
was sagt alert(obj)?
Zeile 87...
Und bei dieser Anordnung:
var obj = document['dot' + i]; // Ist auch für den IE besser.
alert (obj);
if(typeof obj.style == 'undefined') this.obj = obj;
else this.obj = obj.style;gibt alert(obj) ebenfalls "undefined" aus...
und mit eval hat's funktioniert?????
var obj = eval(document.dot' + i);
Ich seh nämlich grad das du ja layer benutzt, dann musst du es so machen:
var id = 'dot' + i;
if(document.getElementById) this.obj = document.getElementById(id).style;
else if(document.layers) this.obj = document.layers[id];
else if(document.all) this.obj = document.all[id].style;
Struppi.