本文介绍了phpcmsV9添加内容在浏览器标签页打开的解决方法,大家知道PHPCMS在添加内容时,就是新窗口的形式打开的,这样其实有些不方便,电脑窗口全给盖住了。一起来看看解决办法吧。
下面直接说说phpcmsV9添加内容在浏览器标签页打开的解决办法。
直接上代码:
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");
}
}
下一篇:最后一页