ASP.net,Jquery弹出一个子页面
来源:互联网 发布:淘宝什么时候成立的 编辑:程序博客网 时间:2024/06/07 23:28
function OpenWindow(Content, title, type, width, height) {
var topsize = document.documentElement.scrollTop; var leftsize = 0;
if (type.length == 0) { type = "iframe"; }
if (width != 0) { leftsize = (window.screen.availWidth - width) / 4; } //弹出框 可左右移动 调节
if (height != 0) { //上下
if (height > 600) { topsize += 10; } else if (height > 500) { topsize += 20; } else { topsize += (window.screen.availHeight - height - 130) / 4; }
}
///显示子页面
if (type == 'iframe') {
$("#menu_window").html("<iframe id='ifrme' name='ifrme' frameborder='0' scrolling='auto' width='" + width + "' height='" + height + "'></iframe>");
$("#ifrme").attr("src", Content);
}
///用于 弹出子页面。。。若果没有下面的,OpenWindow只能在父页面显示子页面,不会弹出来。
$("#menu_window").window({
title: title, iconCls: 'icon-info', width: width + 15, height: height + 40, top: topsize, left: leftsize, resizable: false, modal: true, shadow: true,
minimizable: false, maximizable: false, closable: true, closed: false, collapsible: false
});
}
var topsize = document.documentElement.scrollTop; var leftsize = 0;
if (type.length == 0) { type = "iframe"; }
if (width != 0) { leftsize = (window.screen.availWidth - width) / 4; } //弹出框 可左右移动 调节
if (height != 0) { //上下
if (height > 600) { topsize += 10; } else if (height > 500) { topsize += 20; } else { topsize += (window.screen.availHeight - height - 130) / 4; }
}
///显示子页面
if (type == 'iframe') {
$("#menu_window").html("<iframe id='ifrme' name='ifrme' frameborder='0' scrolling='auto' width='" + width + "' height='" + height + "'></iframe>");
$("#ifrme").attr("src", Content);
}
///用于 弹出子页面。。。若果没有下面的,OpenWindow只能在父页面显示子页面,不会弹出来。
$("#menu_window").window({
title: title, iconCls: 'icon-info', width: width + 15, height: height + 40, top: topsize, left: leftsize, resizable: false, modal: true, shadow: true,
minimizable: false, maximizable: false, closable: true, closed: false, collapsible: false
});
}
0 0
- ASP.net,Jquery弹出一个子页面
- asp.net 点击按钮弹出一个页面
- asp.net 弹出子页面 锁定父页面
- asp.net 弹出子窗口
- asp.net页面弹出对话框
- ASp.NET弹出一个对话框
- ASP.NET弹出一个对话框
- ASP.NET弹出一个对话框
- ASP.NET弹出一个对话框
- ASP.NET弹出一个对话框
- ASP.NET弹出一个对话框
- ASP.NET弹出一个对话框
- ASP.NET弹出一个对话框
- ASP.NET弹出一个对话框
- ASP.NET弹出一个对话框
- ASP.NET弹出一个对话框
- ASp.NET弹出一个对话框
- 怎样在asp.net页面弹出对话框?
- Linux驱动测试
- IOS开发百度地图API
- java SQL批处理
- MFC 控制窗口最大最小尺寸
- OPENVPN开启用户密码认证
- ASP.net,Jquery弹出一个子页面
- struts2注解下的拦截器配置
- 面向对象六大原则(五):迪米特法则
- NAT&Port Forwarding&Port Triggering
- rebar 热部署erlang程序
- 使用javassist动态注入代码
- CUDA convnet 编译及运行20140808
- linux draca
- C实现 每隔1s向time.txt文件输出系统时间(C I/O函数)