O.P. RE: Case talker
I altered the talker.alternating.vbs and came up with this:
Function talker(input)
For i = 1 To Len(input)
keyvalue = Asc(Mid(input, i, 1))
If (keyvalue >= 96 And keyvalue < 96 + 27) Or (keyvalue >= 64 And keyvalue < 64 + 27) Then
If (i And 1) = 1 Then
If keyvalue < 96 Then
s = s & Chr(96 + keyvalue - 64)
Else
s = s & Chr(64 + keyvalue - 96)
End If
Else
If keyvalue >= 96 Then
s = s & Chr(64 + keyvalue - 96)
Else
s = s & Chr(96 + keyvalue - 64)
End If
End If
Else
s = s & Chr(keyvalue)
End If
Next
input = s&""
talker = input
End Function
Can you see anything I don't need in there?
Then I altered talker.lafrican.js and came up with this:
var inchars="abcdefghijklmnopqrstuvwxyz";
var outchars="ABCDEFGHIJKLMNOPQRSTUVWXYZ";
function talker(input) {
var i=0;
var output="";
while (i<input.length) {
var letter=input.substr(i,1);
var upr=0;
if (letter >= 'a' && letter <= 'z') {
letter=outchars.charAt(inchars.indexOf(letter));
}
else
if (letter >= 'A' && letter <= 'Z') {
letter=inchars.charAt(outchars.indexOf(letter));
}
output=output+letter;
i=i+1;
}
return output;
}
With the .js one everything works and the .vbs one the @ symbol and ` symbol are switched.
This post was edited on 09-18-2004 at 11:28 PM by Grinder911.
|