PDA

View Full Version : Email riddler text style question



Defender90
06-19-2008, 02:30 PM
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>

jscheuer1
06-19-2008, 03:44 PM
This part:


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

Add an id or class name, ex:


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

Then in your stylesheet, style it however you like, ex:


.mail {
color:red;
}

You could even give it an existing class name to make it use the styles set for that class.

Defender90
06-19-2008, 04:39 PM
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.

Defender90
06-19-2008, 04:53 PM
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>

jscheuer1
06-19-2008, 04:59 PM
Please post a link to the page on your site that contains the problematic code so we can check it out.

Defender90
06-19-2008, 05:05 PM
you can see the contact web designer is black.

Defender90
06-19-2008, 05:07 PM
Also I can't seem to get the last table where this is located up flush with the bottom line image.

Defender90
06-19-2008, 05:08 PM
Firefox is ok IE text is black.

jscheuer1
06-19-2008, 05:18 PM
It's fine here in IE. Try refreshing the page and/or clearing the cache.