Mouseover text popups

  • Thread starter Thread starter Fudzy
  • Start date Start date
F

Fudzy

Guest
I'm helping a mate put together a website. We're using Joomla and he wants a feature where if you roll your mouse over certain words in an article a little textbox pops up with the definition of that work and maybe a link in it. I've seen this used on some sites to link words with advertising. I want to use it for something a bit more useful.

Any suggestions idea? A Joomla plugin would be win.

Thanks.
 
I dunno if there are Joomla plug-ins available for it, but you could do it with a few simple Javascript functions... You could just wrap the words to "highlight" in a <span> with associated onmouseover and onmouseout events. You could even attach script that scans any document for certain words, wraps a <span> around them and links the necessary events.
 
Yeah in a normal situation that is what I would do but I'm looking for something a little more turnkey, if you've had any experience with Joomla you get things which are called mambots which are like tags you can include to do useful things. Just haven't seen one to do this specific function but have seen it on quite a few sites ... my problem is I cannot for the life of me find or remember one of the sites that do now :(
 
To anyone else interested in using this plugin. If you get something saying :


Code:
Warning: require_once(.../administrator/components/com_glossary/cmsapi.interface.php) [function.require-once]: failed to open stream: No such file or directory in .../plugins/content/definitionbot.php on line 31

Fatal error: require_once() [function.require]: Failed opening required '.../administrator/components/com_glossary/cmsapi.interface.php' (include_path='.:/usr/share/php:..') in .../plugins/content/definitionbot.php on line 31

Change lines 31/32 of /plugins/content/definitionbot.php from:

Code:
require_once(JPATH_BASE.'/components/com_glossary/cmsapi.interface.php');
require_once(JPATH_BASE.'/components/com_glossary/markdown/markdown.php');

To this:

Code:
require_once(str_replace('administrator/','',JPATH_BASE.'/components/com_glossary/cmsapi.interface.php'));
require_once(str_replace('administrator/','',JPATH_BASE.'/components/com_glossary/markdown/markdown.php'));

From here - http://remository.com/forum/func,view/id,12243/catid,12/
 
Thanks, but I'm trying desperately to become a Drupal-lite. Surveys show it's the number one requested CMS/skill for freelancers.
 
Whenever I do freelance work, I try to convince potential clients that a custom-built solution is the way to go. I can then focus on building a site that caters for THEIR needs, leaving room for some flexibility. I'm not a big fan of generic CMS sites. They all look so, well, samey.
 
Top
Sign up to the MyBroadband newsletter
X