>>They have asked me if there is a way to hide the email address 
better...does anyone have any ideas?

1. put this in your application.cfm:
<CFSCRIPT>
function encodeAddress(a)
    {
    return replace(replace(a, "@", "$"), ".", ";", "all");
    }
</CFSCRIPT>   
<SCRIPT>
function decodeAddress(a)
    {
    a.href = a.href.replace(/;/g, ".");
    a.href = a.href.replace(/\$/, "@");
    }
</SCRIPT>

2. in any page where you want visitors to be able to send a message:
<A HREF="mailto:#encodeAddress(email)#" onClick="decodeAddress(this)">
Name of the addressee</A>

[EMAIL PROTECTED] will appear as anyAddress$anysite;com in the 
source code,
but correctly in the visitor's message window.

-- 
_______________________________________
REUSE CODE! Use custom tags;
See http://www.contentbox.com/claude/customtags/tagstore.cfm
(Please send any spam to this address: [EMAIL PROTECTED])
Thanks.


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:261737
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to