引入包
<script type="text/javascript" src="${ctx }/common/js/major.js"></script>
遮罩层
<!-- 遮罩层 -->
<div id="cover" style="background: #000; position: absolute; left: 0px; top: 0px; width: 100%; filter: alpha(opacity=30); opacity: 0.3; display: none; z-index: 2 "></div>
<!-- 弹窗 -->
<div id="showdiv" style="background-size:280px 300px;background-image:url(${ctx}/images/banner-house.png); BACKGROUND-REPEAT: no-repeat; width: 35%; margin: 0 auto; height:300px; border: 1px solid #999; display: none; position: absolute; top: 20%; left: 23%; z-index: 3; background-color: #fff">
<div id="topimg" style="background-color:#C0C0C0">
<img alt="#" src="${ctx}/images/banner-logo.png" height="55px" width="200px">
</div>
<br><br>
<div id="messageaa">
<font id="ddddd" style="left:20% ;font-family: 微软雅黑;font-size: 20px;"></font>
</div>
</div>
方法里调用showWindow
if(type=='PDFstage'){
showWindow("pdf");
}