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
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