Forum Moderators: open
document.layers[s].style.left=x;
That doesnt work, so I tried:
document.layers[s].moveTo(x,y);
It's crazy, I wrote this script in about 5 minutes and it works perfectly in IE, but I have spent the last 2 hours trying to figure out why it won't work in netscape (I'm not so concerned with 4.x but the later netscapes). Grrr!
Thanks if you can point out any blatant errors (see my profile url +\test.asp for example)
document.layers[] is only supported by NN4. For the more recent Netscapes, which are based on Mozilla's Gecko engine and more or less comply with the Document Object Model, you should use document.getElementById():
document.getElementById('myLay').style.left = "100px";
This is also supported by IE 5 and up. For compatibility with IE 4 you need document.all[].