I have built a control to change color dynamically.
var color;// a 4 digit hex value
function setTabLColor(){
var clr = document.getElementById("mytr");
var str = color.toString(16);
clr.style.borderColor = str;// Invalid property value
clr.style.borderColor = "#" + str;;// Invalid property value
clr.style.borderColor = "#ffee00";//or ANY explicit value WORKS like "Blue"
clr.style = "border:solid 10px #" + str;// no effect
}
I am using IE 8. Have not tried this code in Opera or any other browser.
Have tried MANY other code variations including currentStyle attributes
Anybody tried this??
