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:
@@ -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 = "")
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user