[Javascript] Quashing Email Spiders

Peter Brunone peter at brunone.com
Wed Dec 5 15:01:02 CST 2001


    Sure; you'd just change contact to an image link, making sure to use
single quotes to avoid messing up the double-quote delimiters, e.g.

var contact = "<IMG SRC='whatever.gif'>";

----- Original Message -----
From: <vindaloo at pixieparlour.com>
To: "Javascript" <javascript at LaTech.edu>
Sent: Wednesday, December 05, 2001 2:45 PM
Subject: [Javascript] Quashing Email Spiders


| Hi Group!
|
| I've just recently joined and thought I'd introduce myself, before asking
a
| question.  My name is Kyla and I'm a web designer.  I run my own web
design
| company in British Columbia, Canada and have been designing for the web
for
| about four years now.  I'm not really a coder, but I like to understand
the
| basics of how something works, and so here I am ready to soak up all your
| knowledage about javascript!
|
| I just found some nifty code for hiding email addresses (thanks to
| netmechanic) from Email Spiders.  The only problems is that it uses HTML
| text links and I'm using a link from an image.  The code is this:
|
| <p>Send your comments and questions to our
| <script language=javascript>
| <!--
| var contact = "Newsletter Editor"
| var email = "news"
| var emailHost = "netmechanic.com"
| document.write("<a href=" + "mail" + "to:" + email + "@" + emailHost+ ">"+
| contact + "</a>" + ".")
| //-->
| </script>
| </p>
|
| Can you tell me if it'll still work if I take out the line that states:
|
| var contact = "Newsletter Editor"
|
| as this creates an HTML link on my page?
|
| TIA and have a sunny day,
|
| Kyla Phillips  :o)
| the pixie parlour
| www.pixieparlour.com
|
|




More information about the Javascript mailing list