?
このドキュメントでは、 php中國(guó)語ネットマニュアル リリース
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 | 彈出窗口中要顯示的內(nèi)容,文本或超文本 |
trigger | string | No | onMouseOver | 觸發(fā)彈出窗口的條件,可選擇onMouseOver(鼠標(biāo)經(jīng)過)或onClick(鼠標(biāo)單擊) |
sticky | boolean | No | false | 彈出窗口始終顯示,直到關(guān)閉 |
caption | string | No | n/a | 標(biāo)題文本內(nèi)容 |
fgcolor | string | No | n/a | 彈出窗口內(nèi)部顏色 |
bgcolor | string | No | n/a | 彈出窗口邊框顏色 |
textcolor | string | No | n/a | 彈出窗口內(nèi)部文字顏色 |
capcolor | string | No | n/a | 彈出窗口標(biāo)題顏色 |
closecolor | string | No | n/a | 設(shè)置"關(guān)閉"文本信息的顏色 |
textfont | string | No | n/a | 設(shè)置內(nèi)容文本使用的字體類型 |
captionfont | string | No | n/a | 設(shè)置標(biāo)題文本的字體 |
closefont | string | No | n/a | 設(shè)置"關(guān)閉"文本信息的字體類型 |
textsize | string | No | n/a | 設(shè)置內(nèi)容文本使用的字體大小 |
captionsize | string | No | n/a | 設(shè)置標(biāo)題文本使用的字體大小 |
closesize | string | No | n/a | 設(shè)置"關(guān)閉"文本信息的字體大小 |
width | integer | No | n/a | sets the width of the box設(shè)置寬度 |
height | integer | No | n/a | sets the height of the box設(shè)置高度 |
left | boolean | No | false | 使彈出窗口位于鼠標(biāo)左側(cè) |
right | boolean | No | false | 使彈出窗口位于鼠標(biāo)右側(cè) |
center | boolean | No | false |
使彈出窗口的中間位置和鼠標(biāo)位置重合 |
above | boolean | No | false | 使彈出窗口位于鼠標(biāo)上側(cè). 注: 僅在設(shè)置了height屬性時(shí)有效 |
below | boolean | No | false | 使彈出窗口位于鼠標(biāo)下側(cè) |
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: 必須設(shè)置bgcolor為"",邊框顏色才不會(huì)顯示. 注2: 當(dāng)有關(guān)閉鏈接時(shí),Netscape會(huì)重新渲染表格,看起來可能會(huì)有點(diǎn)問題. |
closetext | string | No | n/a | 自定義關(guān)閉鏈接顯示文本 |
noclose | boolean | No | n/a | 不顯示關(guān)閉鏈接 |
status | string | No | n/a | 設(shè)置狀態(tài)欄顯示的文本 |
autostatus | boolean | No | n/a | 設(shè)置彈出窗口狀態(tài)欄顯示的文本為當(dāng)前窗口狀態(tài)欄顯示的文本. 注: 該設(shè)置將覆蓋status的設(shè)置 |
autostatuscap | string | No | n/a | 設(shè)置狀態(tài)欄顯示的文本為標(biāo)題欄顯示的信息. 注: 該設(shè)置將覆蓋status和autostatus設(shè)置 |
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 | 橫向?qū)棾龃翱诟街谥付ㄎ恢?/td> |
snapy | integer | No | n/a | 縱向?qū)棾龃翱诟街谥付ㄎ恢?/td> |
fixx | integer | No | n/a | 鎖定彈出窗口的橫向位置. 注: 該設(shè)置將覆蓋其它橫向設(shè)置 |
fixy | integer | No | n/a | 鎖定彈出窗口的縱向位置. 注: 該設(shè)置將覆蓋其它縱向設(shè)置 |
background | url | No | n/a | 設(shè)置圖象作為輸出表格區(qū)塊的背景 |
padx | integer,integer | No | n/a | 在背景圖象后附加橫向空白. 注: 該屬性有兩個(gè)參數(shù) |
pady | integer,integer | No | n/a | 在背景圖象后附加縱向空白. 注: 該屬性有兩個(gè)參數(shù) |
fullhtml | boolean | No | n/a | 允許用戶完全控制背景圖片上的HTML. HTML代碼位于"text"屬性中 |
frame | string | No | n/a | 控制彈出窗口在不同的框架中. 關(guān)于此函數(shù)更多詳細(xì)信息,請(qǐng)查閱overlib文檔. |
timeout | string | No | n/a | 調(diào)用特定javascript腳本函數(shù),將返回值顯示在彈出窗口中. |
delay | integer | No | n/a | 使得彈出窗口像一個(gè)工具提示,窗口將顯示到該屬性指定的時(shí)間(毫秒) |
hauto | boolean | No | n/a | 自動(dòng)決定彈出窗口位于鼠標(biāo)的左側(cè)或右側(cè). |
vauto | boolean | No | n/a | 自動(dòng)決定彈出窗口位于鼠標(biāo)的上側(cè)或下側(cè). |
popup is used to create javascript popup windows.
popup 用于創(chuàng)建javascript彈出窗口.
Example 8-17. popup
|