XYTipsWindow 可用來建立文字、圖片或 iframe 彈出層。透過 Util.Dialog 設定不同 content,即可顯示各種類型內容。
Util.Dialog({
title: "純文本內容",
content: "text:文字"
});
Util.Dialog({
boxID: "keleyiImg",
title: "桌面壁紙",
fixed: true,
content: "img:https:///keleyi/pmedia/keleyimenu.png"
});
Util.Dialog({
title: "彈出框架",
content: "iframe:https:///keleyi/phtml/keleyijquerymenu.htm"
});
使用時需先載入 XY_Base.js 與 XY_Dialog.js,並透過 Util.loadJS 動態載入對話框腳本。