Forum Moderators: open
I'm trying to figure out how to alter an email scrambler. It works fine the way it is but I'm trying to figure out how to put the name of the site or some other words like "contact" or "click here" over the email address so the email doesn't show. Can someone show me how to do this please?
Here is the code I'm using. I don't know how to write Javascript.
<script type="text/javascript" language="JavaScript1.2">
<!--
// Courtesy of SimplytheBest.net (url of designer goes here)
// hide script
var stb_domain = "domainnamegoeshere.com"
var stb_user = "info"
var stb_recipient = stb_user + "@" + stb_domain
var stb_url = "mailto:" + stb_recipient
document.write(stb_recipient.link(stb_url));
// -->
</script>
var stb_domain = "domainnamegoeshere.com";
var stb_user = "info";
var stb_recipient = stb_user + "@" + stb_domain;
var stb_url = "mailto:" + stb_recipient;
var stb_visualName = "Contact";
document.write(stb_visualName.link(stb_url));
It is the document.write(stb_visualName.link(stb_url)); that causes the visual text.