The key elements are the ability to get the element using any of the browser types.
this.obj = document.getElementById(name);
this.style = document.getElementById(name).style;
else if (document.all)
this.obj = document.all[name];
this.style = document.all[name].style;
else if (document.layers)
this.obj = document.layers[name];
this.style = document.layers[name];
alert (“Sorry, but the browser you are using won’t allow some of the features we are testing.”);
and then setting the style[js]function setOneStyle( cStyle, cDef)
var obj = new getObj(‘teststring’);
obj.style[cStyle] = cDef;
I’ve tested this with Firefox, IE and Opera and each option works with all 3. Opera however loses the plot a little with borders and relies on the page being scrolled before it shows or removes the border completely.