***综合类***网页源代码加密器
把下列代码加到网页的<body></body>标签之间 从google下载我的照片管理软件要完成此效果把如下代码加入到<body>区域中
<script language=javascript>
<!--
var i=0;
var ie=(document.all)?1:0;
var ns=(document.layers)?1:0;
function initstyleelements() /* styles for buttons init */
{
var c = document.pad;
if (ie)
{
//c.text.style.backgroundcolor="#dddddd";
c.compileit.style.backgroundcolor="#c0c0a8";
c.compileit.style.cursor="hand";
c.select.style.backgroundcolor="#c0c0a8";
c.select.style.cursor="hand";
c.view.style.backgroundcolor="#c0c0a8";
c.view.style.cursor="hand";
c.retur.style.backgroundcolor="#c0c0a8";
c.retur.style.cursor="hand";
c.clear.style.backgroundcolor="#c0c0a8";
c.clear.style.cursor="hand";
}
else return;
}
/* buttons enlightment of "compilation" panel */
function lighton(what)
{
if (ie) what.style.backgroundcolor = '#e0e0d0';
else return;
}
function focuson(what)
{
if (ie) what.style.backgroundcolor = '#ebebeb';
else return;
}
function lightout(what)
{
if (ie) what.style.backgroundcolor = '#c0c0a8';
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('请先把需待加密的代码copy到此框中')
}
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("代码已编译1次!");
else alert("代码已编译"+i+"次!");
}
function selectcode() /* selecting "compilation" for copying */
{
if(document.pad.text.value.length>0)
{
document.pad.text.focus();
document.pad.text.select();
}
else alert('无任何内容被选中!')
}
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('无任何内容可供预览!')
}
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('请把需待还原的代码copy到此框中!')
}
// -->
</script>
<table border=0 cellpadding=0 cellspacing=0 width="100%">
<tbody>
<tr>
<td width="100%">
<form method=post name=pad align="center">
<div align="center">
<textarea cols=58 name=textarea rows=11 style="background-color: #ebebeb; width: 95%">
--------------------------------------
http://www.huoyue.com.cn 活跃网,活跃人群的论坛,访问活跃网,将给您带来意想不到的收获,还可以免费为您开论坛,让您免费拥有与朋友、网友交流的论坛。你是年轻人吗?你活跃你就上!
页:
[1]