C
clintonG
The use of JavaScript to write an e-mail address into the response of
a page at run-time has become a common technique to obstruct spam
spiders attempting to harvest e-mail addresses from websites.
I haven't seen any mention of the technique when used with image maps
and having to apply the technique to an image map at the top of the
homepage of my newly revised XHTML/CSS personal website I've
been working on motivated me to put this image map solution out into
the public domain...
<script type="text/javascript">
<!--
function composeMail( )
{
var recipient = "johndoe";
var domain = "somedomain.com";
window.location.href = "mailto:" + recipient + "@" + domain;
}
//-->
</script>
<map name = "ImageMapItems">
....
<area id = "composeMail" coords="145,16,159,2"
alt = "Compose email."
title = "Compose email."
href = "javascript:composeMail( );" />
....
</map>
<img src='image.gif' ... usemap="#ImageMapItems" />
<%= Clinton Gallagher
METROmilwaukee (sm) "A Regional Information Service"
NET csgallagher AT metromilwaukee.com
URL http://clintongallagher.metromilwaukee.com/
a page at run-time has become a common technique to obstruct spam
spiders attempting to harvest e-mail addresses from websites.
I haven't seen any mention of the technique when used with image maps
and having to apply the technique to an image map at the top of the
homepage of my newly revised XHTML/CSS personal website I've
been working on motivated me to put this image map solution out into
the public domain...
<script type="text/javascript">
<!--
function composeMail( )
{
var recipient = "johndoe";
var domain = "somedomain.com";
window.location.href = "mailto:" + recipient + "@" + domain;
}
//-->
</script>
<map name = "ImageMapItems">
....
<area id = "composeMail" coords="145,16,159,2"
alt = "Compose email."
title = "Compose email."
href = "javascript:composeMail( );" />
....
</map>
<img src='image.gif' ... usemap="#ImageMapItems" />
<%= Clinton Gallagher
METROmilwaukee (sm) "A Regional Information Service"
NET csgallagher AT metromilwaukee.com
URL http://clintongallagher.metromilwaukee.com/