Box Type: RICH TEXT using HTML Source Editor
If you wish to place an email address within one of your LibGuides that is NOT in the right sidebar profile boxes, this is a safe way to do so without spammers harvesting your email.
Copy, paste and edit this text using HTML SOURCE EDITOR any place you want your email address to be so it is protected from spam email (from ISU's IT dept):
<script type="text/javascript">// <![CDATA[ document.write('<a href="mailto:' + (['[NetID]', 'iastate.edu?subject=[add subject]'].join('@')) + '">' + '[REPLACE TEXT]' + '</a>'); // ]]></script> <ins><noscript>[NetID]@iastate.edu(<div><code>[NetID] (at) iastate (dot) edu</code></div>)</noscript></ins>
When someone mouses over the text, it will show them the "mailto:" address, but spammers will not be able to harvest the email.
If you want to embed this in a sentence, copy and paste all but the <p> and </p> tags
The finished product would look like this to the browser (using my email as an example):
The Code (inserted parts in red for clarity):
<p>If you want to try variations on this script involving more complex email addresses and don't know how, <script type="text/javascript">// <![CDATA[ document.write('<a href="mailto:' + (['njdowell', 'iastate.edu?subject=Scripting Question'].join('@')) + '">' + 'Contact Me!' + '</a>'); // ]]></script> <ins><noscript>njdowell@iastate.edu(<div><code>njdowell (at) iastate (dot) edu</code></div>)</noscript></ins>
The Result:
If you want to try variations on this script involving more complex email addresses and don't know how,