Forum Moderators: open

Message Too Old, No Replies

need help editing email scrambler

how to put "contact" over email address

         

Lorel

3:02 am on Feb 15, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Hi

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>

korkus2000

4:15 pm on Feb 15, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



You can modify the script like this:

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.

Lorel

5:30 pm on Feb 15, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Thanks much Korkus :o)