Results 1 to 2 of 2

Thread: Email Riddler not working if customised

  1. #1
    Join Date
    Oct 2011
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Email Riddler not working if customised

    1) Script Title: Email Riddler

    2) Script URL (on DD): http://www.dynamicdrive.com/emailriddler/

    3) Describe problem: The riddler works fine if I don't change the original script, but if I try to change the colour like the example shown, the colour changes fine but it doesn't add any email or subject info to the email form that opens.

    I'm not great with code, but can copy/paste into the correct places!

    If possible could someone show me how to edit the code so it works properly & also makes the text that appears on my page Verdana 12pt plus coloured blue (hex code use preferred)

    Thank you.

  2. #2
    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

    Once you get something like this (yours will vary depending upon the information you added before clicking the Encrypt Email button):

    Code:
    <script type="text/javascript">
    /*<![CDATA[*/
    
    /***********************************************
    * Encrypt Email script- Please keep notice intact
    * Tool URL: http://www.dynamicdrive.com/emailriddler/
    * **********************************************/
    <!-- Encrypted version of: you [at] **********.*** //-->
    
    var emailriddlerarray=[121,111,117,64,121,111,117,114,100,111,109,97,105,110,46,99,111,109]
    var encryptedemail_id77='' //variable to contain encrypted email 
    for (var i=0; i<emailriddlerarray.length; i++)
     encryptedemail_id77+=String.fromCharCode(emailriddlerarray[i])
    
    document.write('<a id="myencrypted" href="mailto:'+encryptedemail_id77+'">Contact Us</a>')
    
    /*]]>*/
    </script>
    add the highlighted as shown.

    Then in the head of the page you can put:

    Code:
    <style type="text/css">
    #myencrypted {
    	font-family: verdana, arial, sans-serif;
    	font-size: 12pt;
    	color: #0000ff;
    }
    </style>
    - 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
  •