TroelsM
06-06-2004, 05:51 AM
HI there !
I have the following code
function CryptMailto(s) {
var n=0;
var r="";
for(var i=0;i<s.length;i++) {
n=s.charCodeAt(i);
if (n>=8364) {n = 128;}
r += String.fromCharCode(n+(2));
}
return r;
}
can some one translate that to ASP ?
It takes all char and move it 2 places - som abc would bee to cde
I have the following code
function CryptMailto(s) {
var n=0;
var r="";
for(var i=0;i<s.length;i++) {
n=s.charCodeAt(i);
if (n>=8364) {n = 128;}
r += String.fromCharCode(n+(2));
}
return r;
}
can some one translate that to ASP ?
It takes all char and move it 2 places - som abc would bee to cde