Very slick, Howard!  I'm looking forward to taking it for a spin this
evening :)  Only suggestion I have right off is that you add a
copyright or licensing blurb at the top.

thanks,
Stephen

On Wed, 21 Jul 2004 12:47:07 -0700, Howard Cheng <[EMAIL PROTECTED]> wrote:
> Yikes, I forgot about some other Javascript... basically you have to
> tell the decode script what links to decode, so you also need something
> like this:
> 
> var linksToDecode = new Array();
> 
> // populates an array of mailto links that will later be used by the
> // decode script. NOTE: assumes that all mailto links are encoded!
> function decodeEmailLinks()
> {
>         for (var i = 0; i < document.links.length; i++)
>         {
>                 var l = document.links[i];
>                 if (l.href.indexOf("mailto") > -1)
>                 {
>                         linksToDecode[linksToDecode.length] = l;
>                 }
>         }
> 
>         for (var i = 0; i < linksToDecode.length; i++)
>         {
>                 NoSpamEmailHyperlink_DecodeScript(linksToDecode[i], decodeSeed);
>         }
> }
> 
> and then call decodeEmailLinks on load.
> 
> 
> 
> Howard Cheng wrote:
> 
> > I've posted it on my server:
> > http://www.howcheng.com/etc/encryptor.class.php.txt
> >
> > It's a relatively simple algorithm and can decode anything encoded given
> > the same code key and the same encryption seed. The code key is a string
> > of all 26 letters (lower and upper) and 10 digits, arranged randomly.
> > The encoding is simply character substitution, although it's not easy to
> > do to by hand.
> >
> > The original code was simply for email addresses, but I've redone it
> > slightly so that I can use it for anything.
> >
> > Stephen Caudill wrote:
> >
> >> I'd like to take a peek Howard :)  Is it posted anywhere?
> >>
> >> - Stephen
> >>
> >> On Wed, 21 Jul 2004 07:43:33 -0700, Howard Cheng
> >> <[EMAIL PROTECTED]> wrote:
> >>
> >>> This might be a little beyond your capabilities, but CodeProject had a
> >>> really interesting series of articles for an ASP.NET web control to
> >>> encode/decode addresses (encode on server-side, decode on client side).
> >>> I ported it to PHP if anyone is interested in it.
> >>>
> >>> http://www.codeproject.com/aspnet/NoSpamEmailHyperlink.asp
> >>>
> >>> [EMAIL PROTECTED] wrote:
> >
> >
> 
> --
> ::::::::::::::::::::::::::::::
> Howard Cheng
> http://www.howcheng.com/
> Wise-cracking quote goes here.
> 
> ____ ï The WDVL Discussion List from WDVL.COM ï ____
> To Join wdvltalk, Send An Email To: mailto:[EMAIL PROTECTED]
>        Send Your Posts To: [EMAIL PROTECTED]
> To set a personal password send an email to [EMAIL PROTECTED] with the words: "set 
> WDVLTALK pw=yourpassword" in the body of the email.
> To change subscription settings to the wdvltalk digest version:
>     http://wdvl.internet.com/WDVL/Forum/#sub
> 
> ________________  http://www.wdvl.com  _______________________
> 
> You are currently subscribed to wdvltalk as: [EMAIL PROTECTED]
> To unsubscribe send a blank email to [EMAIL PROTECTED]
> 
> To unsubscribe via postal mail, please contact us at:
> Jupitermedia Corp.
> Attn: Discussion List Management
> 475 Park Avenue South
> New York, NY 10016
> 
> Please include the email address which you have been contacted with.
> 
>

____ • The WDVL Discussion List from WDVL.COM • ____
To Join wdvltalk, Send An Email To: mailto:[EMAIL PROTECTED]
       Send Your Posts To: [EMAIL PROTECTED]
To set a personal password send an email to [EMAIL PROTECTED] with the words: "set 
WDVLTALK pw=yourpassword" in the body of the email.
To change subscription settings to the wdvltalk digest version:
    http://wdvl.internet.com/WDVL/Forum/#sub

________________  http://www.wdvl.com  _______________________

You are currently subscribed to wdvltalk as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]

To unsubscribe via postal mail, please contact us at:
Jupitermedia Corp.
Attn: Discussion List Management
475 Park Avenue South
New York, NY 10016

Please include the email address which you have been contacted with.

Reply via email to