本文實例講述了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-->
更多關于jQuery相關內容感興趣的讀者可查看本站專題:《jQuery擴展技巧總結》、《jQuery常用插件及用法總結》、《jQuery拖拽特效與技巧總結》、《jQuery表格(table)操作技巧匯總》、《jquery中Ajax用法總結》、《jQuery常見經典特效匯總》、《jQuery動畫與特效用法總結》及《jquery選擇器用法總結》
希望本文所述對大家jQuery程序設計有所幫助。
新聞熱點
疑難解答