The big issue with those javascript options is PDA's, Mobiles and Smart Phones don't like them much, and lots of people don't have javascript enabled on their machines so your cutting them out using a purely javascript option.
Also unless your use a unique custom wrote function spambots detect the code that everyone uses and pieces together emails in the examples that systreg posted, so its not that safe.
I personally use forms but when I need to display an email I use a graphic that used a gradient colour to make it harder for OCR spam bots to read the image, I also pull the emails from a database if there are alot of them or if just a few I use a Select Case / Switch like
switch (strtolower($email_id)) {
case "0":
$email = "
[email protected]";
break;
case "1":
$email = "
[email protected]";
break;
case "admin":
$email = "
[email protected]";
break;
case "info":
$email = "
[email protected]";
break;
default:
$email = "
[email protected]";
break;
}
I then pass it to a function I bastardised from
PHP script to convert email addresses to graphic to generate my graphic, then wrap the graphic in a link to my form.
Then when someone clicks on a link, I forward them to my form with the email pre-selected by the contact.php?id=0/1/admin/info, the form has a captcha code on it too. That way people can either write the email down or use the form provided.
Its trial and error what you do but you need to try each thing and see how it works out for you.
.