Welcome Guest [Log In] [Register]
Add Reply
Japaneese name Code
Topic Started: Jul 24 2006, 09:42 AM (292 Views)
Alex
Member Avatar
Brehehehee!!

This is a really cool code I found on the IF support forum. It basically shows your name in japaneese. Just insert this into the Javascript section of your Board Wrappers.

Code:
 
<HEAD>

<SCRIPT LANGUAGE="JavaScript">


<!-- Begin
function isvowel(v) {
if ((v == "a") || (v == "e") || (v == "i") || (v == "o") || (v == "u")) {
return true;
}
else {
return false;
 }
}
function toJapanese(inp) {
name1 = inp;
otp = "";
cnt = 0;
k = "";
l = "";
inp = inp.toLowerCase();
while (cnt <= inp.length - 1) {
k = inp.charAt(cnt);
if ((cnt + 1) > (inp.length - 1)) {
l = "u";
}
else {
l = inp.charAt(cnt+1);
}
if ((k == " ") || (k == "-") || (k == "'")) {
otp = otp + k;
cnt += 1;
}
if ((l == "y") && (!isvowel(k))) {
l = "i";
}
if (k == "x") {
if (cnt == 0) {
k = "z";
}
else {
k = "k";
 }
}
if (k == "g") {
if ((l == "e") || (l == "i") || (l == "y")) {
k = "j";
}
else {
if (isvowel(l)) {
otp = otp + k + l;
cnt += 2;
}
else {
otp = otp + k + "u";
cnt += 1;
     }
 }
}
if (k == "j") {
if ((l == "a") || (l == "u") || (l == "o")) {
otp = otp + k + l;
cnt +=2;
}
if ((l == "e") || (l == "i")) {
otp = otp + "ji";
cnt += 2;
 }
}
if (k == "y") {
if ((l == "a") || (l == "u") || (l == "o")) {
otp = otp + k + l;
cnt += 2;
}
else {
k = "i";
 }
}
if (k == "m") {
if (isvowel(l)) {
otp = otp + k + l;
cnt += 2;
}
else {
if ((l == "b") || (l == "m") || (l == "p")) {
otp = otp + "n";
cnt += 1;
}
else {
otp = otp + "mu";
cnt += 1;
     }
 }
}
if (isvowel(k) || ((k == "n") && (!isvowel(l)))) {
otp = otp + k;
cnt = cnt + 1;
}
if (k == "q") {
k = "k";
}
if (k == "v") {
k = "b";
}
if (k == "l") {
k = "r";}
if (k == "c") {
if (l == "h") {
otp = otp + "chi";
cnt += 3;
}
else {
if ((l == "e") || (l == "i") || (l == "y")) {
k = "s";
}
else {
k = "k";
     }
 }
}
if (k == "w") {
if ((l == "a") || (l == "o")) {
otp = otp + k + l;
cnt += 2;
}
else {
if ((l == "i") || (l=="e")) {
otp = otp + "u" + l;
cnt += 2;
}
else {
k = "b";
     }
 }
}
if ((k == "b") || (k == "k") || (k == "r")) {
if (isvowel(l)) {
otp = otp + k + l;
cnt += 2;
}
else {
otp = otp + k + "u";
cnt += 1;
 }
}
if (k == "d") {
if ((l == "i") || (l == "a") || (l == "e")) {
otp = otp + "de";
cnt += 2;
}
if ((l == "u") || (l == "o")) {
otp = otp + "do";
cnt += 2;
}
if (!isvowel(l)) {
otp = otp + "de";
cnt += 1;
 }
}
if (k == "f") {
otp = otp + "fu";
cnt += 1;
if (isvowel(l)) {
cnt += 1;
 }
}
if (k == "h") {
if (l == "u") {
otp = otp + "fu";
cnt += 2;
}
else {
if (isvowel(l)) {
otp = otp + k + l;
cnt += 2;
}
else {
otp = otp + "fu";
cnt += 1;
     }
 }
}
if (k == "z") {
if (l == "i") {
k = "j";
}
else {
if (isvowel(l)) {
otp = otp + k + l;
cnt += 2;
}
else {
otp = otp + "zu";
cnt += 1;
     }
 }
}
if (k == "n") {
if (isvowel(l)) {
otp = otp + k + l;
cnt += 2;
 }
}
if (k == "p") {
if (l == "h") {
otp = otp + "fu";
cnt += 2;
}
if (isvowel(l)) {
otp = otp + k + l;
cnt += 2;
}
else {
otp = otp + "pu";
cnt += 1;
 }
}
if (k == "s") {
if ((l == "i") || (l == "h")) {
otp = otp + "shi";
cnt += 2;
if (l == "h") {
cnt += 1;
 }
}
else {
if (isvowel(l)) {
otp = otp + k + l;
cnt += 2;
}
else {
otp = otp + "su";
cnt += 1;
     }
 }
}
if (k == "t") {
if ((l == "a") || (l == "e") || (l == "o")) {
otp = otp + k + l;
cnt += 2;
}
if ((l == "u") || ((!isvowel(l)) && (!(l == "h")))) {
otp = otp + "tsu";
cnt += 1;
if (l == "u") {
cnt += 1;
}
if ((l == "s") && (inp.charAt(cnt + 1) == "u")) {
cnt += 2;
 }
}
if (l == "i") {
otp = otp + "chi";
cnt += 2;
}
if (l == "h") {
otp = otp + "fu";
cnt += 3;
     }
 }
}
name2 = "" + otp.charAt(0).toUpperCase();
for (j = 1; j <= otp.length - 1; j++) {
name2 += otp.charAt(j);
}
alert(name1 + " is pronounced in Japanese as: "" + name2 + """);
}
//  End -->
</script>
</HEAD>
<BODY>

<center>
<form>
Your Name:  <input type=text name="personname" size=15>
<input type=button value="Show Japanese Name!" onClick="toJapanese(this.form.personname.value);">
</form>
</center>


<!-- Script Size:  4.48 KB -->
Posted Image
Offline Profile Quote Post Goto Top
 
Wave
Unregistered
Guests

Will it replace our old names or will it be an entirety based on its own?
Quote Post Goto Top
 
Nemesis
Member Avatar
Living life! :D

Its just for fun. Makes the board loads slower. It doesnt do much anyways. I dont think we should put them on.
CHILL OUT ZONE

卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐

Posted Image

"If you live to be a hundred, I want to live to be a hundred
minus one day, so I never have to live without you."

http://img182.imageshack.us/img182/9831/animepinksv7.gif
Offline Profile Quote Post Goto Top
 
Shaheer
Member Avatar
Blood Generation

i'll mmabe put it up for a week
Posted Image

Posted Image

GO OILERS GO!! 24-22-4
Currently Playing: WoW
Offline Profile Quote Post Goto Top
 
Nemesis
Member Avatar
Living life! :D

Shaheer
Jul 25 2006, 05:18 PM
i'll mmabe put it up for a week

and 4 people is going to use it, Just create another blank Invisionfree board up, Fuck from skin on it, put that board on, make a redirection button and put it on the board wapper. Then just tell people to CLICK that shit for that. GOSH. A-HOLE.
CHILL OUT ZONE

卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐

Posted Image

"If you live to be a hundred, I want to live to be a hundred
minus one day, so I never have to live without you."

http://img182.imageshack.us/img182/9831/animepinksv7.gif
Offline Profile Quote Post Goto Top
 
Alex
Member Avatar
Brehehehee!!

Dick Ver3
Jul 27 2006, 01:01 AM
Shaheer
Jul 25 2006, 05:18 PM
i'll mmabe put it up for a week

and 4 people is going to use it, Just create another blank Invisionfree board up, Fuck from skin on it, put that board on, make a redirection button and put it on the board wapper. Then just tell people to CLICK that shit for that. GOSH. A-HOLE.

thats the dumbest thing ive eva heard man.
Posted Image
Offline Profile Quote Post Goto Top
 
Nemesis
Member Avatar
Living life! :D

Alex
Jul 27 2006, 09:46 AM
Dick Ver3
Jul 27 2006, 01:01 AM
Shaheer
Jul 25 2006, 05:18 PM
i'll mmabe put it up for a week

and 4 people is going to use it, Just create another blank Invisionfree board up, Fuck from skin on it, put that board on, make a redirection button and put it on the board wapper. Then just tell people to CLICK that shit for that. GOSH. A-HOLE.

thats the dumbest thing ive eva heard man.

Well, i didnt ask for a dumbass point of view.
CHILL OUT ZONE

卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐

Posted Image

"If you live to be a hundred, I want to live to be a hundred
minus one day, so I never have to live without you."

http://img182.imageshack.us/img182/9831/animepinksv7.gif
Offline Profile Quote Post Goto Top
 
rock
Member Avatar


we could just translate our name to japanese by using a online translator
Posted Image
Posted Image
Offline Profile Quote Post Goto Top
 
Nemesis
Member Avatar
Living life! :D

rock
Jul 28 2006, 11:59 AM
we could just translate our name to japanese by using a online translator

Oh maybe just go on with our life.
CHILL OUT ZONE

卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐

Posted Image

"If you live to be a hundred, I want to live to be a hundred
minus one day, so I never have to live without you."

http://img182.imageshack.us/img182/9831/animepinksv7.gif
Offline Profile Quote Post Goto Top
 
Wave
Unregistered
Guests

it's really up to the person in that case
Quote Post Goto Top
 
Nemesis
Member Avatar
Living life! :D

Wave
Jul 28 2006, 10:11 PM
it's really up to the person in that case

Nah, i tell people how to live there life.
CHILL OUT ZONE

卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐

Posted Image

"If you live to be a hundred, I want to live to be a hundred
minus one day, so I never have to live without you."

http://img182.imageshack.us/img182/9831/animepinksv7.gif
Offline Profile Quote Post Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
ZetaBoards - Free Forum Hosting
Create your own social network with a free forum.
Learn More · Register Now
« Previous Topic · Forum Support · Next Topic »
Add Reply

Via Domus created by Steve of the ZetaBoards Theme Zone