Created
August 28, 2016 16:19
-
-
Save artlung/ed7701b27062305be51a488929d10bd9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<% | |
Function obfuscateEmail(inEmail) | |
Dim strOut | |
strOut = "" | |
strOut = strOut & "<a href=""#"" onmouseover=""this.href='mail'+'to:" | |
strOut = strOut & Left(Server.UrlEncode(inEmail),3) & "'+'" & Mid(Server.UrlEncode(inEmail),4,1) & "'+'" & Mid(Server.UrlEncode(inEmail),5) | |
' jcrawfo'+'rd%40laur'+'elsprin'+'gs%2Ecom' | |
strOut = strOut & "'"">" | |
strOut = strOut & Replace(Replace(inEmail,"@"," [at] "),"."," dot ") | |
'jcrawford[at]laurelsprings dot com | |
strOut = strOut & "</a>" | |
obfuscateEmail = strOut | |
End Function | |
%> | |
<% Response.Write obfuscateEmail("jcrawford@laurelsprings.com") %> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment