📄 打开无边窗口.txt
字号:
'</frameset> '+'\n'+
'</HTML>'
splashWin=window.open("", wname, "fullscreen=1,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0"+s);
splashWin.resizeTo(Math.ceil(W) , Math.ceil(H));
splashWin.moveTo(Math.ceil(windowX) , Math.ceil(windowY));
splashWin.document.open();splashWin.document.write(chromeFRMhtml);splashWin.document.close();}
else{var splashWin=window.open(theURL, wname, "toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=1"+s, true);}
splashWin.focus();}
function quitasaltolinea(txt) {
var salida=txt.toString()
var re=/\\/g;var salida=salida.replace(re, "\\\\");
var re=/\//g;var salida=salida.replace(re, "\\\/");
var re=/\"/g;var salida=salida.replace(re, "\\\"");
var re=/\'/g;var salida=salida.replace(re, "\\\'");
var re=/\n/g;var salida=salida.replace(re, "\\n");
var re=/ /g;var salida=salida.replace(re, "");
var re=/\t/g;var salida=salida.replace(re, "");
var re=/\r/g;var salida=salida.replace(re, "");
return salida}
</SCRIPT>
<p> </p>
<p>//以下内容不用改</p>
<p>wname=Math.floor(Math.random()*10000);<br>
openchromeless(theURL, wname, W, H, windowCERRARa, windowCERRARd, windowCERRARo, windowNONEgrf, windowCLOCK, windowTIT, windowREALtit , windowBORDERCOLOR, windowBORDERCOLORsel, windowTITBGCOLOR, windowTITBGCOLORsel)}<br>
function openchromeless(theURL, wname, W, H, windowCERRARa, windowCERRARd, windowCERRARo, windowNONEgrf,windowCLOCK, windowTIT, windowREALtit , windowBORDERCOLOR, windowBORDERCOLORsel, windowTITBGCOLOR, windowTITBGCOLORsel) {<br>
var windowW=W;<br>
var windowH=H;<br>
var windowX=Math.ceil( (window.screen.width - windowW) / 2 );<br>
var windowY=Math.ceil( (window.screen.height - windowH) / 2 );<br>
if (navigator.appName=="Microsoft Internet Explorer" && parseInt(navigator.appVersion)>=4) isie=true<br>
else isie=false<br>
if (isie) { H=H+20+2;W=W+2;}<br>
s=",width="+W+",height="+H;</p>
<p>if (isie && (navigator.userAgent.toLowerCase().indexOf("win")!=-1) ) {<br>
var dowin=theURL !="" ? true : false;<br>
var chromeTIThtml='\n'+<br>
'<html>'+'\n'+<br>
'<head> '+'\n'+<br>
'<title> CHROMELESS WINDOWS / TITLEBAR</title> '+'\n'+<br>
'<style type="text/css"> '+'\n'+<br>
'#mywindowTITLE { position: absolute;left: 0px;top: 0px;width: 100%;height: 22px;z-index: 1;background-color: '+windowTITBGCOLOR+';clip:rect(0,100%,22,0);} '+'\n'+<br>
'#mywindow { position: absolute;left: 0px;top: 0px;width: 100%;height: 22px;z-index: 2;clip:rect(0,100%;22,0);} '+'\n'+<br>
'#mywindowCLOSE { position: absolute;left: -22px;top: -22px;width: 11px;height: 11px;z-index: 3;clip:rect(0,11,11,0);} '+'\n'+<br>
'#mywindowCLOCK { position: absolute;left: -22px;top: -22px;width: 11px;height: 11px;z-index: 3;clip:rect(0,11,11,0);} '+'\n'+<br>
'</style> '+'\n'+<br>
'<scr'+'ipt language="javascript">'+'\n'<br>
chromeTIThtml=chromeTIThtml+<br>
'theURL="'+theURL+'" '+'\n'+<br>
'windowCERRARa="'+windowCERRARa+'" '+'\n'+<br>
'windowCERRARd="'+windowCERRARd+'" '+'\n'+<br>
'windowCERRARo="'+windowCERRARo+'" '+'\n'+<br>
'windowCLOCK="'+windowCLOCK+'"'+'\n'+<br>
'windowBORDERCOLOR="'+windowBORDERCOLOR+'" '+'\n'+<br>
'windowBORDERCOLORsel="'+windowBORDERCOLORsel+'" '+'\n'+<br>
'windowTITBGCOLOR="'+windowTITBGCOLOR+'" '+'\n'+<br>
'windowTITBGCOLORsel="'+windowTITBGCOLORsel+'" '+'\n'<br>
chromeTIThtml=chromeTIThtml+<br>
'var windowCERRARImg_a=new Image();windowCERRARImg_a.src=windowCERRARa;'+'\n'+<br>
'var windowCERRARImg_d=new Image();windowCERRARImg_d.src=windowCERRARd;'+'\n'+<br>
'var windowCERRARImg_o=new Image();windowCERRARImg_o.src=windowCERRARo;'+'\n'+<br>
'var windowCLOCKImg=new Image();windowCLOCKImg.src=windowCLOCK;'+'\n'+'\n'+<br>
'function mouseSTATUS(){'+<br>
'this.x=null;'+'\n'+<br>
'this.y=null;'+'\n'+<br>
'this.bt="up";'+'\n'+<br>
'this.oldx=null;'+'\n'+<br>
'this.oldy=null;'+'\n'+<br>
'this.dx=null;'+'\n'+<br>
'this.dy=null;'+'\n'+<br>
'this.screeny=null;'+'\n'+<br>
'this.screenx=null;'+'\n'+<br>
'this.element=null;'+'\n'+<br>
'this.event=null;'+'\n}'+</p>
<p>'var mouse=new mouseSTATUS();'+'\n'+<br>
'function actualizateMouseSTATUS(e) { '+'\n'+<br>
'if (!e) var e=event '+'\n'+<br>
'if ( (e.type=="mousedown" || e.type=="mouseup") && e.button!=1) return true '+'\n'+<br>
'var x=e.x+document.body.scrollLeft '+'\n'+<br>
'var y=e.y+document.body.scrollTop '+'\n'+<br>
'mouse.x=x;'+'\n'+<br>
'mouse.y=y;'+'\n'+<br>
' if ( e.type=="mousedown" ) mouse.bt="down";'+'\n'+<br>
'else if ( e.type=="mouseup" ) mouse.bt="up";'+'\n'+<br>
'if (window.event) { '+'\n'+<br>
'mouse.screenx=window.event.screenX;'+'\n'+<br>
'mouse.screeny=window.event.screenY;'+'\n'+<br>
'} else { '+'\n'+<br>
'mouse.screenx=-1;'+'\n'+<br>
'mouse.screeny=-1;'+'\n}'+<br>
'}'+<br>
'function initMouseEvents() { '+'\n'+<br>
'document.onmousedown=actualizateMouseSTATUS '+'\n'+<br>
'document.onmousemove=actualizateMouseSTATUS '+'\n'+<br>
'document.onmouseup=actualizateMouseSTATUS '+'\n'+<br>
'document.onselectstart=selectstart '+'\n'+<br>
'document.ondragstart=new Function("actualizateMouseSTATUS(event);return false;") '+'\n'+<br>
'} '+'\n'+</p>
<p>'function selectstart(){ '+'\n'+<br>
'if ( event.srcElement.tagName !="INPUT" && event.srcElement.tagName !="TEXTAREA") { return false;} '+'\n'+<br>
'else { mouse.bt="up";return true;} '+'\n'+<br>
'} '+'\n'+</p>
<p>'initMouseEvents() '+'\n'+</p>
<p>'var mywindowbt="up";'+'\n'+<br>
'var wincloseSTATUS="up";'+'\n'+</p>
<p>'var ofx=0;'+'\n'+<br>
'var ofy=0;'+'\n'+<br>
'var opx=0;'+'\n'+<br>
'var opy=0;'+'\n'+<br>
'var px=0;'+'\n'+<br>
'var py=0;'+'\n'+</p>
<p>'var wcpx1=-1, wcpy1=-1;'+'\n'+<br>
'var wcpx2=-1, wcpy2=-1;'+'\n'+</p>
<p>'var wclosechanged=false;'+'\n'+</p>
<p>'function initToMoveWin() { '+'\n'+<br>
'if (wincloseSTATUS=="up" && ( mywindowbt=="up" || mywindowbt=="over") ) { '+'\n'+</p>
<p>'document.all["mywindowCLOCK"].style.pixelLeft=document.body.clientWidth-36 '+'\n'+<br>
'document.all["mywindowCLOCK"].style.pixelTop=4 '+'\n'+</p>
<p>'wcpx1=document.all["mywindowCLOSE"].style.pixelLeft=document.body.clientWidth-18 '+'\n'+<br>
'wcpy1=document.all["mywindowCLOSE"].style.pixelTop=4 '+'\n'+<br>
'wcpx2=wcpx1+11 - 1 '+'\n'+<br>
'wcpy2=wcpy1+11 - 1 '+'\n'+<br>
'if ( mouse.x >=wcpx1 && mouse.x <=wcpx2 && mouse.y >=wcpy1 && mouse.y <=wcpy2) { '+'\n'+<br>
'if (wclosechanged==false) { '+'\n'+<br>
'document.all["mywindowCLOSE"].document.images["closewin"].src=windowCERRARImg_o.src '+'\n'+<br>
'wclosechanged=true '+'\n'+<br>
'}'+</p>
<p>'} else if (wclosechanged==true) { '+'\n'+<br>
'document.all["mywindowCLOSE"].document.images["closewin"].src=windowCERRARImg_d.src '+'\n'+<br>
'wclosechanged=false '+'\n'+<br>
'}'+<br>
'}'+</p>
<p>' if ( mouse.y <=22 && mouse.y >=1 && mywindowbt=="up" && mouse.bt=="up" ) { mywindowbt="over" } '+'\n'+<br>
'else if ( ( mouse.y > 22 || mouse.y < 1 ) && mywindowbt=="over" && mouse.bt=="up" ) { mywindowbt="up" } '+'\n'+<br>
'else if ( mouse.y <=22 && mouse.y >=1 && mywindowbt=="over" && mouse.bt=="down" ) { '+'\n'+<br>
'self.window.focus();'+'\n'+</p>
<p>'if ( mouse.x >=wcpx1 && mouse.x <=wcpx2 && mouse.y >=wcpy1 && mouse.y <=wcpy2 ) { '+'\n'+<br>
'wincloseSTATUS="down" '+'\n'+<br>
'document.all["mywindowCLOSE"].document.images["closewin"].src=windowCERRARImg_a.src'+'\n'+<br>
'} else { '+'\n'+<br>
'document.all["mywindowTITLE"].style.backgroundColor=windowTITBGCOLORsel '+'\n'+<br>
'document.body.style.borderColor=windowBORDERCOLORsel '+'\n'+<br>
'parent.chromewinb.document.bgColor=windowBORDERCOLORsel '+'\n'+<br>
'parent.chromewinl.document.bgColor=windowBORDERCOLORsel '+'\n'+<br>
'parent.chromewinr.document.bgColor=windowBORDERCOLORsel '+'\n'+<br>
'ofx=mouse.x;'+'\n'+<br>
'ofy=mouse.y;'+'\n'+<br>
'opx=mouse.x;'+'\n'+<br>
'opy=mouse.y;'+'\n'+<br>
'} '+'\n'+<br>
'mywindowbt="down";'+'\n'+<br>
'}'+<br>
'else if ( mouse.bt=="up" && mywindowbt=="down" ) { '+'\n'+<br>
'mywindowbt="up";'+'\n'+<br>
'ofx=0;'+'\n'+<br>
'ofy=0;'+'\n'+<br>
'opx=0;'+'\n'+<br>
'opy=0;'+'\n'+</p>
<p>'if ( mouse.x >=wcpx1 && mouse.x <=wcpx2 && mouse.y >=wcpy1 && mouse.y <=wcpy2 && wincloseSTATUS=="down" ) { top.window.close() } '+'\n'+</p>
<p>'wincloseSTATUS="up" '+'\n'+</p>
<p>'if ( document.all["mywindowTITLE"] ) { '+'\n'+<br>
'document.all["mywindowTITLE"].style.backgroundColor=windowTITBGCOLOR '+'\n'+<br>
'document.body.style.borderColor=windowBORDERCOLOR '+'\n'+<br>
'parent.chromewinb.document.bgColor=windowBORDERCOLOR '+'\n'+<br>
'parent.chromewinl.document.bgColor=windowBORDERCOLOR '+'\n'+<br>
'parent.chromewinr.document.bgColor=windowBORDERCOLOR '+'\n'+<br>
'}}'+<br>
'else if ( mywindowbt=="down" && wincloseSTATUS=="up") { '+'\n'+<br>
'var m_scrx=mouse.screenx;'+'\n'+<br>
'var m_scry=mouse.screeny;'+'\n'+<br>
'opx=px+ofx - m_scrx;'+'\n'+<br>
'opy=py+ofy - m_scry;'+'\n'+<br>
'px=m_scrx - ofx;'+'\n'+<br>
'py=m_scry - ofy;'+'\n'+<br>
'top.window.moveTo(px , py);'+'\n}'+<br>
'setTimeout("initToMoveWin()",50);}'+<br>
'</scr'+'ipt>'+<br>
'</head> '+'\n'+<br>
'<body TOPMARGIN=0 LEFTMARGIN=0 MARGINWIDTH=0 MARGINHEIGHT=0 scroll=no style="border: 1px solid '+windowBORDERCOLOR+';overflow: hidden;margin: 0pt;" bgcolor='+windowTITBGCOLOR+'> '+'\n'+<br>
'<div id=mywindow><img src="'+windowNONEgrf+'" width=100% height=20></div> '+'\n'+<br>
'<div id=mywindowTITLE>'+'<table width=100% height=20 border=0 cellpadding=0 cellspacing=0><tr><td valign=middle align=left>'+windowTIT+'</td></tr></table>'+'</div> '+'\n'+<br>
'<div id=mywindowCLOSE><img name=closewin src="'+windowCERRARd+'" border=0 width=11 height=11></div> '+'\n'+<br>
'<div id=mywindowCLOCK><img name=clockwin src="'+windowCLOCK+'" border=0 width=11 height=11></div> '+'\n'+<br>
'</body> '+'\n'+<br>
'<scr'+'ipt>initToMoveWin();</scr'+'ipt>'+'\n'+<br>
'</html> '+'\n'</p>
<p>var chromeFRMhtml=''+<br>
'<HTML>'+'\n'+<br>
'<HEAD> '+'\n'+<br>
'<TITLE>'+windowREALtit+'</TITLE> '+'\n'+<br>
'</HEAD> '+'\n'+<br>
'<scr'+'ipt> '+'\n'+<br>
'mainloaded=false'+'\n'+<br>
'function generatetitle() { '+'\n'+<br>
'if( window.frames["chromewint"] && window.frames["chromewinl"] && window.frames["chromewinb"] && window.frames["chromewinr"] ) {'+'\n'+<br>
'chromewint.document.open();'+'\n'+<br>
'chromewint.document.write( "'+quitasaltolinea(chromeTIThtml)+'" );'+'\n'+<br>
'chromewint.document.close();'+'\n'+<br>
'chromewinl.document.bgColor="'+windowBORDERCOLOR+'"'+'\n'+<br>
'chromewinb.document.bgColor="'+windowBORDERCOLOR+'"'+'\n'+<br>
'chromewinr.document.bgColor="'+windowBORDERCOLOR+'"'+'\n'+<br>
'}else{'+<br>
'setTimeout("generatetitle()",200)'+'\n'+<br>
'}'+'\n'+<br>
'}'+'\n'+<br>
'generatetitle()'+'\n'+<br>
'</scr'+'ipt>'+'\n'+<br>
'<frameset border=0 framespacing=0 frameborder=0 rows="22,100%,1" onload="mainloaded=true" onreadystatechange="generatetitle()">'+'\n'+<br>
'<frame name=chromewint src="about:blank" scrolling=no noresize> '+'\n'+<br>
'<frameset border=0 framespacing=0 frameborder=0 cols="1,100%,1"> '+'\n'+<br>
'<frame name=chromewinl src="about:blank" scrolling=no noresize> '+'\n'+<br>
'<frame name=main src="'+theURL+'"> '+'\n'+<br>
'<frame name=chromewinr src="about:blank" scrolling=no noresize> '+'\n'+<br>
'</frameset> '+'\n'+<br>
'<frame name=chromewinb src="about:blank" scrolling=no noresize> '+'\n'+<br>
'</frameset> '+'\n'+<br>
'</HTML>'</p>
<p>splashWin=window.open("", wname, "fullscreen=1,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0"+s);<br>
splashWin.resizeTo(Math.ceil(W) , Math.ceil(H));<br>
splashWin.moveTo(Math.ceil(windowX) , Math.ceil(windowY));<br>
splashWin.document.open();splashWin.document.write(chromeFRMhtml);splashWin.document.close();}<br>
else{var splashWin=window.open(theURL, wname, "toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=1"+s, true);}<br>
splashWin.focus();}<br>
function quitasaltolinea(txt) {<br>
var salida=txt.toString()<br>
var re=/\\/g;var salida=salida.replace(re, "\\\\");<br>
var re=/\//g;var salida=salida.replace(re, "\\\/");<br>
var re=/\"/g;var salida=salida.replace(re, "\\\"");<br>
var re=/\'/g;var salida=salida.replace(re, "\\\'");<br>
var re=/\n/g;var salida=salida.replace(re, "\\n");<br>
var re=/ /g;var salida=salida.replace(re, "");<br>
var re=/\t/g;var salida=salida.replace(re, "");<br>
var re=/\r/g;var salida=salida.replace(re, "");<br>
return salida}<br>
</SCRIPT></p>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -