本文實例講述了jQuery插件EasyUI實現Layout框架頁面中彈出窗體到最頂層效果。分享給大家供大家參考,具體如下:
function openTopWindow(url, title, width, height) { title = title == undefined ? ' ' : title; width = width == undefined ? 800 : width; height = height == undefined ? 300 : height; if (url != undefined) { var content = '<iframe name="eui-open-page" scrolling="auto" frameborder="0" src="' + url + '" style="width:100%;height:100%;"></iframe>'; parent.$('#openWindow').window({ title: title, width: width, height: height, content: content, modal: true, animate: true, minimizable: false }); } }
接下來需要在Layout主頁面放置一個div區域即可:
<!--Open Window Begin--> <div id="openWindow"></div> <!--Open Window End-->