<?xml version="1.0" encoding="UTF-8"?><rss
version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
xmlns:series="http://unfoldingneurons.com/"
> <channel><title>Comments on: Email Protection with MooTools&#160;JavaScript</title> <atom:link href="http://davidwalsh.name/email-protection-mootools-javascript/feed" rel="self" type="application/rss+xml" /><link>http://davidwalsh.name/email-protection-mootools-javascript</link> <description>Legendary scribbles about JavaScript, HTML5, AJAX, PHP, CSS, and ∞.</description> <lastBuildDate>Thu, 09 Feb 2012 15:40:33 +0000</lastBuildDate> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3</generator> <item><title>By: alpha123</title><link>http://davidwalsh.name/email-protection-mootools-javascript/comment-page-1#comment-25912</link> <dc:creator>alpha123</dc:creator> <pubDate>Mon, 11 Jul 2011 19:28:11 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=371#comment-25912</guid> <description>My favorite isHTML:
&lt;code&gt;
&lt;a href=&quot;hahaspammers&quot; title=&quot;Don&#039;t click this if you have JavaScript disabled (you probably don&#039;t)&quot; rel=&quot;nofollow&quot;&gt;eman.hslawdivad@divad&lt;/a&gt;
&lt;/code&gt;CSS:
&lt;code&gt;
.email {
direction: rtl;
}
&lt;/code&gt;JS:
&lt;code&gt;
$$(&#039;.email&#039;).each(function (e) {
e.href = (e.innerText &#124;&#124; e.textContent).split(&#039;&#039;).reverse().join(&#039;&#039;);
});
&lt;/code&gt;</description> <content:encoded><![CDATA[<p>My favorite is</p><p>HTML:<br
/> <code><br
/> <a
href="hahaspammers" title="Don't click this if you have JavaScript disabled (you probably don't)" rel="nofollow">eman.hslawdivad@divad</a><br
/> </code></p><p>CSS:<br
/> <code><br
/> .email {<br
/> direction: rtl;<br
/> }<br
/> </code></p><p>JS:<br
/> <code><br
/> $$('.email').each(function (e) {<br
/> e.href = (e.innerText || e.textContent).split('').reverse().join('');<br
/> });<br
/> </code></p> ]]></content:encoded> </item> <item><title>By: chad</title><link>http://davidwalsh.name/email-protection-mootools-javascript/comment-page-1#comment-20849</link> <dc:creator>chad</dc:creator> <pubDate>Thu, 30 Sep 2010 17:02:35 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=371#comment-20849</guid> <description>i guess it pays to read instructions :)
js code:
&lt;code&gt;
$$(&#039;.email&#039;).each(function(el) {
el.set(&#039;html&#039;,el.get(&#039;href&#039;).replace(&#039;&#124;&#039;,&#039;@&#039;).replace(&#039;/&#039;,&#039;&#039;));
el.set(&#039;href&#039;,&#039;mailto:&#039; + el.get(&#039;href&#039;).replace(&#039;&#124;&#039;,&#039;@&#039;).replace(&#039;/&#039;,&#039;&#039;));
});
&lt;/code&gt;
html code:
&lt;code&gt;
&lt;a href=&quot;/info&#124;domain.com&quot; title=&quot;Email me&quot; rel=&quot;nofollow&quot;&gt;/info&#124;domain.com&lt;/a&gt;
&lt;/code&gt;</description> <content:encoded><![CDATA[<p>i guess it pays to read instructions :)<br
/> js code:<br
/> <code><br
/> $$('.email').each(function(el) {<br
/> el.set('html',el.get('href').replace('|','@').replace('/',''));<br
/> el.set('href','mailto:' + el.get('href').replace('|','@').replace('/',''));<br
/> });<br
/> </code><br
/> html code:<br
/> <code><br
/> <a
href="/info|domain.com" title="Email me" rel="nofollow">/info|domain.com</a><br
/> </code></p> ]]></content:encoded> </item> <item><title>By: chad</title><link>http://davidwalsh.name/email-protection-mootools-javascript/comment-page-1#comment-20848</link> <dc:creator>chad</dc:creator> <pubDate>Thu, 30 Sep 2010 16:59:31 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=371#comment-20848</guid> <description>also maybe add this to the beginning of the js function:
el.set(&#039;html&#039;,el.get(&#039;href&#039;).replace(&#039;&#124;&#039;,&#039;@&#039;).replace(&#039;/&#039;,&#039;&#039;));and your html would be:
&lt;a href=&quot;/info&#124;domain.com&quot; title=&quot;Email me&quot; rel=&quot;nofollow&quot;&gt;/info&#124;domain.com&lt;/a&gt;</description> <content:encoded><![CDATA[<p>also maybe add this to the beginning of the js function:<br
/> el.set(&#8216;html&#8217;,el.get(&#8216;href&#8217;).replace(&#8216;|&#8217;,'@&#8217;).replace(&#8216;/&#8217;,&#8221;));</p><p>and your html would be:<br
/> <a
href="/info|domain.com" title="Email me" rel="nofollow">/info|domain.com</a></p> ]]></content:encoded> </item> <item><title>By: Oren</title><link>http://davidwalsh.name/email-protection-mootools-javascript/comment-page-1#comment-15179</link> <dc:creator>Oren</dc:creator> <pubDate>Mon, 11 Jan 2010 22:38:17 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=371#comment-15179</guid> <description>@peter:  You can add a recursive flag to .replace()http://www.w3schools.com/jsref/jsref_replace.asp look at example 3</description> <content:encoded><![CDATA[<p>@peter:  You can add a recursive flag to .replace()</p><p><a
href="http://www.w3schools.com/jsref/jsref_replace.asp" rel="nofollow">http://www.w3schools.com/jsref/jsref_replace.asp</a> look at example 3</p> ]]></content:encoded> </item> <item><title>By: tekkie</title><link>http://davidwalsh.name/email-protection-mootools-javascript/comment-page-1#comment-10689</link> <dc:creator>tekkie</dc:creator> <pubDate>Sun, 26 Jul 2009 08:58:33 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=371#comment-10689</guid> <description>Release date of &lt;a href=&quot;http://obfuscatr.flashbit.net&quot; rel=&quot;nofollow&quot;&gt;obfuscatr&lt;/a&gt; version 1.3.0 confirmed to be 1st August 2009.New version will feature CSS-obfuscation.</description> <content:encoded><![CDATA[<p>Release date of <a
href="http://obfuscatr.flashbit.net" rel="nofollow">obfuscatr</a> version 1.3.0 confirmed to be 1st August 2009.</p><p>New version will feature CSS-obfuscation.</p> ]]></content:encoded> </item> <item><title>By: click</title><link>http://davidwalsh.name/email-protection-mootools-javascript/comment-page-1#comment-9386</link> <dc:creator>click</dc:creator> <pubDate>Sat, 23 May 2009 23:47:46 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=371#comment-9386</guid> <description>Nice! We very enjoyed your site .</description> <content:encoded><![CDATA[<p>Nice! We very enjoyed your site .</p> ]]></content:encoded> </item> <item><title>By: tips</title><link>http://davidwalsh.name/email-protection-mootools-javascript/comment-page-1#comment-8414</link> <dc:creator>tips</dc:creator> <pubDate>Wed, 25 Mar 2009 04:50:16 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=371#comment-8414</guid> <description>Your site is a refreshing change from the majority of sites I have visited. When I first started visiting web sites I was excited by the potential of the internet as a resource and was very disappointed initially. You have restored my enthusiasm and I thank you for your efforts to share your insights and help the world become a better place.</description> <content:encoded><![CDATA[<p>Your site is a refreshing change from the majority of sites I have visited. When I first started visiting web sites I was excited by the potential of the internet as a resource and was very disappointed initially. You have restored my enthusiasm and I thank you for your efforts to share your insights and help the world become a better place.</p> ]]></content:encoded> </item> <item><title>By: liam dilley</title><link>http://davidwalsh.name/email-protection-mootools-javascript/comment-page-1#comment-7328</link> <dc:creator>liam dilley</dc:creator> <pubDate>Thu, 15 Jan 2009 03:06:12 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=371#comment-7328</guid> <description>If you were going to use similar and change text with in an element
window.addEvent(&#039;domready&#039;, function(){
$$(&#039;breadcrumbs&#039;).each(function(el) {
el.set(&#039;html&#039; + el.get(&#039;html&#039;).replace(&#039;.html&#039;,&#039;.link&#039;));
});});How do you target the html in this way as this does not seem to work?</description> <content:encoded><![CDATA[<p>If you were going to use similar and change text with in an element<br
/> window.addEvent(&#8216;domready&#8217;, function(){<br
/> $$(&#8216;breadcrumbs&#8217;).each(function(el) {<br
/> el.set(&#8216;html&#8217; + el.get(&#8216;html&#8217;).replace(&#8216;.html&#8217;,&#8217;.link&#8217;));<br
/> });</p><p>});</p><p>How do you target the html in this way as this does not seem to work?</p> ]]></content:encoded> </item> <item><title>By: david</title><link>http://davidwalsh.name/email-protection-mootools-javascript/comment-page-1#comment-4171</link> <dc:creator>david</dc:creator> <pubDate>Fri, 12 Dec 2008 04:11:07 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=371#comment-4171</guid> <description>&lt;p&gt;@shaun  Your above code doesn&#039;t prevent spam in any way.  Many echo&#039;s is meaningless -- may as well echo out the entire address at once.&lt;/p&gt;</description> <content:encoded><![CDATA[<p>@shaun  Your above code doesn&#8217;t prevent spam in any way.  Many echo&#8217;s is meaningless &#8212; may as well echo out the entire address at once.</p> ]]></content:encoded> </item> <item><title>By: shaun</title><link>http://davidwalsh.name/email-protection-mootools-javascript/comment-page-1#comment-4170</link> <dc:creator>shaun</dc:creator> <pubDate>Fri, 12 Dec 2008 01:03:38 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=371#comment-4170</guid> <description>could also use php to echo different parts of the email address...this isn&#039;t that sophistocated, as some email spammers could scan the line an put it together....you could put a different number of characters in each echo statement to make it a little more difficult to pick apart.echo (&#039;s&#039;);
echo (&#039;h&#039;);
echo(&#039;a&#039;);
echo(&#039;u&#039;);
echo(&#039;n&#039;);
echo(&#039;r&#039;);
echo(&#039;o&#039;);
echo(&#039;t&#039;);echo(&#039;o&#039;); echo(&#039;o&#039;);
echo(&#039;l&#039;);
echo(&#039;e&#039;);
echo(&#039;@hot&#039;);
echo(&#039;mail&#039;);
echo(&#039;.com&#039;);</description> <content:encoded><![CDATA[<p>could also use php to echo different parts of the email address&#8230;this isn&#8217;t that sophistocated, as some email spammers could scan the line an put it together&#8230;.you could put a different number of characters in each echo statement to make it a little more difficult to pick apart.</p><p>echo (&#8216;s&#8217;);<br
/> echo (&#8216;h&#8217;);<br
/> echo(&#8216;a&#8217;);<br
/> echo(&#8216;u&#8217;);<br
/> echo(&#8216;n&#8217;);<br
/> echo(&#8216;r&#8217;);<br
/> echo(&#8216;o&#8217;);<br
/> echo(&#8216;t&#8217;);echo(&#8216;o&#8217;); echo(&#8216;o&#8217;);<br
/> echo(&#8216;l&#8217;);<br
/> echo(&#8216;e&#8217;);<br
/> echo(&#8216;@hot&#8217;);<br
/> echo(&#8216;mail&#8217;);<br
/> echo(&#8216;.com&#8217;);</p> ]]></content:encoded> </item> </channel> </rss>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using disk: enhanced (User agent is rejected)
Database Caching 1/17 queries in 0.011 seconds using disk: basic
Object Caching 865/866 objects using disk: basic

Served from: davidwalsh.name @ 2012-02-09 11:23:58 -->
