rexseePopupWindow
返回手册目录
【函数】void show(String url, String style)
【函数】void show(String url, String style, String clickCallback)
【函数】void show(String id, String url, String style, String clickCallback)
【说明】显示包含浏览器的弹出窗口。
【返回】
【参数】 id:字符串,该弹出窗口的id,应该是唯一的,如果未传递,将使用url作为id。

url:字符串,如果是合法的地址,则显示地址指向的网页,否则将该字符串显示在浏览器中(可以使用完整的HTML文本,包括图片,但图片需要下载,可能会影响显示速度)。注意,如果未传递id,该url也是该弹出窗口的id,在以后的操作中,即使窗口的实际url发生变化,该id也是不会变化的。

style:样式表。

clickCallback:点击时的动作,如果为空,表示点击时没有动作。注意,该参数只在窗口设为可移动模式时有效(样式movable设为true)。

【示例】 在可以移动、自动消失的弹出窗口中载入HTML
rexseePopupWindow.show('<img src=\'http://www.rexsee.com/images/icon.png\'><br>This is a test of window: <br><span style=\'color: red;font-size:20px;\'>复杂的对话框</span>','window-auto-hide:3;window-moveable:true;window-style:light;width:240;height:180;border-width:0px;','http://www.sina.com.cn');
运行示例
在可以移动、自动消失的弹出窗口中载入网页
rexseePopupWindow.show('http://www.rexsee.com/CN/ajaxTest.php','browser-progress-dialog:visible;window-moveable:true;window-cancelable:false;window-auto-hide:5;window-modeless:true;window-dim-amount:0;window-style:dark;background-color:transparent;window-animation:right;border-width:0px;window-align:center;window-vertical-align:middle;width:200;height:300;','javascript:alert(\'点击了!\');');
运行示例
在不能移动、可以取消的弹出窗口中载入网页
rexseePopupWindow.show('http://www.rexsee.com/CN/help/index.php','browser-progress-dialog:visible;border-width:5px;border-color:#0000FF;window-align:center;window-vertical-align:middle;window-style:light;width:200;height:300;window-modeless:true;');
运行示例

【函数】void dismiss(String id)
【说明】隐藏id指向的弹出窗口。
【返回】
【参数】id:弹出窗口的id。
【示例】
rexseePopupWindow.dismiss('http://www.rexsee.com/CN/help/index.php');
运行示例

【函数】void dismissAll()
【说明】隐藏当前所有弹出窗口。
【返回】
【参数】
【示例】
rexseePopupWindow.dismissAll();
运行示例

【函数】void load(String id, String url)
【说明】在id指向的弹出窗口中载入url。
【返回】
【参数】id:弹出窗口的id。
url:url地址或JS代码等。
【示例】
rexseePopupWindow.load('http://www.rexsee.com/CN/help/index.php','http://www.rexsee.com/EN/help/index.php');
运行示例

【函数】void loadHTML(String id, String html)
【说明】在id指向的弹出窗口中载入HTML代码。
【返回】
【参数】id:弹出窗口的id。
html:html代码。
【示例】
rexseePopupWindow.loadHTML('http://www.rexsee.com/CN/help/index.php','测试代码');
运行示例

【函数】void setStyle(String id, String style)
【说明】设置弹出窗口的样式。
【返回】
【参数】 id:字符串,弹出窗口的id。

style:样式表。
【示例】
rexseePopupWindow.setStyle('http://www.rexsee.com/CN/help/index.php','width:300px;');
运行示例

【函数】String getStyle(String id, String name)
【说明】读取弹出窗口的样式。
【返回】样式的值。
【参数】 id:字符串,弹出窗口的id。

name:样式名称。
【示例】
alert(rexseePopupWindow.getStyle('http://www.rexsee.com/CN/help/index.php','width'));
运行示例

【函数】boolean exists(String id)
【说明】判断弹出窗口是否存在。
【返回】true或false。
【参数】id:字符串,弹出窗口的id。
【示例】
alert(rexseePopupWindow.exists('http://www.rexsee.com/CN/help/index.php'));
运行示例

【函数】int size()
【说明】弹出窗口的个数。
【返回】弹出窗口的个数。
【参数】
【示例】
alert(rexseePopupWindow.size());
运行示例

【函数】JsonArray getIds()
【说明】弹出窗口的ID。
【返回】Json数组,用eval('('+json')')转换为JavaScript数组。
【参数】
【示例】
alert(rexseePopupWindow.getIds());
运行示例
返回手册目录