This is a plugin to generate dynamic Tool Tips in HTML + javascript (mouseover event). This tooltip is based on
http://www.walterzorn.com/tooltip/tooltip_e.htm This plugin provides a
TOOLTIP
Macro that expands into the html and javascript to implement a Tooltip. Also includes the balloon
Simple Skin by Stasiek PÅoski (Homepage:
http://www.flupy.net/stasiek ).
Examples
Parameters
All walterzorn tooltip parameters are allowed and simply passed to the javascript applet. For a complete list refer to
http://www.walterzorn.com/tooltip/tooltip_e.htm Pass the parameters using the standard Foswiki format - Parameter="value". Use of %TOOLTIP{END}% to close the tip text is mandatory.
General Settings
Make any settings changes in your
SitePreferences topic. Prefix the setting with TOOLTIPPLUGIN_ as in TOOLTIPPLUGIN_DEBUG = 1.
This plugin does not read settings from this topic!
- One line description, shown in the TextFormattingRules topic:
- Set SHORTDESCRIPTION = create Tool Tips for links
- Debug plugin: (See output in
data/debug.txt
)
- Bypass Javascript load. Set to 1 if you will manually load the javascript as part of the page templates.
- Force Javascript load. Set to 1 if you want the plugin to add the Javascript to all pages regardles of the presence or absence of a %TOOLTIP
Plugin Installation Instructions
Note: You do not need to install anything on the browser to use this plugin. The following instructions are for the administrator who installs the plugin on the server where Foswiki is running.
- Download the ZIP file from the Plugin web (see below)
- Unzip ToolTipPlugin.zip in your Foswiki installation directory. Content:
File: |
Description: |
data/System/ToolTipPlugin.txt |
Plugin topic |
lib/Foswiki/Plugins/ToolTipPlugin.pm |
Plugin Perl module |
pub/System/ToolTipPlugin/ToolTipBackground.jpg |
sample image |
pub/System/ToolTipPlugin/ToolTipPhoto.gif |
sample image |
pub/System/ToolTipPlugin/wz_tooltip.js |
wz tooltip library |
pub/System/ToolTipPlugin/tip_centerwindow.js |
Support for tip centering |
pub/System/ToolTipPlugin/tip_followscroll.js |
Support for tip to remain stationary as page scrolls behind it. |
pub/System/ToolTipPlugin/tip_balloon.js |
Support for "Balloon" tips |
|
|
pub/System/ToolTipPlugin/balloon/lt.gif |
Images used to build "Balloon Tips" |
pub/System/ToolTipPlugin/balloon/background.gif |
|
pub/System/ToolTipPlugin/balloon/b.gif |
|
pub/System/ToolTipPlugin/balloon/rt.gif |
|
pub/System/ToolTipPlugin/balloon/l.gif |
|
pub/System/ToolTipPlugin/balloon/stemt.gif |
|
pub/System/ToolTipPlugin/balloon/lb.gif |
|
pub/System/ToolTipPlugin/balloon/r.gif |
|
pub/System/ToolTipPlugin/balloon/rb.gif |
|
pub/System/ToolTipPlugin/balloon/t.gif |
|
pub/System/ToolTipPlugin/balloon/stemb.gif |
|
pub/System/ToolTipPlugin/balloon_simple/lt.gif |
Images used to build "Balloon Tips" |
pub/System/ToolTipPlugin/balloon_simple/background.gif |
|
pub/System/ToolTipPlugin/balloon_simple/b.gif |
|
pub/System/ToolTipPlugin/balloon_simple/rt.gif |
|
pub/System/ToolTipPlugin/balloon_simple/l.gif |
|
pub/System/ToolTipPlugin/balloon_simple/stemt.gif |
|
pub/System/ToolTipPlugin/balloon_simple/lb.gif |
|
pub/System/ToolTipPlugin/balloon_simple/r.gif |
|
pub/System/ToolTipPlugin/balloon_simple/rb.gif |
|
pub/System/ToolTipPlugin/balloon_simple/t.gif |
|
pub/System/ToolTipPlugin/balloon_simple/stemb.gif |
|
Note: pub/System/ToolTipPlugin/wz_tooltip.js has been left with the default debug parameter enabled. The script recommends that the parameter be set to false when debugging of tooltips is no longer necessary.
var tt_Debug = true
Note: The images supporting Balloon style tips are stored in sub-directories of the
pub/System/ToolTipPlugin
directory and are not managable from the Foswiki interface.
- Test if the installation was successful:
Testing the plugin
If the javascript is available, the same tooltip is displayed if Plugin is installed and not:
With plugin :
Write: %TOOLTIP{TEXT="Whaoooo !" FONTCOLOR="#336699" TITLE="Nice tooltip, no ?" SHADOW="true" SHADOWCOLOR="#ccaacc" FONTSIZE="18px"}%
put your mouse here, you should see a tooltip
%TOOLTIP{END}
See: put your mouse here, you should see a tooltip
Without plugin :
Write: <a border="0" href="javascript:void(0);" onmouseover="Tip('Whaoooo !', FONTCOLOR, '#336699', TITLE, 'Nice tooltip, no ?', SHADOWCOLOR, '#ccaacc', SHADOW, 'true', FONTSIZE, '18px' )" onmouseout="UnTip()"> put you mouse here, you should see a tooltip <A>
See: put you mouse here, you should see a tooltip . but only if the wz_tooltip.js file has been loaded in the page templates.
Plugin Info
Plugin Author: |
TWiki:Main/PatrickNomblot, Foswiki:Main/GeorgeClark |
Plugin Version: |
1357 (14 Dec 2008) |
Change History: |
|
12 Dec 2008 |
Foswikitask:Item8027: Update to latest javascript code, Foswikitask:Item6013: Convert to registerTagHandler, Foswikitask:Item4485: (untested) - registerTagHandler might address this, not reproduced. Also restructured attachments for balloon tips, and converted to Foswiki name space. |
20 Oct 2008 |
Foswiki:Main/GeorgeClark: Rewrite using registered tag handler. Add support for named section includes. |
2 Oct 2008 |
Foswiki:Main/GeorgeClark: TWikibug:Item6040: Incomplete implementation of a TWiki::Func routine has security implications |
28 Aug 2008 |
Foswiki:Main/GeorgeClark: TWikibug:Item5966: Syntax changed for calling wz_tooltip.js, updated to wz_tooltip.js V5.20, reworked documentation, .js file only included when %TOOLTIP is present in the topic. Also added support for optional extensions for balloon, scrolling and centered tips. |
15 Apr 2006 |
TWiki:Main/SteffenPoulsen: Updated with new version of wz_tooltip.js (updated browser support), support for Dakar, cleaned up doc a bit |
21 Nov 2003 |
TWiki:Main/PatrickNomblot: Initial version |
10 Sep 2004 |
TWiki:Main/PatrickNomblot: tooltip text can comes from any TOPIC |
29 Dec 2005 |
TWiki:Main/AndreUlrich: updated to wz_tooltip.js v. 3.38; added further parameters |
Dependencies: |
None |
Plugin Home: |
http://foswiki.org/Extensions/ToolTipPlugin |
Related Topics: DefaultPreferences,
Plugins
--
TWiki:Main/PatrickNomblot - 21 Nov 2003
%META:FIELD{name="Compatibility" attributes="" title="
Compatibility" %value=""}%
%META:FIELD{name="DevelopedInSVN" attributes="" title="DevelopedInSVN" %value="Yes"}%
%META:FIELD{name="ModificationPolicy" attributes="" title="ModificationPolicy" %value="PleaseFeelFreeToModify"}%