Add fancy help cursors on help icons

This commit is contained in:
moodler
2003-11-06 11:47:23 +00:00
parent 8b68eb7ebc
commit 7fc0f9e5e4
+5 -3
View File
@@ -1588,12 +1588,14 @@ function helpbutton ($page, $title="", $module="moodle", $image=true, $linktext=
if ($image) {
$icon = "$CFG->pixpath/help.gif";
if ($linktext) {
$linkobject = "$title<img align=\"absmiddle\" border=\"0\" height=\"17\" width=\"22\" alt=\"\" src=\"$icon\" />";
$linkobject = "<span style=\"cursor:help;\">$title<img align=\"absmiddle\" border=\"0\" ".
" height=\"17\" width=\"22\" alt=\"\" src=\"$icon\" /></span>";
} else {
$linkobject = "<img align=\"absmiddle\" border=\"0\" height=\"17\" width=\"22\" alt=\"$title\" src=\"$icon\" />";
$linkobject = "<img align=\"absmiddle\" border=\"0\" height=\"17\" width=\"22\" ".
" alt=\"$title\" style=\"cursor:help;\" src=\"$icon\" />";
}
} else {
$linkobject = $title;
$linkobject = "<span style=\"cursor:help;\">$title</span>";
}
if ($text) {
$url = "/help.php?module=$module&amp;text=".htmlentities(urlencode($text));