popup_init

popup is an integration of overLib, 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 popup function. overLib was written by Erik Bosrup, and the homepage is located at http://www.bosrup.com/web/overlib/.

popup 是 overLib 的完成版,是跳出視窗的程式庫,使用在上下脈絡有關聯的資訊, 如幫助視窗(help window)或是工具提示(tooltip)。如果你想使用 popup 函式的話,popup_init 在程式的一開始就要被呼叫。overLib 是由 Erik Bosrup 所撰寫的, 他的首頁在 http://www.bosrup.com/web/overlib/。

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.

在 Smarty 2.1.2版時,overLib 還沒發行。所以請下載 overLib,然後將 overlib.js 檔案放在你的根目錄下,並將相對應於使用的樣版檔案的檔案位置設定在 popup_init 的 "src" 參數。

Example 8-16. popup_init

{* popup_init must be called once at the top of the page *}
{popup_init src="/javascripts/overlib.js"}