[求助]网页上的加密文件
下面是第八军团的黑客知识竞赛第三关网页程序的原文件,谁能帮忙解释一下啊?(我不回JAVA)passwd="ItIsSoEasy";
function disable_right_click(e) {
var browser = navigator.appName.substring ( 0, 9 );
var event_number = 0;
if (browser=="Microsoft")
event_number = event.button;
else
event_number = e.which;
if ( event_number==2 || event_number==3 || event_number==4) {
alert ("这个应该难不倒你吧!");
return (false);
}
return (true);
}
function check_mousekey () {
var mouse_key = 93;
var keycode = event.keyCode;
if ( keycode == mouse_key )
alert ( "这个应该难不倒你吧!" );
}
function trap_page_mouse_key_events () {
var browser = navigator.appName.substring ( 0, 9 );
document.onmousedown = disable_right_click;
if ( browser == "Microsoft" )
document.onkeydown = check_mousekey;
else
document.captureEvents( Event.MOUSEDOWN );
}
window.onload = trap_page_mouse_key_events;

努力,哈哈,总有一天会变成高手~~~~~~因为我相信:没有办不到,只有想不到!http://t..cn/fpress