Date: 12/30/06 (Javascript Community) Keywords: css, html, java, security, spam I have an old site thats getting spammed so I created this faux graphic security script
JAVASCRIPT IN EXTERNAL FILE sk.js //faux graphic security title = new Array(5); title[0] = 'securitykey00.gif' title[1] = 'securitykey01.gif' title[2] = 'securitykey02.gif' title[3] = 'securitykey03.gif' title[4] = 'securitykey04.gif' index = Math.floor(Math.random() * title.length); document.write("Please enter number to continue to add listing."); document.write(" function compareVal(location) { title = new Array(5); title[0] = 'a3f67j9L'; title[1] = 'K1yp97E'; title[2] = 'Ww253Gh'; title[3] = '6K6k6K2'; title[4] = 'wKrP738'; value = document.getElementById("testvalue").val if(title[location] == value) { document.getElementById("form").style.di document.getElementById("security").styl } else { alert("Please enter the correct value."); } //alert(location +" - "+value); } HTML AND CSS Source: http://community.livejournal.com/javascript/122818.html
|