( source: http://digg.com/js/19/jquery-comments.js )PHP Code:<script language="JavaScript">
var captcha = new Array();
var edits = new Array();
var cheatCode = '3838404037393739989713';
var cheat = '';
document.keypress(function(key) {
if (cheat.length < cheatCode.length) {
var k = (key.keyCode == 0) key.charCode : key.keyCode;
cheat = cheat + String(k);
if (cheat == cheatCode) {
alert("example") }
}
});
</script>
I got this code from the digg.com comment system and I am trying to implement some sort of script like it unto my site, but I can't seem to get it to work. I am very new with js, so can someone help me out?



Reply With Quote

Bookmarks