代码如下所示:
<script>
function password() {undefined
var testV = 1;
var mm = prompt('请输入密码','');
while (testV < 300) {undefined
if (!mm)
history.go(-1);
if (mm == "666666") {//初始密码
break;
}
testV+=1;
var mm =
prompt('密码错误!请重新输入:');
}
if (mm!="password" & testV ==3)
history.go(-1);
return " ";
}
document.write(password());
</script>

这行代码中300在本js代码中代表失败次数,但如果失败次数超过300次,它就不会执行下面的代码。所以连点器和开发者模式都能让我进去。
再说了,懂点网页的人也知道可以右键查看源代码,密码都是明文,这不就很容易进去了。
所以建议加上取消右键,把失败次数改大点,再进行js加密。![表情[aoman]-X黑手网](https://bbs.x10001.com/wp-content/themes/zibll/img/smilies/aoman.gif)
![表情[cahan]-X黑手网](https://bbs.x10001.com/wp-content/themes/zibll/img/smilies/cahan.gif)
好吧![表情[ganga]-X黑手网](https://bbs.x10001.com/wp-content/themes/zibll/img/smilies/ganga.gif)

