亚洲国产日韩欧美一区二区三区,精品亚洲国产成人av在线,国产99视频精品免视看7,99国产精品久久久久久久成人热,欧美日韩亚洲国产综合乱

directory search
Smarty模板編譯引擎 I.開始 第一章. 什么是Smarty? 第二章. 安裝 要求 基本安裝 擴展設置 II.模板設計者篇 第三章.基本語法 注釋 函數(shù) 屬性 第四章.變量 從PHP分配的變量 Associative arrays Array indexes Objects 從配置文件讀取的變量 {$smarty}保留變量 Request variables {$smarty.now} {$smarty.const} {$smarty.capture} {$smarty.config} {$smarty.section} {$smarty.template} 第五章.變量調節(jié)器 capitalize count_characters cat count_paragraphs count_sentences count_words date_format default escape indent lower nl2br regex_replace replace spacify string_format strip strip_tags truncate upper wordwrap 第六章.組合修改器 第七章.內建函數(shù) capture config_load foreach include include_php insert if ldelim literal php section index index_prev index_next iteration first last rownum loop show total strip 第八章.自定義函數(shù) assign counter cycle debug eval fetch html_checkboxes html_image html_options html_radios html_select_date html_select_time html_table math mailto popup_init popup textformat 第九章.配置文件 第十章.調試控制臺 III.模板程序員篇 第十一章 常量 SMARTY_DIR 第十二章 變量 $template_dir $compile_dir $config_dir $plugins_dir $debugging $debug_tpl $debugging_ctrl $global_assign $undefined $autoload_filters $compile_check $force_compile $caching $cache_dir $cache_lifetime $cache_handler_func $cache_modified_check $config_overwrite $config_booleanize $config_read_hidden $config_fix_newlines $default_template_handler_func $php_handling $security $secure_dir $security_settings $trusted_dir $left_delimiter $right_delimiter $compiler_class $request_vars_order $compile_id $use_sub_dirs $default_modifiers $default_resource_type 第十三章.方法 append append_by_ref assign assign_by_ref clear_all_assign clear_all_cache clear_assign clear_cache clear_compiled_tpl clear_config config_load display fetch get_config_vars get_registered_object get_template_vars is_cached load_filter register_block register_compiler_function register_function register_modifier register_object register_outputfilter register_postfilter register_prefilter register_resource trigger_error template_exists unregister_block unregister_compiler_function unregister_function unregister_modifier unregister_object unregister_outputfilter unregister_postfilter unregister_prefilter unregister_resource 第十四章.緩存 Setting Up Caching Multiple Caches Per Page Cache Groups Controlling Cacheability of Plugins' Output 第十五章.高級特點 Objects Prefilters Postfilters Output Filters Cache Handler Function Resources Templates from $template_dir Templates from any directory Templates from other sources Default template handler function 第十六章.以插件擴展Smarty How Plugins Work Naming Conventions Writing Plugins Template Functions Modifiers Block Functions Compiler Functions Prefilters/Postfilters Output Filters Resources Inserts Ⅳ.高級特點 第十七章.疑難解答 Smarty/PHP errors 第18章.使用技巧和經驗 Blank Variable Handling Default Variable Handling Passing variable title to header template Dates WAP/WML Componentized Templates Obfuscating E-mail Addresses 第十九章. 相關資源 第二十章. 漏洞
characters

popup

Attribute Name Type Required Default Description
text string Yes n/a the text/html to display in the popup window
trigger string No onMouseOver What is used to trigger the popup window. Can be one of onMouseOver or onClick
sticky boolean No false Makes the popup stick around until closed
caption string No n/a sets the caption to title
fgcolor string No n/a color of the inside of the popup box
bgcolor string No n/a color of the border of the popup box
textcolor string No n/a sets the color of the text inside the box
capcolor string No n/a sets color of the box's caption
closecolor string No n/a sets the color of the close text
textfont string No n/a sets the font to be used by the main text
captionfont string No n/a sets the font of the caption
closefont string No n/a sets the font for the "Close" text
textsize string No n/a sets the size of the main text's font
captionsize string No n/a sets the size of the caption's font
closesize string No n/a sets the size of the "Close" text's font
width integer No n/a sets the width of the box
height integer No n/a sets the height of the box
left boolean No false makes the popups go to the left of the mouse
right boolean No false makes the popups go to the right of the mouse
center boolean No false makes the popups go to the center of the mouse
above boolean No false makes the popups go above the mouse. NOTE: only possible when height has been set
below boolean No false makes the popups go below the mouse
border integer No n/a makes the border of the popups thicker or thinner
offsetx integer No n/a how far away from the pointer the popup will show up, horizontally
offsety integer No n/a how far away from the pointer the popup will show up, vertically
fgbackground url to image No n/a defines a picture to use instead of color for the inside of the popup.
bgbackground url to image No n/a defines a picture to use instead of color for the border of the popup. NOTE: You will want to set bgcolor to "" or the color will show as well. NOTE: When having a Close link, Netscape will re-render the table cells, making things look incorrect
closetext string No n/a sets the "Close" text to something else
noclose boolean No n/a does not display the "Close" text on stickies with a caption
status string No n/a sets the text in the browsers status bar
autostatus boolean No n/a sets the status bar's text to the popup's text. NOTE: overrides status setting
autostatuscap string No n/a sets the status bar's text to the caption's text. NOTE: overrides status and autostatus settings
inarray integer No n/a tells overLib to read text from this index in the ol_text array, located in overlib.js. This parameter can be used instead of text
caparray integer No n/a tells overLib to read the caption from this index in the ol_caps array
capicon url No n/a displays the image given before the popup caption
snapx integer No n/a snaps the popup to an even position in a horizontal grid
snapy integer No n/a snaps the popup to an even position in a vertical grid
fixx integer No n/a locks the popups horizontal position Note: overrides all other horizontal placement
fixy integer No n/a locks the popups vertical position Note: overrides all other vertical placement
background url No n/a sets image to be used instead of table box background
padx integer,integer No n/a pads the background image with horizontal whitespace for text placement. Note: this is a two parameter command
pady integer,integer No n/a pads the background image with vertical whitespace for text placement. Note: this is a two parameter command
fullhtml boolean No n/a allows you to control the html over a background picture completely. The html code is expected in the "text" attribute
frame string No n/a controls popups in a different frame. See the overlib page for more info on this function
timeout string No n/a calls the specified javascript function and takes the return value as the text that should be displayed in the popup window
delay integer No n/a makes that popup behave like a tooltip. It will popup only after this delay in milliseconds
hauto boolean No n/a automatically determine if the popup should be to the left or right of the mouse.
vauto boolean No n/a automatically determine if the popup should be above or below the mouse.

屬性 類型 是否必須 缺省值 描述
text string Yes n/a 彈出窗口中要顯示的內容,文本或超文本
trigger string No onMouseOver 觸發(fā)彈出窗口的條件,可選擇onMouseOver(鼠標經過)或onClick(鼠標單擊)
sticky boolean No false 彈出窗口始終顯示,直到關閉
caption string No n/a 標題文本內容
fgcolor string No n/a 彈出窗口內部顏色
bgcolor string No n/a 彈出窗口邊框顏色
textcolor string No n/a 彈出窗口內部文字顏色
capcolor string No n/a 彈出窗口標題顏色
closecolor string No n/a 設置"關閉"文本信息的顏色
textfont string No n/a 設置內容文本使用的字體類型
captionfont string No n/a 設置標題文本的字體
closefont string No n/a 設置"關閉"文本信息的字體類型
textsize string No n/a 設置內容文本使用的字體大小
captionsize string No n/a 設置標題文本使用的字體大小
closesize string No n/a 設置"關閉"文本信息的字體大小
width integer No n/a sets the width of the box設置寬度
height integer No n/a sets the height of the box設置高度
left boolean No false 使彈出窗口位于鼠標左側
right boolean No false 使彈出窗口位于鼠標右側
center boolean No false

使彈出窗口的中間位置和鼠標位置重合

above boolean No false 使彈出窗口位于鼠標上側. 注: 僅在設置了height屬性時有效
below boolean No false 使彈出窗口位于鼠標下側
border integer No n/a 決定彈出窗口的邊框厚度
offsetx integer No n/a 橫向顯示位置偏移量
offsety integer No n/a 縱向顯示位置偏移量
fgbackground url to image No n/a 使用背景圖片代替背景顏色
bgbackground url to image No n/a

使用背景圖片代替邊框顏色. 注1: 必須設置bgcolor為"",邊框顏色才不會顯示. 注2: 當有關閉鏈接時,Netscape會重新渲染表格,看起來可能會有點問題.

closetext string No n/a 自定義關閉鏈接顯示文本
noclose boolean No n/a 不顯示關閉鏈接
status string No n/a 設置狀態(tài)欄顯示的文本
autostatus boolean No n/a 設置彈出窗口狀態(tài)欄顯示的文本為當前窗口狀態(tài)欄顯示的文本. 注: 該設置將覆蓋status的設置
autostatuscap string No n/a 設置狀態(tài)欄顯示的文本為標題欄顯示的信息. 注: 該設置將覆蓋status和autostatus設置
inarray integer No n/a 該屬性告訴overLib在ol_text數(shù)組中讀該屬性指定的索引的元素到text中. 該屬性可以代替text屬性
caparray integer No n/a 該屬性告訴overLib在ol_caps數(shù)組中讀該屬性指定的索引的元素到caption中.
capicon url No n/a 彈出前先顯示該圖象
snapx integer No n/a 橫向將彈出窗口附著于指定位置
snapy integer No n/a 縱向將彈出窗口附著于指定位置
fixx integer No n/a 鎖定彈出窗口的橫向位置. 注: 該設置將覆蓋其它橫向設置
fixy integer No n/a 鎖定彈出窗口的縱向位置. 注: 該設置將覆蓋其它縱向設置
background url No n/a 設置圖象作為輸出表格區(qū)塊的背景
padx integer,integer No n/a 在背景圖象后附加橫向空白. 注: 該屬性有兩個參數(shù)
pady integer,integer No n/a 在背景圖象后附加縱向空白. 注: 該屬性有兩個參數(shù)
fullhtml boolean No n/a 允許用戶完全控制背景圖片上的HTML. HTML代碼位于"text"屬性中
frame string No n/a 控制彈出窗口在不同的框架中. 關于此函數(shù)更多詳細信息,請查閱overlib文檔.
timeout string No n/a 調用特定javascript腳本函數(shù),將返回值顯示在彈出窗口中.
delay integer No n/a 使得彈出窗口像一個工具提示,窗口將顯示到該屬性指定的時間(毫秒)
hauto boolean No n/a 自動決定彈出窗口位于鼠標的左側或右側.
vauto boolean No n/a 自動決定彈出窗口位于鼠標的上側或下側.

popup is used to create javascript popup windows.

popup 用于創(chuàng)建javascript彈出窗口.

Example 8-17. popup
例 8-17. popup 函數(shù)演示

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

{* create a link with a popup window when you move your mouse over *}
<A href="mypage.html" {popup text="This link takes you to my page!"}>mypage</A>

{* you can use html, links, etc in your popup text *}
<A href="mypage.html" {popup sticky=true caption="mypage contents"
text="<UL><LI>links<LI>pages<LI>images</UL>" snapx=10 snapy=10}>mypage</A>
Previous article: Next article: