1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- /*弹出层*/
- /*
- 参数解释:
- title 标题
- url 请求的url
- id 需要操作的数据id
- w 弹出层宽度(缺省调默认值)
- h 弹出层高度(缺省调默认值)
- */
- function x_admin_show(title,url,w,h,full){
- if (title == null || title == '') {
- title=false;
- };
- if (url == null || url == '') {
- url="404.html";
- };
- if (w == null || w == '') {
- w=800;
- };
- if (h == null || h == '') {
- h=($(window).height()/2);
- };
- var index = layer.open({
- type: 2,
- area: [w+'px', h +'px'],
- fix: false, //不固定
- maxmin: true,
- shadeClose: true,
- shade:0.4,
- title: title,
- anim:-1,
- content: url
- });
- //layer.iframeAuto(index)
- if (full) {
- layer.full(index);
- }
- }
- /*关闭弹出框口*/
- function x_admin_close(){
- var index = parent.layer.getFrameIndex(window.name);
- parent.layer.close(index);
- }
|