Results 1 to 9 of 9

Thread: Email riddler text style question

  1. #1
    Join Date
    Oct 2007
    Posts
    49
    Thanks
    10
    Thanked 0 Times in 0 Posts

    Default Email riddler text style question

    How do I control the font style and size of contact web designer?

    I have CSS styles but they will not effect this script as I would like.

    Thanks


    <script type="text/javascript">
    /*<![CDATA[*/

    /***********************************************
    * Encrypt Email script- Please keep notice intact
    * Tool URL: http://www.dynamicdrive.com/emailriddler/
    * **********************************************/
    <!-- Encrypted version of: richardcampbell [at] *****.*** //-->

    var emailriddlerarray=[114,105,99,104,97,114,100,99,97,109,112,98,101,108,108,64,103,109,97,105,108,46,99,111,109]
    var encryptedemail_id12='' //variable to contain encrypted email
    for (var i=0; i<emailriddlerarray.length; i++)
    encryptedemail_id12+=String.fromCharCode(emailriddlerarray[i])

    document.write('<a href="mailto:'+encryptedemail_id12+'">Contact Web Designer</a>')

    /*]]>*/
    </script>

  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

    This part:

    Code:
    document.write('<a href="mailto:'+encryptedemail_id12+'">Contact Web Designer</a>')
    Add an id or class name, ex:

    Code:
    document.write('<a class="mail" href="mailto:'+encryptedemail_id12+'">Contact Web Designer</a>')
    Then in your stylesheet, style it however you like, ex:

    Code:
    .mail {
    color:red;
    }
    You could even give it an existing class name to make it use the styles set for that class.
    - John
    ________________________

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

  3. #3
    Join Date
    Oct 2007
    Posts
    49
    Thanks
    10
    Thanked 0 Times in 0 Posts

    Default

    Tried it and I couldn't get it to work. I changed the link and then added a style .mail in the CSS. What am I missing.

  4. #4
    Join Date
    Oct 2007
    Posts
    49
    Thanks
    10
    Thanked 0 Times in 0 Posts

    Default

    I also have it ref. style14 which is an existing css style. That still didn't fix it.

    <script type="text/javascript">
    /*<![CDATA[*/

    /***********************************************
    * Encrypt Email script- Please keep notice intact
    * Tool URL: http://www.dynamicdrive.com/emailriddler/
    * **********************************************/
    <!-- Encrypted version of: richardcampbell [at] *****.*** //-->

    var emailriddlerarray=[114,105,99,104,97,114,100,99,97,109,112,98,101,108,108,64,103,109,97,105,108,46,99,111,109]
    var encryptedemail_id12='' //variable to contain encrypted email
    for (var i=0; i<emailriddlerarray.length; i++)
    encryptedemail_id12+=String.fromCharCode(emailriddlerarray[i])

    document.write('<a class="style14" href="mailto:'+encryptedemail_id12+'">Contact Web Designer</a>')

    /*]]>*/
    </script>

  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

    Please post a link to the page on your site that contains the problematic code so we can check it out.
    - John
    ________________________

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

  6. #6
    Join Date
    Oct 2007
    Posts
    49
    Thanks
    10
    Thanked 0 Times in 0 Posts

    Default

    you can see the contact web designer is black.
    Last edited by Defender90; 06-19-2008 at 05:18 PM.

  7. #7
    Join Date
    Oct 2007
    Posts
    49
    Thanks
    10
    Thanked 0 Times in 0 Posts

    Default

    Also I can't seem to get the last table where this is located up flush with the bottom line image.

  8. #8
    Join Date
    Oct 2007
    Posts
    49
    Thanks
    10
    Thanked 0 Times in 0 Posts

    Default

    Firefox is ok IE text is black.

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

    It's fine here in IE. Try refreshing the page and/or clearing the cache.
    - John
    ________________________

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

  10. The Following User Says Thank You to jscheuer1 For This Useful Post:

    Defender90 (06-19-2008)

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
  •