<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 运行时异常: 缺少对象
- js调用cs函数时报错,Microsoft JScript 运行时异常: 缺少对象
- microsoft jscript 缺少对象,该如何处理
- 内容页中使用上拉框,为什么onselectedindexchanged事件会报错Microsoft JScript 运行时异常: 找不到成员
- ,小弟我用Linkbutton做退出主页面的时候报错Microsoft JScript 运行时异常: “_doPostBack”未定义
- Microsoft JScript 运行时异常
- JScript InselliSense更新失败的有关问题
- Microsoft JScript runtime error: Object expected,该怎么解决
- Microsoft JScript 运行时异常:Treeview_1未定义
- Microsoft JScript 运行时异常: 'document.getElementById(.)' 为空或不是对象
- UpdatePanel装用户控件注册了脚本了但是在隐藏文件提示:"Microsoft JScript 运行时异常: 'null' 为空或不是对象"
- 服务控件 当按下回车时触发的有关问题 提示:"Microsoft JScript 运行时异常: 'document.all[.]' 为空或不是对象"
- 想深入 .net 的, 但是 想 深入 jscript .net 的, 要到那里找大本营?该如何解决
- JScript 运行时异常: getElementById(.)' 为空或不是对象
- 为什么这段jquery代码会提示异常Microsoft JScript 运行时异常: 对象不支持此属性或方法
- Microsoft JScript 编译异常 (0x800A03EC)怎么解决
- JScript 得到IP的函数,有错吗?解决办法
- 异常类型:Microsoft JScript 编译异常 (0x800A03EC) 缺少 ';'
- Microsoft JScript 运行时异常: 对象不支持“setCurrentMouseTool”属性或方法
- Microsoft JScript 运行时异常: "Ajax" 未定义
- oXL = new ActiveXObject("Excel.Application");Microsoft JScript 运行时异常: Automation
- Microsoft JScript 运行时异常: 缺少对象一般是哪个地方出错了呢
- JSCRIPT.DLL中的DLLREGISTERSERVER失败,回来代码是:0X80004005
- Microsoft JScript 运行时异常: Syntax error, unrecognized expression: Syntax error, un
- 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 是咋回事