Quote:
Originally Posted by John Godwin I am really new to this website stuff so here goes a question. I would like to add a link to an email address in a web page but would like to keep the address hidden from email harvesters. Is there a way to do that in Dreamweaver? |
This is just pain old html/javascript, nothing dreamhost specific.
Code:
<span style="cursor: pointer;" onclick="var emmm='p!e!r!s!o!n!@!h!o!s!t!.!c!o!m'.replace(/!/g,''); this.innerHTML=emmm; location.href='mailto:'+emmm;">Click to Email</span>
When you click it, it will remove all the ! characters in that string "p!e!r!s!o!n!@!h!o!s!t!.!c!o!m" =>
person@host.com, set the span's text to
person@host.com so they can select it, and also open up a email (using mailto:).
I doubt most harvesting bots process javascript or go around clicking span's.