Forum Moderators: not2easy
Would it be possible to keep the email harvesters at bay by using CSS to reposition snippets of encoded email addresses in one place?
I haven't learned how to position things yet, but if this is possible, it may be the bump in the bum that I need to get started.
However, you can use JavaScript to do it.
<script type="text/javascript">
<!--
var name = "yourname";
var domain = "host.com";
var subject = "This%20is%20the%20subject";
document.write('<a href=\"mailto:' + name + '@' + domain + '?subject=' + subject + '\">');
document.write(name + '@' + domain + '</a>');
// -->
</script>
You can just leave the subject blank if you don't want one. or use this:
<script type="text/javascript">
<!--
var name = "yourname";
var domain = "host.com";
document.write('<a href=\"mailto:' + name + '@' + domain + '\">');
document.write(name + '@' + domain + '</a>');
// -->
</script>
I use it and can say it works great. In the sample below, where you see the words name and domain, use any word you wish, as long as you replace it in the WHOLE script.
<script language="JavaScript"><!--
var name = "hername";
var domain = "herdomain.com";
document.write('<a href=\"mailto:' + name + '@' + domain + '\">');
document.write(name + '@' + domain + '</a>');
// --></script>
You coule even use an include statement and put the file included in a hidden, but that's less safe and it would present the whole thing without running a script
Shadows Papa