现在的位置: 首页 >> 网页设计 >> 网页特效 >> 网页特效_密码类_加密源代码程序_
添加时间:2005-11-9 来源: 网上转帖   作者: 佚名
网页特效_密码类_加密源代码程序_

说明: 加密源代码程序

效果: 点这里在新窗口中看效果!

代码:


<html>

<head>
<meta name="description"
content="Click here for a DHTML script that adds a webpage to the user's
favorite list simply by clicking on a link!">
<meta name="keywords" content="bookmark script, channels script, ">
<title>Dynamic Drive DHTML Scripts- Source Code Encrypter </title>


</head>

<body bgcolor="#FFFFFF" onload=initStyleElements()>

<p align="left"><!--webbot bot="HTMLMarkup" startspan -->
<script language=JavaScript>
<!--
//////////////////////////////////////////////////////////////////
// Source Code Encrypter v1.0 //
//////////////////////////////////////////////////////////////////
// //
// This JavaScript can be freely used as long as this message //
// stays here in the header of the script. Any modifications //
// and bugs found (and fixed) are appreciated. //
// Script submitted/featured on Dynamicdrive.com //
// Visit http://www.dynamicdrive.com for source code //
// Svetlin Staev, thewebmonster@altavista.com //
//////////////////////////////////////////////////////////////////

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('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>



[1] [2]  下一页


上一篇:网页特效_密码类_输入正确进入密码保护页_ 下一篇:网页特效_密码类_限制用户输入错误密码的次数_
大部分文章摘自网上,如有侵犯您的权益请与我们联系,我们会第一时间进行处理,谢谢! [ 打印文章 ] [ 关闭窗口 ]
推荐文章
 
相关文章
·网页特效_密码类_输入正确进入密
·网页特效_密码类_输入密码后才能
·网页特效_密码类_控制他人进入相
·网页特效_密码类_限制用户输入错
·网页特效_密码类_仿VB密码_
最新文章
·加入收藏夹
·利用全屏打开加重定窗口大小产生
·设为首页
·去掉超链接的下划线
·自动刷新网页
·刷新本页
·返回到上一页
·跳出小窗口
·自动关闭窗口
·给页面加保护
Google