[thelist] Js hiding email address

Benjer futureweb at macmail.com
Thu Feb 27 07:10:01 CST 2003


I need a quick javascipt solution for a rollover image which is a email link
- eventually we'll use asp but need this as a quick fix, here¹s my current
KLUDGED code

<code>
<script language=javascript>
<!--
var username = "benjer";
var hostname = "macmail.com";
document.write("<a href=" + "mail" + "to:" + username +
"@" + hostname + '"'+"onMouseOut='MM_swapImgRestore()'
onMouseOver='MM_swapImage('email','','images/email_f2.gif',1)'>" + "<img
src='images/email.gif' alt='email' name='email' width='31' height='16'
border='0'>" + "</a>")
//-->
</script>
</code>

I always get in a bit of a muddle with ³¹² and Œ²¹ can anyone help clear
this up for me.

ben





More information about the thelist mailing list