Forum Moderators: open
function trhighlight_outline(){
if(!document.getElementsByTagName("tr")) return false;
var rows = document.getElementsByTagName("tr");
for (var i=0; i<rows.length; i++){
if(rows[i].firstChild.nodeName == "TD" && rows[i].parentNode.nodeName != "TFOOT"){
rows[i].onmouseover = function(){
this.style.outline="thick solid #0000FF";//<=====HERE
}
rows[i].onmouseout = function(){
this.style.outline="none";
}
}
}
}
outlineColor = '#00f';
outlineStyle = 'solid';
outlineWidth = 'thick'; // Set width last
function trhighlight_outline(){
if(!document.getElementsByTagName("tr")) return false;
var rows = document.getElementsByTagName("tr");
for (var i=0; i<rows.length; i++){
if(rows[i].firstChild.nodeName == "TD" && rows[i].parentNode.nodeName != "TFOOT"){
rows[i].onmouseover = function(){
//this.style.outline="thick solid #0000FF";
this.style.outlineColor = '#00f';
this.style.outlineStyle = 'solid';
this.style.outlineWidth = 'thick';
}
rows[i].onmouseout = function(){
this.style.outline="none";
this.style.outlineStyle = 'none';
this.style.outlineWidth = 0;
}
}
}
}
...getting Chrome to render this effect with a test page that uses explicit CSS instead of JavaScript?
tbody tr td:hover {outline: thick solid green;} tbody tr:hover {outline: thick solid green;}