JavaScript/Common.js

(开头部分) 16KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

window.focus();
function jscomResizeWindow(width,height)
{
	var left,top;
	left=(screen.width-width)/2;
	if(left<0){ left=0;}

	top=(screen.height-60-height)/2;
	if(top<0){ top=0;}
	
	window.resizeTo(width,height);
	window.moveTo(left,top);
}

function jscomNewOpenFullScreen(url,target)
{
	var w=window.open(url,target,"fullscreen=yes,toolbar=no,scrollbars=yes");
	try{
		w.focus();
	}catch(e){}
}

function jscomNewOpenBySize(url,target,width,height){
        var tt,w,left,top;
		if (!width) width=screen.width;
		if (!height) height=screen.height-60;
		left=(screen.width-width)/2;
		if(left<0){ left=0;}

		top=(screen.height-60-height)/2;
		if(top<0){ top=0;}

        tt="toolbar=no, menubar=no, scrollbars=yes,resizable=yes,location=no, status=yes,";
        tt=tt+"width="+width+",height="+height+",left="+left+",top="+top;
	    w=window.open(url,target,tt);
		try{
			w.focus();
		}catch(e){}
}

function jscomNewOpenByFixSize(url,target,width,height){
        var tt,w,left,top;
		if (!width) width=screen.width;
		if (!height) height=screen.height-60;
		left=(screen.width-width)/2;
		if(left<0){ left=0;}

		top=(screen.height-60-height)/2;
		if(top<0){ top=0;}

        tt="toolbar=no, menubar=no, scrollbars=no,resizable=no,location=no, status=yes,";
        tt=tt+"width="+width+",height="+height+",left="+left+",top="+top;
	    w=window.open(url,target,tt);
	try{
		w.focus();
	}catch(e){}
}

function jscomNewOpenBySizePos(url,target,width,height,left,top){
			var tt;
后面还有 609 行代码,购买后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。