]> git.mjollnir.org Git - moodle.git/commitdiff
Add fancy help cursors on help icons
authormoodler <moodler>
Thu, 6 Nov 2003 11:47:23 +0000 (11:47 +0000)
committermoodler <moodler>
Thu, 6 Nov 2003 11:47:23 +0000 (11:47 +0000)
lib/weblib.php

index e5d41b017df3390ce18e2edebe62ff2d6a605d44..6bb5ea2f41da29427134efe500b87b59d4802d96 100644 (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));