阅读内容 

加密代码和解密代码的html源代码

[日期:2005-11-27] 来源:易书网  作者:易水风寒 [字体: ]

<HTML><HEAD><TITLE> 加密/解密HTML源代码</TITLE>
<META content="text/HTML; charset=gb2312" http-equiv=Content-Type>
<META content="script,windows" name=keywords>
<STYLE>.tablinks A {COLOR: blue}
.tablinks A:visited { COLOR: blue}
.tablinks A:hover {COLOR: brown}
input{ font-family: Tahoma; font-size: 9pt; color: #000080 }
body,textarea{ font-family: Tahoma; font-size: 9pt; color: blue}
</STYLE>
</HEAD>
<BODY bgColor=#D6D3CE leftMargin=0  marginwidth="0" scroll=no oncontextmenu="self.event.returnValue=false">
<div align="center">
  <center>
<TABLE border=0 cellPadding=0 cellSpacing=0 width="600"> 
  <TBODY> 
  <TR> 
    <TD align=left vAlign=top> 
      <div align="center" style="width: 598; height: 42">
        <div align="center">
          <font color="#0066ff">加密页面源代码脚本</font>
        </div>
        <p><font color="#800000">将你的页面源代码粘贴在下面的框内,要包括所有的标签例如HTML 
        , head, body等。</font></p>
      </div>
      <P align=center> </P>  
      <P align=left><!--webbot bot="HTMLMarkup" startspan -->  
      <SCRIPT language=JavaScript>  
var i=0;  
var ie=(document.all)?1:0;  
var ns=(document.layers)?1:0;  
  
function generate() /* Generation of "Compilation" */  
 {  
  code = document.pad.text.value;  
  if (code)  
   {  
    document.pad.text.value='正在加密中...请等待!';  
    setTimeout("compile()",1000);  
   }  
  else alert('专家提醒您:还没有放入要加密的网页代码!')  
 }  
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++;  
  alert("已将所选内容加密成功!请点预览查看效果!");  
 }  
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('水晶情缘网页特效专家提醒您:请把你需要解密的代码放到此处!')  
 }  
// -->  
</SCRIPT>  
  
      <TABLE border=0 cellPadding=0 cellSpacing=0 width="100%">  
        <TBODY>  
        <TR>  
          <TD width="100%"><!-- Compilation Panel -->  
            <FORM method=post name=pad align="center"><TEXTAREA cols=58 name=text rows=11 style="BACKGROUND-COLOR: #f0f0f0;width=100%"></TEXTAREA><BR><p align="center"><INPUT name=compileIt onclick=generate()  type=button value=加密>   
<INPUT name=select onclick=selectCode()  type=button value=选定>   
<INPUT name=view onclick=preview()  type=button value=预览>   
<INPUT name=retur onclick=uncompile()  type=button value=解密>   
<INPUT name=clear type=reset value=清除>   
            </FORM><!-- Compilation Panel --></TD></TR></TBODY></TABLE><!--webbot bot="HTMLMarkup" endspan --></P> 
  </table>
  </center>
</div>
</body>
</HTML>

阅读:
录入:

推荐 】 【 打印
相关新闻      
本文评论       全部评论
发表评论
  • 尊重网上道德,遵守中华人民共和国的各项有关法律法规
  • 承担一切因您的行为而直接或间接导致的民事或刑事法律责任
  • 本站管理人员有权保留或删除其管辖留言中的任意内容
  • 本站有权在网站内转载或引用您的评论
  • 参与本评论即表明您已经阅读并接受上述条款


点评: 字数
姓名:
Advertisement
内容查询


Advertisement