Make table rows clickable using javascript. Use this functionality in the top X lists and in the test results table

This commit is contained in:
Chris Morgan
2006-07-21 04:34:58 +00:00
committed by WineHQ
parent f73d9c0283
commit c726511204
5 changed files with 33 additions and 5 deletions

View File

@@ -62,6 +62,14 @@ function html_tr($arr, $class = "", $extra = "")
return do_html_tr("td", $arr, $class, $extra);
}
function html_tr_highlight_clickable($sClass, $sHighlightColor, $sInactiveColor, $sUrl)
{
echo '<tr class='.$sClass.' '.
'onmouseover="ChangeTrColor(this, true, \''.$sHighlightColor.'\', \''.$sInactiveColor.'\');"'.
'onmouseout="ChangeTrColor(this, false, \''.$sHighlightColor.'\', \''.$sInactiveColor.'\');"'.
'onclick="DoNav(\''.$sUrl.'\');">';
}
// HTML TABLE
function html_table_begin($extra = "")
{