Solved

joomla tooltip in module

Posted on 2010-09-07
2
393 Views
Last Modified: 2012-08-01
hi, i search many tootip tutorial but none work.. I am writing the tooltip in a php_mod.

please help..

I tried with exactly the exampel given in joomla tutorial as below still nothing display as tooltip.

echo JHTML::tooltip('This is a tooltip attached to text', 'Text Tooltip Title',
                    '', 'Hover on this text to see the tooltip');

I did include JHTML::_('behavior.tooltip') in the header

 source : [http://docs.joomla.org/Tutorial:How_to_add_tooltips_to_your_Joomla!_website]



0
Comment
Question by:bcv2010
2 Comments
 
LVL 7

Accepted Solution

by:
Vimal DM earned 500 total points
Comment Utility
Hai,

try like this,

1)

<?php
echo JHTML::_('tooltip', "This is the Form name, It must be Unique." );
JHTML::tooltip('This is the tooltip text', 'Tooltip title', 'tooltip.png', '', '', false);
?>

2)

<?php $toolTipArray = array('className' => 'custom', 'showDelay'=>'500', 'hideDelay'=>'500', 'fixed'=>'true'
, 'onShow'=>"function(tip) {tip.effect('opacity', {duration: 500, wait: false}).start(0,1)}"
, 'onHide'=>"function(tip) {tip.effect('opacity', {duration: 500, wait: false}).start(1,0)}");
JHTML::_('behavior.tooltip', '.zoomTip', $toolTipArray);
?>
<span class="zoomTip" title="zoomTip Title::This is using class 'zoomTip' using external JS script.">ZoomTip hover text</span>



Thanks.
0
 

Author Comment

by:bcv2010
Comment Utility
2 works but 1 doesn't work..
0

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Here is a tutorial for making your own Joomla templates. Note before reading, you should have some existing knowledge of web development using HTML and CSS. Design Layout: Design your template in a graphics program like Adobe PhotoShop or Corel…
Have you ever wanted to use that sweet jQuery gallery plugin on your Joomla site but couldn't get it working due to jQuery conflicts or your lack of knowledge about what's under the Joomla hood? This article will step you through the process of impl…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now