Hi All
I would liek that when i rollover a certain cell the background color changes and a border is shown. To do this i used the following javascript code, which i know that it can be handled by CSS (thats what i'm asking)
The Above works perfectly on a fresh html page, but when i insert it into my proper page, the background shows but the border does not! How can i fix it so as the border will show too!
Thanks
Nick
I would liek that when i rollover a certain cell the background color changes and a border is shown. To do this i used the following javascript code, which i know that it can be handled by CSS (thats what i'm asking)
Code:
<script language="javascript">
function highlightCell(link, isHighligh){
if(isHighligh){
link.parentElement.style.border = "3px solid #31659C";
link.parentElement.style.backgroundColor = "#D8D8D8";
}
else{
link.parentElement.style.backgroundColor = "white";
link.parentElement.style.border = "0px solid #000000";
}
}
</script>
The Above works perfectly on a fresh html page, but when i insert it into my proper page, the background shows but the border does not! How can i fix it so as the border will show too!
Thanks
Nick