<html>
<title>akuoma五彩颜色字体请看这里有木有</title>
<Script language="JavaScript">
var color10 = new Array("yellow", "brass", "copper", "blueviolet", "green", "olivedrab", "scarlet", "royalblue", "coral", "plum");
var newColor;
function ColorChar(val, newText, i) {
var obj = document.getElementById(val);
var text = obj.title;
var nTextArry = obj.innerHTML.split("</FONT>");
if (Number(i) > text.length) {
i = 0;
newText = "";
}
newColor = color10[Math.floor(Math.random() * color10.length)];
var achar = text.charAt(Number(i));
i = Number(i) + 1;
newText = newText + "<FONT color='" + newColor + "'>" + achar + "</FONT>";
if (nTextArry.length < text.length) {
obj.innerHTML = newText + text.substr(Number(i));
}
else {
var fstr = "";
for (j = i; j < nTextArry.length; j++) {
if (nTextArry[j] != "" && j < text.length) {
if (nTextArry[j].indexOf("<FONT") >= 0) {
fstr = fstr + nTextArry[j] + "</FONT>";
}
else {
fstr = fstr + text.substr(Number(i));
}
}
}
obj.innerHTML = newText + fstr;
}
setTimeout("ColorChar('" + val + "',\"" + newText + "\"," + i + ")", 200);
}
</SCRIPT>
<body onload="ColorChar('hltest','',0);">
<div id="textDiv"></div>
<a href="#" id="hltest" name="hltest" style=" font-weight:bold;" title="akuoma五彩颜色字体请看这里有木有"> akuoma五彩颜色字体请看这里有木有</a>
<a href="#" id="A1" name="hltest" style=" font-weight:bold;" title="akuoma五彩颜色字体请看这里有木有"> akuoma五彩颜色字体请看这里有木有</a>
</body>
</html> 详细解决方案
Jscript闪现五彩色彩字体
热度:126 发布时间:2012-12-17 09:31:40.0
相关解决方案
- 百思不得其解:Microsoft JScript 运行时异常: 缺少对象
- microsoft jscript 缺少对象,该如何处理
- Microsoft JScript 运行时异常:Treeview_1未定义
- Microsoft JScript 运行时异常: 'document.getElementById(.)' 为空或不是对象
- UpdatePanel装用户控件注册了脚本了但是在隐藏文件提示:"Microsoft JScript 运行时异常: 'null' 为空或不是对象"
- 服务控件 当按下回车时触发的有关问题 提示:"Microsoft JScript 运行时异常: 'document.all[.]' 为空或不是对象"
- Microsoft JScript 编译异常 (0x800A03EC)怎么解决
- JScript 得到IP的函数,有错吗?解决办法
- Microsoft JScript 运行时异常: 对象不支持“setCurrentMouseTool”属性或方法
- Microsoft JScript 运行时异常: "Ajax" 未定义
- oXL = new ActiveXObject("Excel.Application");Microsoft JScript 运行时异常: Automation
- Microsoft JScript 运行时异常: 缺少对象一般是哪个地方出错了呢
- CScript 异常: 无法找到脚本“.js”的脚本引擎“JScript”
- jscript 怎么控制web控件的onmousemove事件
- JScript 与JavaScript,该如何处理
- 各位老大,how to convert Unicode code number to a character just like String.fromCharCode in jscript?解决方案
- Breaking on Jscript runtime error –object expected 是咋回事
- Microsoft JScript 运行时异常: 'FlexPaperViewer' 未定义
- JScript.Encode脚本加密与解密
- VS2010 更新 JScript IntelliSense 时出错 提示虚拟内存级别低导致vs关闭
- JScript 和 VBScript 正则表达式 的语法规则