Register New Class For Tooltip Behaviour

geposted am 22.05.2009, in Joomla

This code registers class 'smoothbox' for Joomla's built-in tooltip behaviour:


JHTML::_('behavior.tooltip','.smoothbox'); 

 $tooltips = true;

It produces the following html output:


 <script type="text/javascript">
  window.addEvent('domready', function(){ var JTooltips = new Tips($$('.smoothbox'), { maxTitleChars: 50, fixed: false}); });
  </script>