Does this work for you?

<cfscript>
   function safeEmail(email){
     var atSignPos = Find("@",email);
     var name = left(email,atSignPos-1);
     var emailLen = len(email);
     var domainLen = emailLen - atSignPos;
     var domain = right(email,domainLen);
     var temp = '
     
      <InvalidTag language="JavaScript" type="text/javascript"> 
      <!-- 
      r8d=''<a href="mai'';
      r1x=''#domain#'';
      x9n=''#name#'';
      document.write(r8d,''lto:'',x9n,''@'',r1x,''">'',x9n, ''@'',r1x, 
''</a>''); 
      // -->
      </script>';
     
     return temp;
   }
   
   writeOutput(safeEmail("[EMAIL PROTECTED]"));
</cfscript>


> thanks :)
> 
> ~Dave the disruptor~
> "Some people just don't appreciate how difficult it is to dispense 
> wisdom and abuse at the same time." 
> 
> ----------------------------------------
> From: Jon Austin <[EMAIL PROTECTED]>
> Sent: Thursday, October 27, 2005 1:40 AM
> To: CF-Talk <cf-talk@houseoffusion.com>
> Subject: Re: anti-sp*m email addy hiding techniques 
> 
> On 10/27/05, dave  wrote:
> > anyone have any tricks that actually work? besides making it like me 
> at mysite.com.
> > I know there is a udf on cflib but like the comment says its really 
> not a good solution.
> 
> Get JS to abstract it and write it out..
> 
> E.g. Sample JS/HTML output would be:
> 
> ',x9n,'@',r1x,
> ''); // -->
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:222512
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to