标签:style blog http io color ar os sp div
easyui的window插件再次封装
代码:
/** * easyui的window插件再次封装 * 2014年11月10日 */ SimpoWin = { showWin: function showWindow(title, url, width, height) { if (!top.SimpoWinId) top.SimpoWinId = 0; var divId = "simpoWin" + top.SimpoWinId; top.$("body").append(‘<div id="‘ + divId + ‘"></div>‘); top.$(‘#‘ + divId).window({ modal: true, title: title, width: width, height: height, collapsible: false, minimizable: false, maximizable: false, content: function () { return ‘<iframe frameborder="0" src="‘ + url + ‘" style="width: ‘ + (width - 14).toString() + ‘px; height: ‘ + (height - 39).toString() + ‘px; margin: 0;">‘; }, onClose: function () { top.SimpoWinId--; top.SimpoParentWin.pop(); } }).window(‘open‘); top.SimpoWinId++; if (!top.SimpoParentWin) top.SimpoParentWin = new Array(); top.SimpoParentWin.push(window); }, closeWin: function () { var divId = "simpoWin" + (top.SimpoWinId - 1).toString(); top.$(‘#‘ + divId).window(‘close‘); }, GetWinParent: function () { return top.SimpoParentWin[top.SimpoParentWin.length - 1]; } }
标签:style blog http io color ar os sp div
原文地址:http://www.cnblogs.com/s0611163/p/4089346.html