wer kann mir bei unten stehendem script weiterhelfen?
das script ist teil einer layerpositionierungs-function.
die erste hälfte ist für NN4.7,
die untere hälfte für NN6 und läuft nicht.
ciao,
harald
if (browser == "Netscape") {
if(navigator.appVersion.substring(0,1) < "5") {
x = Math.round(window.innerWidth/2);
number=window.document.layers.length;
while (counter<number)
{pos=x-layer_xdif[counter];
if (((pos-293)<0)&&(counter==1)) pos=293; if (((pos-230)<0)&&(counter==2)) pos=230;
if (((pos-355)<0)&&(counter==3)) pos=355;
if (((pos-355)<0)&&(counter==4)) pos=355;
if (((pos-355)<0)&&(counter==5)) pos=355;
if (((pos-355)<0)&&(counter==6)) pos=355;
if (((pos-475)<0)&&(counter==7)) pos=475;
if (((pos-475)<0)&&(counter==8)) pos=475;
if (((pos-475)<0)&&(counter==9)) pos=475;
if (((pos-475)<0)&&(counter==10)) pos=475;
if (((pos-475)<0)&&(counter==11)) pos=475;
if (((pos-601)<0)&&(counter==12)) pos=601;
if (((pos-353)<0)&&(counter==13)) pos=353;
if (pos < 0) pos=0;
window.document.layers[counter].left=pos;
counter++; }}
else{
x = Math.round(window.innerWidth/2);
var geckoLay = document.getElementsByTagName('div');
var number = geckoLay.length-1;
while (counter<number) {
pos=x-layer_xdif[counter];
if (((pos-293)<0)&&(counter==1)) pos=293;
if (((pos-230)<0)&&(counter==2)) pos=230;
if (((pos-355)<0)&&(counter==3)) pos=355;
if (((pos-355)<0)&&(counter==4)) pos=355;
if (((pos-355)<0)&&(counter==5)) pos=355;
if (((pos-355)<0)&&(counter==6)) pos=355;
if (((pos-475)<0)&&(counter==7)) pos=475;
if (((pos-475)<0)&&(counter==8)) pos=475;
if (((pos-475)<0)&&(counter==9)) pos=475;
if (((pos-475)<0)&&(counter==10)) pos=475;
if (((pos-475)<0)&&(counter==11)) pos=475;
if (((pos-601)<0)&&(counter==12)) pos=601;
if (((pos-353)<0)&&(counter==13)) pos=353;
if (pos < 0) pos=0;
document.getElementsByTagName('div')[counter].left=pos;
counter++; }}}}