代码拉取完成,页面将自动刷新
/**
* iframe - jQuery EasyUI
*
* Licensed under the GPL:
* http://www.gnu.org/licenses/gpl.txt
*
* Copyright 2013 tavenli [ tavenli@qq.com ]
* 基于Easy UI扩展实现的IFRAME弹出框
*
* Dependencies:
* draggable
* resizable
* linkbutton
* panel
* window
*/
(function($){
$.iframe = {
win: function(options) {
var opts = $.extend({
width: 300,
height: 'auto',
title: 'New IFrame Window',
url:'',
maximizable:false,
minimizable:false,
resizable:false,
modal: true,
onClosed:function(){}
}, options || {});
$.iframe.data.onClosed = opts.onClosed;
var content = ''
+ '<iframe scrolling="yes" frameborder="0" style="width:'+opts.width+'px;height:'+opts.height+'px;" src="'+ opts.url +'"></iframe>'
+ '<div style="clear:both;"/>';
var win = $('<div class="messager-body"></div>').appendTo('body');
win.append(content);
win.window({
title: opts.title,
width: opts.width,
height: opts.height,
modal: opts.modal,
collapsible: false,
minimizable: opts.minimizable,
maximizable: opts.maximizable,
resizable: opts.resizable,
onClose: function(){
setTimeout(function(){
win.window('destroy');
$.iframe.data.onClosed();
}, 100);
}
});
$.iframe.data.win = win;
return win;
},
maximize:function(){
var _win = $.iframe.data.win;
_win.window("maximize");
//
this.resizeFresh();
},
minimize:function(){
$.iframe.data.win.window("minimize");
this.resizeFresh();
},
restore:function(){
$.iframe.data.win.window("restore");
},
resizeFresh:function(){
var _win = $.iframe.data.win;
var iframe = _win.find("iframe");
iframe.css({width:_win.css("width"),height:_win.css("height")});
},
close:function(){
var win = $.iframe.data.win;
if(win){
win.window('destroy');
$.iframe.data.onClosed();
}
}
};
$.iframe.data = {
win:null,
onClosed:function(){}
};
})(jQuery);
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。