Full version: jsB@nk » Email » Hide Multiple E-Mail Addresses
URL: https://www.javascriptbank.com/hide-multiple-email-addresses.html
Have a Web page with multiple e-mail addresses? Use this JavaScript to protect them from spambots. Simple to use.
Full version: jsB@nk » Email » Hide Multiple E-Mail Addresses
URL: https://www.javascriptbank.com/hide-multiple-email-addresses.html
<script type="text/javascript">// Created by: Lee Underwood :: http://javascript.internet.com/var userName = new Array(); // insert the first part of the address below userName[0]="msmith"; userName[1]="bjones"; userName[2]="ladams"; userName[3]="bstevens"; userName[4]="blarsen"; userName[5]="rschwartz"; userName[6]="msmithers"; userName[7]="pclark"; userName[8]="webmaster";var userNameFull = new Array(); // Insert the name associated with the address // Important! Make sure the numbers line-up with the addresses above userNameFull[0]="Mike Smith"; userNameFull[1]="Brenda Jones"; userNameFull[2]="Larry Adams"; userNameFull[3]="Brent Stevens"; userNameFull[4]="Bob Larsen"; userNameFull[5]="Randy Schwartz"; userNameFull[6]="Mary Smithers"; userNameFull[7]="Pat Clark"; userNameFull[8]="Contact Us";// Insert the domain name portion of the address belowvar siteName = "mydomain.com";i=0;do userName[i]='<a href=\"mailto:' + userName[i] + '@' + siteName + '\">' + userNameFull[i] + '</a>';while(userName[++i])// --></script><!-- This script downloaded from www.JavaScriptBank.com Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->
<div id="script"><strong>You can insert the addresses in a list:</strong><ol style="margin-top: 1pt; text-align: left;"> <li><script type="text/javascript">document.write(userName[0])</script></li> <li><script type="text/javascript">document.write(userName[1])</script></li> <li><script type="text/javascript">document.write(userName[2])</script></li> <li><script type="text/javascript">document.write(userName[3])</script></li> <li><script type="text/javascript">document.write(userName[4])</script></li> <li><script type="text/javascript">document.write(userName[5])</script></li> <li><script type="text/javascript">document.write(userName[6])</script></li> <li><script type="text/javascript">document.write(userName[7])</script></li> <li><script type="text/javascript">document.write(userName[8])</script></li></ol></div><div id="script2" style="text-align: left;"><strong>You can also insert the addresses anywhere on the page:</strong><p>Ma quande lingues coalesce, li grammatica del resultant lingue es plu simplic e regulari <script type="text/javascript">document.write(userName[6])</script> ti del coalescent lingues. A un Angleso it va semblar un simplificat Angles, quam un skeptic Cambridge amico dit me que Occidental es. <script type="text/javascript">document.write(userName[8])</script>.</p></div><!-- This script downloaded from www.JavaScriptBank.com Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->