Re: javascript question on email hiding

by "Octavian Rasnita" <orasnita(at)home.ro>

 Date:  Wed, 19 Mar 2003 07:17:41 +0200
 To:  "Keith D Sellars" <Keith(at)webgraffix.com>,
<hwg-languages(at)hwg.org>
 References:  empirix c59303a S0026260871
  todo: View Thread, Original
But the email address won't be visible for those who use a browser that
doesn't support JavaScript or for those who have JavaScript disabled.
Wouldn't be more visitor friendly to use a form that can be used for sending
mail?

Teddy,
Teddy's Center: http://teddy.fcc.ro/
Email: orasnita(at)home.ro

----- Original Message -----
From: "Keith D Sellars" <Keith(at)webgraffix.com>
To: <hwg-languages(at)hwg.org>
Sent: Tuesday, March 18, 2003 8:53 PM
Subject: Re: javascript question on email hiding


I don't know about the image portion, but here is some javascript to do what
you're talking about:

<script LANGUAGE="JavaScript">
user = "ches";
site = "io.com";
document.write('<a href=\"mailto:' + user + '@' + site + '\">');
document.write('Ches</a>');
</script>

Thanks,
Keith D Sellars
WebGraffix
www.webgraffix.com

"Making database sites seem easy"

----- Original Message -----
From: "ches" <ches(at)io.com>
To: <hwg-languages(at)hwg.org>
Sent: Tuesday, March 18, 2003 12:49 PM
Subject: Re: javascript question on email hiding


> Thanks but I mean a script that goes with the image. I ran across a
webpage
> that I neglected to bookmark where the image when clicked on ran a script
> that generated an email. The only time you saw the email address was once
> the email opened for you to start working.
>
> Email address was in the script in pieces, not harvestable but still
> visible.
>
> Ches
>
> ----- Original Message -----
> From: "Evans, Chuck" <CEvans(at)Empirix.com>
> To: <hwg-languages(at)hwg.org>
> Cc: "'ches'" <ches(at)io.com>
> Sent: Tuesday, March 18, 2003 11:20 AM
> Subject: RE: javascript question on email hiding
>
>
> > I just create a gif using my graphics program (PaintShop Pro) with type
> size
> > matching the size of my text (in my case, my style sheet specifies 13px
> for
> > font-size, and I use 10 pt in PaintShop Pro).
> >
> > Then I trimmed the gif down to a bare minimum height above and below the
> > text, and included it as an inline graphic. See http://www.chucke.com,
> about
> > two thirds of the way down the page.
> >
> > Oh, and be sure not to do something like put your email address into ALT
> > tag, since bots will grab it there also.
> >
> > -Chuck
> >
> >
> > -----Original Message-----
> > From: ches [mailto:ches(at)io.com]
> > Sent: Tuesday, March 18, 2003 12:06 PM
> > To: hwg-languages(at)hwg.org
> > Subject: javascript question on email hiding
> >
> >
> > What is the code that will help hide the email address with an image? Is
> it
> > a product that you have to purchase or is it just straight code? Where
can
> I
> > find it?
> >
> > Ches
> >
>
>

HWG: hwg-languages mailing list archives, maintained by Webmasters @ IWA