Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Javascript > how can I use javascript to hide an email address with an image link from spambots?

Reply
Thread Tools

how can I use javascript to hide an email address with an image link from spambots?

 
 
Millie
Guest
Posts: n/a
 
      11-14-2003
Okay, I'm using this code

<script language=JavaScript>
<!--
var username = "username";
var hostname = "domain.com";
var linktext = "click here to send me email";
document.write("<a href=" + "mail" + "to:" + username +
"@" + hostname + ">" + linktext + "</a>")
//-->

</script>

in an attempt to cut down on the whole spam problem. However, I have
an image link that I would like to use this with. Now, I'm sorry I'm a
newbie at this, so I hope this isn't a stupid question, but what is
the correct code to do this with an image link?

TIA
 
Reply With Quote
 
 
 
 
Hywel Jenkins
Guest
Posts: n/a
 
      11-14-2003
In article <(E-Mail Removed) >,
http://www.velocityreviews.com/forums/(E-Mail Removed) says...
> Okay, I'm using this code
>
> <script language=JavaScript>
> <!--
> var username = "username";
> var hostname = "domain.com";
> var linktext = "click here to send me email";
> document.write("<a href=" + "mail" + "to:" + username +
> "@" + hostname + ">" + linktext + "</a>")
> //-->
>
> </script>
>
> in an attempt to cut down on the whole spam problem. However, I have
> an image link that I would like to use this with. Now, I'm sorry I'm a
> newbie at this, so I hope this isn't a stupid question, but what is
> the correct code to do this with an image link?
>

Change
var linktext = "click ...";
to something like
var linktext = "<img src=\"mypic.gif\">";

--
Hywel I do not eat quiche
http://hyweljenkins.co.uk/
http://hyweljenkins.co.uk/mfaq.php
 
Reply With Quote
 
 
 
 
Thomas 'PointedEars' Lahn
Guest
Posts: n/a
 
      11-18-2003
Millie wrote:

> Okay, I'm using this code
>
> <script language=JavaScript>


<script type="text/javascript">

> [scriptkiddie's bullshit]
> in an attempt to cut down on the whole spam problem [...]


and replace it with a usability problem. Great.


PointedEars, wondering why so few people read before they post
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: How include a large array? Edward A. Falk C Programming 1 04-04-2013 08:07 PM
How do I get the email address of the person who clicked the link inthe email? Zeynel Python 1 12-06-2010 02:26 AM
Re: Hide Address Bar or Encrypt Address?? Patrice ASP .Net 0 05-04-2004 03:48 PM
Re: Hide Address Bar or Encrypt Address?? avnrao ASP .Net 1 05-04-2004 03:46 PM
Hide the email address owenico Computer Support 2 09-24-2003 02:39 PM



Advertisments