- 注册
- 2002-10-07
- 消息
- 402,179
- 荣誉分数
- 76
- 声望点数
- 0
Re: <font color=red>西直门,来吧,看看到底是不是沙漠</font>
<HTML>
<script language="JavaScript">
<!-- wenchin
text = "学好英语,本地生的有很多MM,不过多不会讲国语";
color1 = "#800040";
color2 = "#ED6B9E";
fontsize = "0"; //?ゐ
speed = 100; //
i = 0;
if (navigator.appName == "Netscape") {
document.write("<layer id=a visibility=show></layer>");
}
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>');
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>";
a.innerHTML = str;
}
(i == text.length) ? i=0 : i++;
}
setInterval("changeCharColor()", speed);
// wenchin -->
</script></HTML>
<HTML>
<script language="JavaScript">
<!-- wenchin
text = "学好英语,本地生的有很多MM,不过多不会讲国语";
color1 = "#800040";
color2 = "#ED6B9E";
fontsize = "0"; //?ゐ
speed = 100; //
i = 0;
if (navigator.appName == "Netscape") {
document.write("<layer id=a visibility=show></layer>");
}
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>');
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>";
a.innerHTML = str;
}
(i == text.length) ? i=0 : i++;
}
setInterval("changeCharColor()", speed);
// wenchin -->
</script></HTML>