jquery

关注公众号 jb51net

关闭
首页 > 网络编程 > JavaScript > javascript类库 > jquery > jQuery插件EasyUI实现Layout框架页面中弹出窗体到最顶层

jQuery插件EasyUI实现Layout框架页面中弹出窗体到最顶层效果(穿越iframe)

作者:Quber

这篇文章主要介绍了jQuery插件EasyUI实现Layout框架页面中弹出窗体到最顶层效果,具有穿越iframe的功能,涉及jQuery的EasyUI插件属性操作相关技巧,需要的朋友可以参考下

本文实例讲述了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程序设计有所帮助。

您可能感兴趣的文章:
阅读全文