Files
smarty/docs/en/designers/language-custom-functions/language-function-popup-init.xml

54 lines
1.6 KiB
XML

<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision$ -->
<sect1 id="language.function.popup.init">
<title>{popup_init}</title>
<para>
<link linkend="language.function.popup">{popup}</link>
is an integration of
<ulink url="&url.overLib;">overLib</ulink>, a library used for popup
windows. These are used for context sensitive information, such as
help windows or tooltips.{popup_init} must be called once at the
top of any page you plan on using the
<link linkend="language.function.popup">{popup}</link> function.
<ulink url="&url.overLib;">overLib</ulink>
was written by Erik Bosrup, and the homepage is located at
<ulink url="&url.overLib;">&url.overLib;</ulink>.
</para>
<para>
As of Smarty version 2.1.2, overLib does NOT come with the release.
Download overLib, place the 'overlib.js' file under your document
root and supply the relative path to this file as the "src"
parameter to {popup_init}.
</para>
<example>
<title>popup_init</title>
<programlisting>
<![CDATA[
<head>
{* popup_init must be called once at the top of the page *}
{popup_init src="/javascripts/overlib.js"}
</head>
]]>
</programlisting>
</example>
</sect1>
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
sgml-omittag:t
sgml-shorttag:t
sgml-minimize-attributes:nil
sgml-always-quote-attributes:t
sgml-indent-step:1
sgml-indent-data:t
indent-tabs-mode:nil
sgml-parent-document:nil
sgml-default-dtd-file:"../../../../manual.ced"
sgml-exposed-tags:nil
sgml-local-catalogs:nil
sgml-local-ecat-files:nil
End:
vim600: syn=xml fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml
vi: ts=1 sw=1
-->