anti-spam with image in fp 2003

M

Mark G.

There are a number of ways to hide or setup text with email attached to it
so that spam harvesters can not get to it or at least helps. But with all
the tips I have seen, none of them address using an image and adding this
trick. What I have done is interested an image in a webpage I am laying out
with FP2003 and I want to right click on the image and add a mailto: there,
but also want to add some kind of anti-spam stuff as well. I was hoping
someone here can help me with this? I believe I was clear enough, but if
not, please ask me to clarify. Thanks much and again, I hope someone can
help.
 
R

Ronx

One solution to expand on is:

<p><script type="text/javascript">
<!--
var us,dm,addy;
us = "ronx917";
dm = "hotmail.com"
addy = username + chr(64) + dm
document.write("<a href=\"mai" + "lto:" + us + chr(64) + dm + \">")
document.write("<img src=\"images/mailbutton.gif\" width=\"40\"
height="\20\" alt=\"\">")
document.write("</a>")
// -->
</script>
<noscript>Some alternative text for non-javascript browsers</noscript>
</p>

Make sure the image path is correct for each page this is inserted
into - FrontPage will not manage scripted links such as the above.
 
K

Kevin Spencer

One additional note: This does not use right-click, but left-click is really
fine, and using right-click would involve problematic use of JavaScript.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
You can lead a fish to a bicycle,
but it takes a very long time,
and the bicycle has to *want* to change.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top