- function showframe(title, querystr, isDiv) {
- var pth = window.location.pathname;
- var pos1 = pth.lastIndexOf("/");
- var pos2 = pth.lastIndexOf("\");
- var pos = Math.max(pos1, pos2);
- querystr.title = title;
- if (querystr.url != null) {
- if (!(querystr.url.indexOf("/") == 0 || querystr.url.indexOf("\") == 0))
- querystr.url = pth.substring(0, pos) + "/" + querystr.url;
- } else {
- if (!(querystr.indexOf("/") == 0 || querystr.indexOf("\") == 0))
- querystr = pth.substring(0, pos) + "/" + querystr;
- }
- var arg = new Object();
- arg.title = title;
- arg.url = querystr;
- arg.window = this.window;
- // alert(isDiv);
- if (!isDiv) {
- return parent.showModalDialog(
- contextPath + '/frame.jsp?title=' + title, arg,
- 'resizable=yes;help=no;status=no;font-size:9pt;dialogWidth:'
- + wx + ';dialogHeight:' + wy + ';status:no;scroll:no;');
- } else {
- showFrameByDiv(arg.url, arg.title);
- }
- }
复制代码 // 以div的方式弹出(showfrmae)
function showFrameByDiv(url, title, wx, wy){
...
} |