csiwa28
Programmer
- Apr 12, 2001
- 177
I found this script that will hide email addresses on a website. When viewed in Firefox, it displays "TEST". When viewed in IE6 or IE7, it displays "TEST", but once i hover or click on it, it changes to "mailto:test@test%2Ecom". Any ideas on how to make it not change in IE?
Code:
<Script>
function mailMe(sDom, sUser){
return("mail"+"to:"+sUser+"@"+sDom.replace(/%23/g,"."));
}
</script>
<a href="/contact/" onmouseover="javascript:this.href=mailMe('test%2Ecom','test');" onfocus="javascript:this.href=mailMe('test%2Ecom','test');">TEST</a>