I usually don’t find myself on this side of the fence but here I am. The automatic links use Javascript to encode the email address. How do you style the email links?
This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.
The active forums are here.
July 14, 2008 2:54pm
Subscribe [3]#1 / Jul 14, 2008 2:54pm
I usually don’t find myself on this side of the fence but here I am. The automatic links use Javascript to encode the email address. How do you style the email links?
#2 / Jul 14, 2008 3:06pm
Are you referring to an e-mail link within a weblog entry or within a comment to a weblog entry but you want it to appear different from all other links within those sections?
#3 / Jul 14, 2008 3:36pm
Tough question since the browser is the entity that decrypts the javascript in to an actual HTML link. If its in a weblog entry like Michael is suggesting, then perhaps you can wrap the {encode} variable with a div? Then target it using a class? Maybe something like:
<div class="link">{embed="[email protected]"}</div>.link a{blah:...;blah:...;}This is a total shot in the dark and probably doesn’t work, but hey… 😏
#4 / Jul 14, 2008 3:54pm
Yeah, it is an email link inside a weblog entry. I could surround it with a div but I am not sure that works either. Oh well, I guess I just need to experiment.
#5 / Jul 14, 2008 3:57pm
Marshall’s suggestion follows my line of thinking as well. One thought though, where is the e-mail link coming from?
If user generated you going to have less control as the e-mail address with be contained within the {comment} or {custom_field}.
I’d still wrap with a container of some sort that can be target with a class but you will be affecting all links within the container; probably not a bad thing.
Edit—just saw your post John—
I could surround it with a div but I am not sure that works
It will, I use this approach.