File:  [NetBSD Developer Wiki] / wikisrc / templates / popup.mdwn
Revision 1.1: download - view: text, annotated - select for diffs
Tue Nov 10 00:29:02 2009 UTC (11 years, 10 months ago) by jym
Branches: MAIN
CVS tags: HEAD
Add the popup template. Appeared in the template directory, but was not yet
added. Wikify and add examples.

<TMPL_UNLESS NAME="mouseover">
## Description

Use this template to create a popup window that is displayed when the mouse
is over part of the page. This template has two parameters:

* *mouseover* - This is the text or other content that triggers the popup.
* *popup* - This should be the content of the popup window. It can be anything, even images or a whole little wiki page, but should not be too large for good usability.

Note that browsers that do not support the CSS will display the popup inline in the page, inside square brackets.

## Examples

Trigger a popup when [[!template id=popup mouseover="hovering this text" popup="Here comes the content of the popup."]]:

        \[[!template id=popup mouseover="hovering this text" popup="Here comes the content of the popup."]]

</TMPL_UNLESS>
<span class="popup"><TMPL_VAR mouseover>
<span class="paren">[</span><span class="balloon"><TMPL_VAR popup></span><span class="paren">]</span>
</span>

CVSweb for NetBSD wikisrc <wikimaster@NetBSD.org> software: FreeBSD-CVSweb