PDA

View Full Version : Email scrambler query


kurogane-s9
07-06-2007, 03:03 AM
I'm curious as to how one would eliminate the the underline in the link this script creates, because I haven't a goddamn clue to be honest.

Here's the head:

<SCRIPT language="JavaScript">
function unScramble(eMail1,eMail2,linkText,subjectText,statusText){
var a,b,c,d,e;a=eMail1;c=linkText;b=eMail2.substring(0,eMail2.length-5);
if(subjectText!=""){d="?subject="+escape(subjectText);}else{d="";}
if(statusText!=""){e=" onMouseOver=\"top.status=\'"+statusText+
"\'\;return true\;\" onMouseOut=\"top.status=\'\'\;return true\;\"";}else{e="";}
document.write("<A HREF=\"mai"+"lto:"+a+"@"+b+d+"\""+e+">"+c+"</A>");}
</SCRIPT>

... and the email link body:

<script language="JavaScript">unScramble("example","example.organize","Email","Test email","Click here to send me email");</script><noscript>Email: example/ÄT/example/DÖT/-o-r-g-/</noscript>

I'm a complete newbie when it comes to JS, so forgive the ignorance is the solutions happens to be simple (if there is one).

Thanks, Kurogane

BonRouge
07-06-2007, 04:13 AM
CSS a:link {
text-decoration:none;
}
If it's only that underline that you want to remove, add an id to the link and do it that way.

(http://bonrouge.com/~faq#linkcolours)

kurogane-s9
07-06-2007, 05:48 AM
Thanks a bunch. =D

- Kurogane