Search the web
Sign In
New User? Sign Up
DesignAdvice · Design Advice
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Want your group to be featured on the Yahoo! Groups website? Add a group photo to Flickr.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Cloaking your email address online   Message List  
Reply | Forward Message #38 of 65 |
RE: [DesignAdvice] Cloaking your email address online

Hi Jodi,

> No, I don't Shawn. In the one that I originally had,
> I didn't need it. Is this something that should go in
> the header area?

Yes, something like this:

<script type="text/javascript" defer="defer"
src="/library.js"></script>

The contents of /library.js would be (three lines):

function mailMe(sDom, sUser){
return("mail"+"to:"+sUser+"@"+sDom.replace(/%23/g,"."));
}


You may then use the same javascript file for any other global scripts
you want to have available for the rest of your site - like something
for clearing the default value of a textbox or spiffy style changes or
breaking out of remote frames... Look at my own scripting library for
ideas:
http://ReliableAnswers.com/Scripts/Library.js
(WARNING: This is a script file, and unless you have great patience
for errors you'll probably want to download the file directly, instead
of hitting it in your browser).

I probably ought to make that easier for people to get... try this
link instead:
http://ReliableAnswers.com/Scripts/Library.asp?dl

Give me a couple minute to put that file up. :)

Regards,

Shawn K. Hall
http://ReliableAnswers.com/

'// ========================================================
Revisiting the Revolutionary War is a bracing reminder
that the fate of a continent, and the shape of the
modern world, turned on the free choices of remarkably
few Americans defying an empire.
-- George Will





Mon Aug 9, 2004 3:05 am

shawn_ra
Online Now Online Now
Send Email Send Email

Forward
Message #38 of 65 |
Expand Messages Author Sort by Date

Hello all, I'm announcing a new article on my site which describes how to reduce (if not eliminate) spambots collecting email addresses from your site. ...
Shawn K. Hall
shawn_ra
Online Now Send Email
Aug 8, 2004
11:41 pm

So Shawn, if I'm reading that correctly, then what I'm using is basically out of date? Here's what I'm using: <script language="JavaScript"> <!-- // Hide var...
nostrebor@...
jodirobertso...
Offline Send Email
Aug 9, 2004
12:15 am

Hi Jodi, ... Pretty much, yes. It uses some similar encoding methods, but since the domain still appears as a simple string ([a-zA-Z0-9]*\.[a-zA-Z]{2,7}) and...
Shawn K. Hall
shawn_ra
Online Now Send Email
Aug 9, 2004
1:04 am

I'm getting an error "Object Expected" using this: <a href="/contact/" title="Email" ...
nostrebor@...
jodirobertso...
Offline Send Email
Aug 9, 2004
2:17 am

Hi Jodi, ... Do you have the javascript file that includes the mailMe() function referenced somewhere in your code? Regards, Shawn K. Hall ...
Shawn K. Hall
shawn_ra
Online Now Send Email
Aug 9, 2004
2:43 am

No, I don't Shawn. In the one that I originally had, I didn't need it. Is this something that should go in the header area? Jodi...
nostrebor@...
jodirobertso...
Offline Send Email
Aug 9, 2004
2:52 am

Hi Jodi, ... Yes, something like this: <script type="text/javascript" defer="defer" src="/library.js"></script> The contents of /library.js would be (three...
Shawn K. Hall
shawn_ra
Online Now Send Email
Aug 9, 2004
3:01 am

Just so I have this pretty much straight - I upload library.js and add that into my header I'll be good. Do I upload the whole file or just the mailMe portion...
nostrebor@...
jodirobertso...
Offline Send Email
Aug 9, 2004
3:37 am

Hi Jodi, ... Yep. ... For now you probably only need the mailMe() function. The rest includes stuff like parsing cookies and breaking out of frames (be VERY...
Shawn K. Hall
shawn_ra
Online Now Send Email
Aug 9, 2004
3:58 am

Oops - That would be where you say, "We change the function in our referenced javascript file to decode it differently." I have no referenced javascript file....
nostrebor@...
jodirobertso...
Offline Send Email
Aug 9, 2004
2:54 am
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help