Hallo Leute,
mein letzter Thread war so schnell im Archiv, deswegen stelle ich's nochmal rein, mit neuem
Stand. (Wenn ich es hätte anders machen sollen, bitte sagen...)Hab folgende DIV's:
<DIV ID="trail6" STYLE="position:absolute; top:60px; left:60px; visibility:show; background-image:url(trail1.gif);"></DIV>
<DIV ID="trail5" STYLE="position:absolute; top:50px; left:50px; visibility:show; background-image:url(trail1.gif);"></DIV>
<DIV ID="trail4" STYLE="position:absolute; top:40px; left:40px; visibility:show; background-image:url(trail1.gif);"></DIV>
<DIV ID="trail3" STYLE="position:absolute; top:30px; left:30px; visibility:show; background-image:url(trail1.gif);"></DIV>
<DIV ID="trail2" STYLE="position:absolute; top:20px; left:20px; visibility:show; background-image:url(trail1.gif);"></DIV>
<DIV ID="trail1" STYLE="position:absolute; top:10px; left:10px; visibility:show; background-image:url(trail1.gif);"></DIV>Und im Script will ich dann folgendermaßen zugreifen:
for (var j = 0 ; j < 6 ; j++ ) {
»» if (ns4) obj = document.trail[6-j];
»» obj.left = imageArrayX[j];
»» obj.top = imageArrayY[j];
}
Hi
so sollte es eigentlich gehen :
if (ns4) obj=document.layers['trail'+(6-j)];
gruss
Jens