Results 1 to 5 of 5

Thread: Need email Riddler help

  1. #1
    Join Date
    Aug 2005
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Need email Riddler help

    Hello,
    Javascript is very new to me and I'm having trouble understanding the email riddler I found that encrypts email addresses. What I can't seem to figure out from the instructions is where all the code goes on the page. Does it all go in the "head" of the page? Then how do you display an email link within the body? Please help. The code it generated for me is below:
    Thank you



    <script type="text/javascript">

    /***********************************************
    * Encrypt Email script- Please keep notice intact.
    * Tool URL: http://www.dynamicdrive.com/emailriddler/
    * **********************************************/

    var emailarray6213= new Array(97,98,108,97,122,101,107,53,64,99,111,109,99,97,115,116,46,110,101,116)
    var postemail6213=''
    for (i=0;i<emailarray6213.length;i++)
    postemail6213+=String.fromCharCode(emailarray6213[i])

    document.write('<a href="mailto:'+postemail6213+'?subject=contact us now"></a>')

    </script>

  2. #2
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    It goes wherever you want the email link. Optionally, you can put:
    Code:
    <script type="text/javascript">
    
    /***********************************************
    * Encrypt Email script- Please keep notice intact.
    * Tool URL: http://www.dynamicdrive.com/emailriddler/
    * **********************************************/
    
    var emailarray6213= new Array(97,98,108,97,122,101,107,53,64,99,111,109,99,97,115,116,46,110,101,116)
    var postemail6213=''
    for (i=0;i<emailarray6213.length;i++)
    postemail6213+=String.fromCharCode(emailarray6213[i])
    </script>
    in the head, and then
    Code:
    <script type="text/javascript">
    document.write('<a href="mailto:'+postemail6213+'?subject=contact%20us%20now">Click here to contact us</a>')
    </script>
    wherever you would normally put the link. On a side note, you have forgotten to put in link text. I have added it in red. If you don't put this in, you won't see anything in the page; it is the text the user clicks on to view the link (e.g. "Click Here" in Click Here).
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  3. #3
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Well it says that your email is:

    ablazek . . .

    I took off the rest. If you are encrypting it, you don't want it published here.

    To answer your question, you put that in the body of your page where you want the email link to appear. There is just one thing missing, in this line:
    Code:
    document.write('<a href="mailto:'+postemail6213+'?subject=contact us now"></a>')
    you need some text or an image between the two red brackets that the users will see and can click on. Like:
    Code:
    document.write('<a href="mailto:'+postemail6213+'?subject=contact us now">Contact Us!</a>')
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  4. #4
    Join Date
    Jun 2006
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Hi,

    I'm trying to add Email Riddler the destination or recipient field of FishForm, but I kep getting the following error:

    Error: No Recipient
    No Recipient was specified in the data sent to FishForm. Please make sure you have filled in the 'recipient' form field with an e-mail address. More information on filling in recipient form fields can be found in the README file.


    Can this work with FishForm? I've tried it a bunch of different ways. I've added part of the script in the <HEAD>. I tried putting <input type="hidden" name="recipient" value="" /> instead of <input type="hidden" name="destination" value="" />, but nothing has worked. I was able to get the email link to work but not the hidden recipient form field. Any suggestions?

    Here's a link to the test form if you'd like to see the code.

    One other question...do you know how I can also use Email Riddler on an image map (like the email footer on this same link)?
    Thanks!

  5. #5
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    I think it can only be used with the mailto: protocol (not the best choice for email from a web page, what you are using sounds superior to mailto. FishForm sounds like a type of formail (form mail), I've not seen any encryptors that work with that. Best idea, just use a spam filter on the inbox (back end strategy) for the receiving email address. Just about any successful front end encryption will also frustrate some valid users as well as any spam bots, some of which may be able to decrypt the address anyway.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •