系统模板的弹窗函数采用的是模以弹窗模式,弹窗效果很好,但不能最小化,有站长在询问此修改方法,再总结如下
请修改js/AdnCms.Js.js找到
function $AdnPlayer(url,width,height){
var label = showModelessDialog(url,'window','dialogWidth:'+(width+20)+'px;dialogHeight:'+(height+20)+'px;dialogtop:100px;dialogleft:200px;help:0;scroll:0;status:0;resizable:1;');
//window.open(url,'WindowPlay','fullscreen=0,toolbar=0,location=0,menubar=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=1,width='+width+',height='+height+',top=200');
//window.showModelessDialog
}
将其换成
function $AdnPlayer(url,width,height){
window.open(url,'WindowPlay','fullscreen=0,toolbar=0,location=0,menubar=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=1,width='+width+',height='+height+',top=200');
}
就可以了上一篇:
ADN模板引擎原理讲解下一篇:后面没有文章了