Add a subtle highlight when mouse is over top X rows to provide better feedback to users that they may click anywhere
in the row to visit the application version. Add underlining to the text in the test results table to provide similar feedback.
This commit is contained in:
@@ -62,11 +62,12 @@ function html_tr($arr, $class = "", $extra = "")
|
||||
return do_html_tr("td", $arr, $class, $extra);
|
||||
}
|
||||
|
||||
function html_tr_highlight_clickable($sClass, $sHighlightColor, $sInactiveColor, $sUrl)
|
||||
function html_tr_highlight_clickable($sUrl, $sClass, $sHighlightColor, $sInactiveColor,
|
||||
$sTextDecorationHighlight = "none", $sTextDecorationInactive = "none")
|
||||
{
|
||||
echo '<tr class='.$sClass.' '.
|
||||
'onmouseover="ChangeTrColor(this, true, \''.$sHighlightColor.'\', \''.$sInactiveColor.'\');"'.
|
||||
'onmouseout="ChangeTrColor(this, false, \''.$sHighlightColor.'\', \''.$sInactiveColor.'\');"'.
|
||||
'onmouseover="ChangeTr(this, true, \''.$sHighlightColor.'\', \''.$sInactiveColor.'\', \''.$sTextDecorationHighlight.'\', \''.$sTextDecorationInactive.'\');"'.
|
||||
'onmouseout="ChangeTr(this, false, \''.$sHighlightColor.'\', \''.$sInactiveColor.'\', \''.$sTextDecorationHighlight.'\', \''.$sTextDecorationInactive.'\');"'.
|
||||
'onclick="DoNav(\''.$sUrl.'\');">';
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user