コード例 #1
0
 /**
  * Custom tooltip method
  * When no href ( or '#') is given, the icon will become a link to a
  * js alert box
  */
 function mosToolTip($tooltip, $title = '', $width = '', $image = 'tooltip.png', $text = '', $href = '#', $link = 1)
 {
     if ($href == '#' or $href == '') {
         $alert = strip_tags(DOCMAN_Utils::br2nl($tooltip));
         $href = "javascript:alert('" . $alert . "');";
     }
     return mosToolTip($tooltip, $title, $width, $image, $text, $href, $link);
 }