Ok quick question about css and javascript.
I have the following css for a tab:
[code]a.tab {
border-style: solid solid none solid;
border-color: <? echo “$tc_css[tabborder]”; ?>;
border-width: 2px 2px 0px 2px;
background-color: <? echo “$tc_css[tabbgcolor]”; ?>;
padding: 2px 0.5em 2px 0.5em;
margin-top: 4px;
}
a.tab:hover {
border-color: <? echo “$tc_css[tabborderhover]”; ?>;
background-color: <? echo “$tc_css[tabbgcolorhover]”; ?>;
text-decoration: bold;
}
Now I have noticed when i change the style in javascript style.backgroundColor or style.borderColor that it removes the hover style.
[code]function changetablecolor() {
var thecolor = document.thisform.color2.value;
document.getElementById(“thistable”).style.backgroundColor = thecolor;
}
With that.
Is there a way i can prevent that?
Also is there a way to change the the hover as well?