[javascript]代码库
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>网页在线加密解密----娱乐在线,超级搜索,搜软件, 电影下载, 变态资源, 图片搜索, 小说搜索, 论坛搜索, 搜索助手, 桌面搜索, 搜索推广, 搜索优化, 搜索软件, 海量搜索,电骆,BT</title>
<meta content="text/html; charset=gb2312" http-equiv="Content-Type" />
<style type="text/css">
/*<![CDATA[*/
<!--
td,body {font-size:12px}
a:link {color:#000000;text-decoration:none}
a:visited {color:#000000;text-decoration:none}
a:active {color:blue;text-decoration:none}
a:hover {color:red;text-decoration:underline}
a.title:link {color:#000000;text-decoration:underline}
a.title:visited {color:#000000;text-decoration:underline}
a.title:active {color:#0000ff;text-decoration:underline}
a.title:hover {color:#0000ff;text-decoration:underline}
-->
/*]]>*/
</style>
<base target="_self" />
</head>
<body>
<center>
<script language="JavaScript" type="text/javascript">
//<![CDATA[
<!--
var Words;
function SetWords(word)
{
Words = word.value;
}
function SetNewWords(form)
{
var NewWords;
NewWords = unescape(Words);
form.NewWords.value = NewWords;
}
function SetNewWords1(form)
{
var NewWords;
NewWords = escape(Words);
form.NewWords.value = NewWords;
}
// -->
//]]>
</script><script language="JavaScript" type="text/javascript">
//<![CDATA[
<!--
function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
function MM_swapImgRestore() { //v3.0
var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}
function MM_findObj(n, d) { //v4.0
var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
if(!x && document.getElementById) x=document.getElementById(n); return x;
}
function MM_swapImage() { //v3.0
var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
//-->
//]]>
</script><script language="JavaScript" type="text/javascript">
//<![CDATA[
<!--
function MM_timelinePlay(tmLnName, myID) { //v1.2
//Copyright 1997 Macromedia, Inc. All rights reserved.
var i,j,tmLn,props,keyFrm,sprite,numKeyFr,firstKeyFr,propNum,theObj,firstTime=false;
if (document.MM_Time == null) MM_initTimelines(); //if *very* 1st time
tmLn = document.MM_Time[tmLnName];
if (myID == null) { myID = ++tmLn.ID; firstTime=true;}//if new call, incr ID
if (myID == tmLn.ID) { //if Im newest
setTimeout('MM_timelinePlay("'+tmLnName+'",'+myID+')',tmLn.delay);
fNew = ++tmLn.curFrame;
for (i=0; i<tmLn.length; i++) {
sprite = tmLn[i];
if (sprite.charAt(0) == 's') {
if (sprite.obj) {
numKeyFr = sprite.keyFrames.length; firstKeyFr = sprite.keyFrames[0];
if (fNew >= firstKeyFr && fNew <= sprite.keyFrames[numKeyFr-1]) {//in range
keyFrm=1;
for (j=0; j<sprite.values.length; j++) {
props = sprite.values[j];
if (numKeyFr != props.length) {
if (props.prop2 == null) sprite.obj[props.prop] = props[fNew-firstKeyFr];
else sprite.obj[props.prop2][props.prop] = props[fNew-firstKeyFr];
} else {
while (keyFrm<numKeyFr && fNew>=sprite.keyFrames[keyFrm]) keyFrm++;
if (firstTime || fNew==sprite.keyFrames[keyFrm-1]) {
if (props.prop2 == null) sprite.obj[props.prop] = props[keyFrm-1];
else sprite.obj[props.prop2][props.prop] = props[keyFrm-1];
} } } } }
} else if (sprite.charAt(0)=='b' && fNew == sprite.frame) eval(sprite.value);
if (fNew > tmLn.lastFrame) tmLn.ID = 0;
} }
}
//-->
//]]>
</script>
<table>
<tr>
<td class="smenu" align="right"><a class="white" href="" target="_blank"></a></td>
</tr>
<tr valign="top" align="left">
<td colspan="2">
<hr width="100%" size="1" />
</td>
</tr>
<tr>
<td>
<table align="center">
<tbody>
<tr>
<td>
<form method="post">
<div align="center">
<p align="left"> 所谓加密解密是通过Unicode码的转换实现的,但经过实验中文文字太多会导致将你的页面代码膨胀。英文反会有压缩效果。<br />
<br />
使用方法:<br />
<font color="#FF0000">加密</font>:源代码粘贴在下面的框内,要包括所有的标签例如html , head, body等。如果你对Java教熟,也可只对部分内容加<br />
密,在对应输出部分使用outword()即可。注意:<font color="#FF0000">请在加密前先备份您的网页</font><br />
<font color="#FF0000">解密方法</font>:将引号内的乱码贴入按解密即可</p>
</div>
<div align="center">
<center>
<p> </p>
</center>
</div>
<div align="center">
<center>
<p>
<textarea cols="65" name="Word" onchange="SetWords(this)" rows="10" style="FONT-FAMILY: 宋体; FONT-SIZE: 9pt">
</textarea></p>
</center>
</div>
<div align="center">
<center>
<p><input name="uncode" onclick="SetNewWords(this.form)" style="FONT-FAMILY: 宋体; FONT-SIZE: 9pt; FONT-WEIGHT: bold" type="button" value="解密" /> <input name="encode" onclick="SetNewWords1(this.form)" style="FONT-FAMILY: 宋体; FONT-SIZE: 9pt; FONT-WEIGHT: bold" type="button" value="加密" /></p>
</center>
</div>
<div align="center">
<center>
<p>
<textarea cols="65" name="NewWords" rows="10" style="FONT-FAMILY: 宋体; FONT-SIZE: 9pt">
</textarea></p>
</center>
</div>
</form>
<p align="left"> 以上是转换好的代码,将他们加入如下脚本的引号“”区内,就是加密后的HTML了!以下代码不可直接拷<br />
入FrontPage可先贴在记事本中,再copy一次再贴就没问题了。</p>
<div align="center">
<center>
<table align="center" border="0" width="65%">
<tbody>
<tr>
<td height="314"><font face="Arial, Helvetica, sans-serif"><b><HTML><br />
<HEAD><br />
<SCRIPT LANGUAGE="Javascript"><br />
<!--<br /></b></font><font size="2"><b>//此网页已加密<br /></b></font><b><font face="Arial, Helvetica, sans-serif"><br />
var Words ="</font>把加密生成后的代码复到此处就<font face="Arial, Helvetica, sans-serif">OK</font>了<font face="Arial, Helvetica, sans-serif">" //put your cripto code there<br />
function OutWord()<br />
{<br />
var NewWords;<br />
NewWords = unescape(Words);<br />
document.write(NewWords);<br />
}<br />
OutWord();<br />
// --><br />
</SCRIPT><br />
</HEAD><br />
<BODY><br />
</BODY><br />
</HTML></font></b></td>
</tr>
</tbody>
</table>
</center>
</div>
</td>
</tr>
<tr>
<td align="middle"></td>
</tr>
</tbody>
</table>
</td>
</tr>
</table>
<p align="center"><font color="#339900">如果您觉得本站对您的朋友有帮助,别忘了告诉他(她)们哟 ^_^</font><br /></p>
<p align="center"><a href="http://www.miibeian.gov.cn/" target="_blank">豫ICP备06008349号</a></p>
</center>
</body>
</html>
[代码运行效果截图]