Well … This is a simple text substitution of "this" for "that" and your HTML editor can handle this sort of global change in all of your files. It wouldn't take long to update the pages for one address, but changing "n" addresses could take "n" passes, and uploading dozens of pages could take a good part of your weekend — unless you go searching for an ftp program that will upload them in a single batch.
makeAddr()
.
Using this function the HTML coding is simple, and no
mailto:
or @ sign appears in the raw HTML files for
spambots
to harvest.
On the left is the JavaScript that calls
makeAddr()
to create the email links
in the table on the right.
Put your mouse pointer over the links and see the URLs in
the status bar of your browser.
(But please don't use them to actually send email.
Tom, Dick and Mary's are fictitious. :-))
<script type="text/javascript"> <!-- makeAddr(0); preextra = "<BR>"; makeAddr(1); makeAddr(2); makeAddr(3); makeAddr(4); makeAddr(5); // --> </script> <script type="text/javascript"> <!-- preextra = ""; makeAddr("Tom"); preextra = "<BR>"; makeAddr("Dick"); makeAddr("Mary Contrary"); makeAddr("Your Name"); makeAddr("Info"); makeAddr("Webmaster"); // --> </script>
Links Using Numerical Indices | Links Using Named Indices |
---|---|
Feel free to download a sample database and the
makeAddr()
JavaScript source code.
It is heavily commented so even if you are not a JavaScript
programmer, it should be clear how to use it on your web site.
Permission is granted to use this JavaScript Email code
provided the copyright notice is retained.
If you use it please give us about how you like it.
We have an even better version that doesn't write the email link until the user clicks on it.
If you need help designing and implementing your JavaScript software applications or web design, call Design Matrix at (310) 455 3107 or
Joint projects with other software and web designers are welcome.