Solved

joomla tooltip in module

Posted on 2010-09-07
2
397 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Change Joomla Logo Graphic This tutorial goes over the steps to change the Joomla Logo in the template you are using. For this example we will be assuming you are using the rhuk_milkyway Joomla Template which is installed by default. You will …
Welcome Friends, This is the tutorial for how to create new simple module in joomla 1.5. In the module has two important files. One is XML file and another file is PHP controller file. First you need to create the XML file. (CODE) …
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

752 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