Web Analytics Made Easy -
StatCounter hide email script - CodingForum

Announcement

Collapse
No announcement yet.

hide email script

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • hide email script

    hello

    i have been getting some pretty nasty spam here at work on the email addy i have on our site.

    i would like to use the script i found here http://javascriptkit.com/script/script2/unspam.shtml

    to avoid this. my question is, this leaves the email address showing, instead of, say, "webmaster", or whatever, like in

    Selected pictures courtesy <a href="http://members.aol.com/GRG214/dallasview.html" target="_blank">Dallas
    View</a>.

    any help would be appreciated.


  • #2
    Not that i've had time to try it,

    but how about:

    <script language="JavaScript"><!--
    var name = "protected";
    var domain = "cdrsoft.com";
    document.write('<a href=\"mailto:' + name + '@' + domain + '\">');
    document.write(whatever name you want to appear here'</a>');
    // --></script>

    let me know if it works?

    jase/djmothra
    Jase/djmothra

    Comment


    • #3
      doesn't seem to work dj. shows an error, and nothing is there.

      thanks , though

      applesauce

      Comment


      • #4
        I'll look into it now!

        as that should work...

        jase
        Last edited by djmothra; Jul 1, 2002, 10:30 AM.
        Jase/djmothra

        Comment


        • #5
          Here you go dudette!!!

          [above edited...]
          this works...

          <script language="JavaScript">
          <!--
          var name = "protected";
          var domain = "cdrsoft.com";
          document.write('<a href=\"mailto:' + name + '@' + domain + '\">');
          document.write('whatever in here' + '</a>');
          // -->
          </script>
          Last edited by djmothra; Jul 1, 2002, 11:08 AM.
          Jase/djmothra

          Comment


          • #6
            thanks ever so

            (fyi, i'm a dudette)



            Comment


            • #7

              Comment


              • #8
                validate 4.01 for this script

                hello

                i have been using this hide email script, and now i'm trying to validate to 4.01 transitional, and i'm getting a message that i'm closing a tag that isn't open on this line:

                document.write('whatever in here' + '</a>');

                here's the whole validation:


                is there a way to make this compliant with 4.01?

                thanks ever so

                Comment

                Working...
                X