Ⅰ popUp的實現方法
popup is used to create javascript popup windows.
popup 用於創建javascript彈出窗口.
{* 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>
方法:屬性 類型 是否必須 預設值 描述
text string Yes n/a 彈出窗口中要顯示的內容,文本或超文本
trigger string No onMouseOver 觸發彈出窗口的條件,可選擇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 設置狀態欄顯示的文本
autostatus boolean No n/a 設置彈出窗口狀態欄顯示的文本為當前窗口狀態欄顯示的文本. 注: 該設置將覆蓋status的設置
autostatuscap string No n/a 設置狀態欄顯示的文本為標題欄顯示的信息. 注: 該設置將覆蓋status和autostatus設置
inarray integer No n/a 該屬性告訴overLib在ol_text數組中讀該屬性指定的索引的元素到text中. 該屬性可以代替text屬性
caparray integer No n/a 該屬性告訴overLib在ol_caps數組中讀該屬性指定的索引的元素到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 設置圖象作為輸出表格區塊的背景
padx integer,integer No n/a 在背景圖象後附加橫向空白. 注: 該屬性有兩個參數
pady integer,integer No n/a 在背景圖象後附加縱向空白. 注: 該屬性有兩個參數
fullhtml boolean No n/a 允許用戶完全控制背景圖片上的HTML. HTML代碼位於"text"屬性中
frame string No n/a 控制彈出窗口在不同的框架中. 關於此函數更多詳細信息,請查閱overlib文檔.
timeout string No n/a 調用特定javascript腳本函數,將返回值顯示在彈出窗口中.
delay integer No n/a 使得彈出窗口像一個工具提示,窗口將顯示到該屬性指定的時間(毫秒)
hauto boolean No n/a 自動決定彈出窗口位於滑鼠的左側或右側.
vauto boolean No n/a 自動決定彈出窗口位於滑鼠的上側或下側.