No problem, you're welcome.
Just one thing: why are you checking if document.layers is not supported?
Well the script that I have in my page is taken from
here
I just made one change in this script as per your earlier suggestion i.e replacing the <layer> tag with <div> and the rest of the script is as it is, but now I did remove that if condition since I dint have layers in my page.
Now the content of my <div> is a dynamic table being created by a Jsp scriplet and I wanted scrollbars and a floating effect for this table which I achieved through the above script.I am working on IE 6.0 and <div> works fine on it but I was told that IE and Netscape have different DOM specifications and older versions of Netscape may not support <div> hence I should surround it by <layer>,is that the case? I think thats the reason why they had that if condition in the script to distinguish between IE and Netscape, so should I retain it?
Do I need to put alternate code for different browsers? Well I still haven’t tested my web application on other browsers or older versions of IE so now I’m a bit worried about what works on which browser and what doesn’t?