设为首页 | 加入收藏
当前位置:首页>>网页特效>>网页密码特效>> 简单的页面保护,只要输入页面的名称就能进入

简单的页面保护,只要输入页面的名称就能进入

时间:2007-10-18 9:34:28 来源:本站收集整理 作者:佚名

脚本说明:
第一步:把如下代码加入的<head>区域中
<script language="JavaScript">

<!--
function hidden(){
   var location=document.input.password.value + ".htm";
   this.location.href = location;
}
// -- End Hiding Here
// -->

</script>


第二步:在<body>区域中加入
<form name="input">
<table>
<tr>
<td>Password:<p><input type="text" size="22" name="password"></p>
<p><input type="button" value="Enter" onclick="hidden()"></td>
</tr>
</table>
<table width="198">
</table>
</form>


相关内容