Files
smarty/docs/en/designers/language-custom-functions/language-function-popup-init.xml
2006-09-26 02:02:55 +00:00

76 lines
2.1 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"><varname>{popup}</varname></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.
</para>
<itemizedlist>
<listitem><para>
<varname>{popup_init}</varname> must be called
<emphasis>only once</emphasis>, preferably within the &lt;head&gt; tag
within any page you plan on using the <link linkend="language.function.popup">
<varname>{popup}</varname></link> function.
</para></listitem>
<listitem><para>
The path is relative to the executing script or a fully qualified domain
path, ie not the relative to the template.
</para></listitem>
<listitem><para>
<ulink url="&url.overLib;">overLib</ulink> is written and maintained by
Erik Bosrup, and the homepage/download is at
<ulink url="&url.overLib;">&url.overLib;</ulink>.
</para></listitem>
</itemizedlist>
<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/overlib.js'}
{* fully qualified url example *}
{popup_init src='http://myserver.org/my_js_libs/overlib/overlib.js'}
</head>
// the first example will output
<head>
<div id="overDiv" style="position:absolute; visibility:hidden; z-index:1000;"></div>
<script type="text/javascript" language="JavaScript" src="javascripts/overlib/overlib.js"></script>
</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
-->