发布v2.7.0版本
This commit is contained in:
1
js/js.js
1
js/js.js
@@ -199,6 +199,7 @@ js.open=function(url,w,h,wina,can,wjcan){
|
||||
if(!w)w=750;if(!h)h=500;
|
||||
var l=(screen.width-w)*0.5,t=(screen.height-h)*0.5-50,rnd = parseInt(Math.random()*50);
|
||||
if(rnd%2==0){l=l+rnd;t=t-rnd;}else{l=l-rnd;t=t+rnd;}
|
||||
w = parseInt(w);h = parseInt(h);l = parseInt(l);t = parseInt(t);
|
||||
if(!can)can={};
|
||||
var s='resizable=yes,scrollbars=yes,toolbar=no,menubar=no,scrollbars=yes,resizable=yes,location=no,status=no';
|
||||
var a1={'left':''+l+'px','top':''+t+'px','width':''+w+'px','height':''+h+'px'};
|
||||
|
||||
Reference in New Issue
Block a user