jQuery插件EasyUI實現(xiàn)Layout框架頁面中彈出窗體到最頂層效果(穿越iframe)
本文實例講述了jQuery插件EasyUI實現(xiàn)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區(qū)域即可:
<!--Open Window Begin--> <div id="openWindow"></div> <!--Open Window End-->
更多關(guān)于jQuery相關(guān)內(nèi)容感興趣的讀者可查看本站專題:《jQuery擴(kuò)展技巧總結(jié)》、《jQuery常用插件及用法總結(jié)》、《jQuery拖拽特效與技巧總結(jié)》、《jQuery表格(table)操作技巧匯總》、《jquery中Ajax用法總結(jié)》、《jQuery常見經(jīng)典特效匯總》、《jQuery動畫與特效用法總結(jié)》及《jquery選擇器用法總結(jié)》
希望本文所述對大家jQuery程序設(shè)計有所幫助。
相關(guān)文章
設(shè)置jQueryUI DatePicker默認(rèn)語言為中文
本文主要介紹jQueryUI DatePicker設(shè)置中文的方法,需要的朋友可以參考下。2016-06-06
jquerymobile checkbox及時刷新才能獲取其準(zhǔn)確值
一般登錄的時候 都有個記住用戶名 記住密碼 的兩個checkbox 多選框用jquerymobile 做頁面 ,當(dāng)勾選checkbox 時總是不能獲取它正確的值2012-04-04

