日本語
<!--次のコードを <body> エリアに入力します--> <script language="JavaScript"> <!-- Begin text = "ようこそ--Website Building Academy" //Text color color2 = "red"; //変換後の色 fontsize = "2" //変換速度 (1000 = 1 秒) i = 0; { document.write("<layer id=a Visibility=show></layer><br><br><br>") } else { document.write("<div id=a></div >") ); } function changeCharColor() { if (navigator.appName == "Netscape") { document.a.document.write("<font face=arial size =" + fontsize + "><font color=" + color1 + ">"); for (var j = 0; j < text.length; j++) { if(j == i) { document.a.document.write("<font face=arial color=" + color2 + " >" + Text.charAt(i) + "</font>"); } else { document.a.document.write(text.charAt(j)); } } document.a.document.write(' </font> font></font>'); document.a.document.close(); } if (navigator.appName == "Microsoft Internet Explorer") { str = "<font face=arial size=" + fontsize + "> <font color=" + color1 + ">"; for (var j = 0; j < text.length; j++) { if( j == i) { str += "<font face=arial color=" + color2 + ">" + text.charAt(i) + "</font>" } else { str += text.charAt(j) } } str += "</font></font>"; innerHTML = str; } (i == text.length) ? i=0 : i++ } // 終了 --> </script>