easyui-window用例

来源:互联网 发布:杭州行知中学学生档案 编辑:程序博客网 时间:2024/05/18 01:50
function openEasyWin11(f, i, a, d, k, c, j, n) {
            var iframeName= 'ifrmComWin';
            if (typeof (n) != "undefined" && n != null) {
                iframeName = n;
            }
            var e = (screen.availWidth - d) / 2;
            var g = (screen.availHeight - k) / 2;
            var winHeight = k - 65;
            var b = '<div id="'
                    + f
                    + '" class="easyui-window" modal="true" draggable="true" resizable="false"  collapsible="false" minimizable="false" maximizable="true" style="top:100px;300px;width:400px;height:300px;padding:0px;background:#fafafa;overflow:visible;" closed="true" ><Iframe id="'+iframeName+'" name="'+iframeName+'" style="width:100%;height:'
                    + winHeight + 'px;" src="'
                    + a
                    + '"  frameborder="0"></iframe></div>';
            $(b).appendTo(window.top.document.body);
            window.top.$('#telDis').window({
                title : i,
                showType : "slide",
                onClose : function() {
                    h.window("destroy");
                    if (typeof (c) != "undefined" && c != null) {
                        if (c) {
                            document.forms[0].submit()
                        } else {
                            if (typeof (j) != "undefined" && j != null) {
                                document.getElementById(j).onclick()
                            }
                        }
                    }
                },
                width : d,
                height : k,
                shadow : false,
                closed : false,
                top : g,
                left : e
            });
        }
0 0
原创粉丝点击