Page 1 of 1

AddressScrambler

PostPosted: Thu Apr 15, 2004 6:28 pm
by daverw
I'd like to be able to use the AddressScrambler to scroamble my email address on my home website, but I cannot work out how to use it.

The helper generates the scrambled address and a mailto tag and says to replace the standard HTML mailto with the <script language="JavaScript">writeMailTo('dhqbm.xyxisxxmrh@nj@ve');</script> but when I do that it shows as an error.

The helper then says something about including the address scrambler.js file. I don't understand what I actually need to put in my HTML.

Help please
Dave

PostPosted: Thu Apr 15, 2004 9:47 pm
by maratheamit
You need to do 4 things.
1. Copy the AddressScrambler.js file to webroot directory. This is the directory from which content is served for your website.
2. For each static email address you want to scramble, generate the "mailto tag" using the AddressScramblerHelperGeneric.html.
This HTML page works in IE and Opera (and probably many other browsers which support javascript). For this to work the .js file above must be in the same directory as this .html file.
3. Replace the "<a href="xxx">xxx</a> elements in your html files with the code generated by step 2.
4. Include the javascript file at the start of each html file that you modified in step 3. The line that you have to add is the one that occurs at the bottom of AddressScramblerHelperGeneric.html. viz.
"<script language="Javascript" src="/AddressScrambler.js"></script>

PostPosted: Thu Apr 15, 2004 9:55 pm
by ebuleheb
Note that you need to put the file AddressScrambler.js to the root of your webspace for maratheamit's line to work.

PostPosted: Fri Apr 16, 2004 6:50 pm
by daverw
:lol: THANKS!

These instructions were what I needed

Dave

maratheamit wrote:You need to do 4 things.
1. Copy the AddressScrambler.js file to webroot directory. This is the directory from which content is served for your website.
2. For each static email address you want to scramble, generate the "mailto tag" using the AddressScramblerHelperGeneric.html.
This HTML page works in IE and Opera (and probably many other browsers which support javascript). For this to work the .js file above must be in the same directory as this .html file.
3. Replace the "<a href="xxx">xxx</a> elements in your html files with the code generated by step 2.
4. Include the javascript file at the start of each html file that you modified in step 2. The line that you have to add is the one that occurs at the bottom of AddressScramblerHelperGeneric.html. viz.
"<script language="Javascript" src="/AddressScrambler.js"></script>