Simple Javascript Email Obfuscator

To use, just create an empty span tag with the class "email"
and then set the id to the name at your domain you want to use.

EXAMPLE:
    <span id="test1" class="email"></span>
    
RESULTS IN:
    test1@mydomain.com

NOTES:
  - You can make the email addresses linked by sending "true" to the
    function (default is unlinked).
  
  - You can also send a second param which indicates the domain to use
    (will default to your current domain).
  
  - In order to use this script. you must call it from body's onload attribute.

    <body onload="fixEmail(true,'mydomain.com');">
    
DOWNLOAD:
    email-obfuscator.js
    
    
Jonathan Cross :: 2009


Example:

Lorem ipsum vada manga [please turn on javascript to see email address] la la palooza grokney [please turn on javascript to see email address] sri baba grow gaga [please turn on javascript to see email address]

If you see links above, then it worked!
If not, then your browser is too old and / or javascript is turned off.