Change cursor to hand when over tabs (since they're links)
This commit is contained in:
Scott Ullrich 2006-01-19 06:50:28 +00:00
parent 2a8143e5f2
commit 0cb641ba72

View File

@ -1212,20 +1212,20 @@ function display_top_tabs($tab_array) {
$tabscounter = 0;
foreach ($tab_array as $ta) {
if($ta[1] == true) {
echo " <td bgcolor='#EEEEEE' onClick=\"document.location='{$ta[2]}'\"><div id='tabactive'></div></td>\n";
echo " <td bgcolor='#EEEEEE' onClick=\"document.location='{$ta[2]}'\" style=\"cursor: pointer; cursor: hand;\"><div id='tabactive'></div></td>\n";
} else {
echo " <td bgcolor='#777777' onClick=\"document.location='{$ta[2]}'\"><div id='tabdeactive{$tabscounter}'></div></td>\n";
echo " <td bgcolor='#777777' onClick=\"document.location='{$ta[2]}'\" style=\"cursor: pointer; cursor: hand;\"><div id='tabdeactive{$tabscounter}'></div></td>\n";
}
$tabscounter++;
}
echo "</tr>\n<tr>\n";
foreach ($tab_array as $ta) {
if($ta[1] == true) {
echo " <td bgcolor='#EEEEEE' onClick=\"document.location='{$ta[2]}'\"><B>&nbsp;&nbsp;&nbsp;{$ta[0]}";
echo " <td bgcolor='#EEEEEE' onClick=\"document.location='{$ta[2]}'\" style=\"cursor: pointer; cursor: hand;\"><B>&nbsp;&nbsp;&nbsp;{$ta[0]}";
echo "&nbsp;&nbsp;&nbsp;";
echo "<font size='-12'>&nbsp;</td>\n";
} else {
echo " <td bgcolor='#777777' onClick=\"document.location='{$ta[2]}'\"><B>&nbsp;&nbsp;&nbsp;<a href='{$ta[2]}'>";
echo " <td bgcolor='#777777' onClick=\"document.location='{$ta[2]}'\" style=\"cursor: pointer; cursor: hand;\"><B>&nbsp;&nbsp;&nbsp;<a href='{$ta[2]}'>";
echo "<font color='white'>{$ta[0]}</a>&nbsp;&nbsp;&nbsp;";
echo "<font size='-12'>&nbsp;</td>\n";
}
@ -1233,9 +1233,9 @@ function display_top_tabs($tab_array) {
echo "</tr>\n<tr height='5px'>\n";
foreach ($tab_array as $ta) {
if($ta[1] == true) {
echo " <td bgcolor='#EEEEEE' onClick=\"document.location='{$ta[2]}'\"></td>\n";
echo " <td bgcolor='#EEEEEE' onClick=\"document.location='{$ta[2]}'\" style=\"cursor: pointer; cursor: hand;\"></td>\n";
} else {
echo " <td bgcolor='#777777' onClick=\"document.location='{$ta[2]}'\"></td>\n";
echo " <td bgcolor='#777777' onClick=\"document.location='{$ta[2]}'\" style=\"cursor: pointer; cursor: hand;\"></td>\n";
}
$tabscounter++;
}
@ -1616,4 +1616,4 @@ function print_value_list($list, $count = 10, $separator = ",") {
return $list;
}
?>
?>