PHPCMS 添加内容弹出新窗口的修改方法

2016-01-28 浏览:1418
PHPCMS 添加内容弹出新窗口的修改方法
评论:(0)复制地址

找到admin_common.js中的openwinx方法改为下面这样既可


function openwinx(url,name,w,h) {
        if(!w) w=screen.width-4;
        if(!h) h=screen.height-95;
        url = url+'&pc_hash='+pc_hash;
    if(url.indexOf('m=content&c=content&a=add') > -1 || url.indexOf('m=content&c=content&a=edit') > -1) {
        window.open(url,'_blank');
    } else {
        window.open(url,name,"top=100,left=400,width=" + w + ",height=" + h + ",toolbar=no,menubar=no,scrollbars=yes,resizable=yes,location=no,status=no");
    }
}



评论:(0)复制地址
发布:苗景云 | 分类:IT技术&设计 | Tags:PHPCMS

发表评论:

◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。