I really don't know if it helps, but it will prevent some spambots at least I hope.
I want to embed this code into a contact page. I pasted it in a wysiwyg page and it works fine, but when I go and edit the page again, the code disappears.
So I think it has to be placed in a code page, and of course I tried that by echo ' <code> ';
But that doesn't work.
I hope there is a solution for it.
Here's the code:
<script type="text/javascript" language="javascript">
<!--
{ coded = "5OSQjFZ95t@HuZ9M.Oh"
key = "48TalNouG9wWzKbmRrxiksZh1QCfnUPvBeFXjI56M37y2DSOpJcVtALgEH0Ydq"
shift=coded.length
link=""
for (i=0; i<coded.length; i++) {
if (key.indexOf(coded.charAt(i))==-1) {
ltr = coded.charAt(i)
link += (ltr)
}
else {
ltr = (key.indexOf(coded.charAt(i))-shift+key.length) % key.length
link += (key.charAt(ltr))
}
}
document.write("<a href='mailto:"+link+"'>stuur me dan een mailtje.</a>")
}
//-->
</script><noscript>Sorry, you need Javascript on to email me.</noscript></p>
.
Oh b.t.w. it's from here:
http://www.jottings.com/obfuscator.htm