|
网页屏蔽(左右键,代码等)的非JS方法(5) else return; } function FocusOff(what) { if (ie) what.style.backgroundColor = '#DDDDDD'; else return; } /* Buttons Enlightment of "Compilation" panel */
function generate() /* Generation of "Compilation" */ { code = document.pad.text.value; if (code) { document.pad.text.value='Compiling...Please wait!'; setTimeout("compile()",1000); } else alert('First enter something to compile and then press CompileIt') } function compile() /* The "Compilation" */ { document.pad.text.value=''; compilation=escape(code); document.pad.text.value="/〈script〉\n〈!--\ndocument.write(unescape(\""+compilation+"\"));\n//--〉\n〈\/script〉"; i++; if (i=1) alert("Page compiled 1 time!"); else alert("Page compiled "+i+" times!"); } function selectCode() /* Selecting "Compilation" for Copying */ { if(document.pad.text.value.length〉0) { document.pad.text.focus(); document.pad.text.select(); } else alert('Nothing for be selected!') } function preview() /* Preview for the "Compilation" */ { if(document.pad.text.value.length〉0) { pr=window.open("","Preview","scrollbars=1,menubar=1,status=1,width=700, height=320,left=50,top=110"); pr.document.write(document.pad.text.value); } else alert('Nothing for be previewed!') } function uncompile() /* Decompiling a "Compilation" */ { if (document.pad.text.value.length〉0) { source=unescape(document.pad.text.value); document.pad.text.value=""+source+""; } else alert('You need compiled code to uncompile it!') } // --〉 〈/SCRIPT〉 〈BR〉〈B〉〈FONT color=#333333〉网页HTML源代码加密解密器〈/FONT〉〈/B〉〈/H2〉〈/DIV〉 〈TABLE cellSpacing=0 borderColorDark=#000000 cellPadding=10 width=750 align=center borderColorLight=#ffffff border=2〉 〈TBODY〉 〈TR〉 〈TD〉 〈DIV align=center〉〈BR〉将你的源代码贴到编辑区域即可〈BR〉〈BR〉 〈TABLE cellSpacing=0 cellPadding=0 width="100%" border=0〉
|