Solved

joomla tooltip in module

Posted on 2010-09-07
2
395 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
ID: 33635001
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
ID: 33751840
2 works but 1 doesn't work..
0

Featured Post

Are your AD admin tools letting you down?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

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…
What you will need: Any version of Photoshop or similar product (examples in Photoshop) Internet Access FTP Access to your joomla install or ability to upload images within joomla administrator backend Create Image: Lets start off with cre…
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.
In a recent question (https://www.experts-exchange.com/questions/28997919/Pagination-in-Adobe-Acrobat.html) here at Experts Exchange, a member asked how to add page numbers to a PDF file using Adobe Acrobat XI Pro. This short video Micro Tutorial sh…

770 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