翩然
发表于 2008-6-26 00:50
<script Language=\"JavaScript\"> <!-- if(navigator.appVersion.charAt(0)>=4 && (navigator.appVersion).indexOf(\"MSIE\")!=-1) isIE4 = true; else isIE4 = false; function textAnima_color2(id,n) { el = document.all.item(id,n); charColor = el.getAttribute(\"SET_COLOR\"); cur = el.getAttribute(\"CURRENT_CHAR\"); if(cur==\"\") cur = 0; getHTML= el.getAttribute(\"SET_TEXT\"); if(getHTML == \"\") { getHTML = el.innerText; el.setAttribute(\"SET_TEXT\",getHTML); } bef_t = getHTML.substring(0,cur); ; aft_t = getHTML.substring(eval(cur)+1,getHTML.length); cur_t = getHTML.substr(cur,1); cur_t = cur_t.fontcolor(charColor); el.innerHTML = bef_t + cur_t + aft_t; cur++; if(cur > getHTML.length) cur=0; el.setAttribute(\"CURRENT_CHAR\",cur); getT = el.getAttribute(\"SET_TIME\"); if(getT==\"\") getT = 100; setTimeout(\"textAnima_color2(\'\"+id+\"\',\"+n+\")\",eval(getT)); } if(isIE4) { window.onload = init; } function init() { id = \"ANIMA_TEXT_COLOR2\"; len = document.all.item(id).length; if(!len) len=1; for(var i=0;i<len;i++) { textAnima_color2(id,i); } } //--> </script> <span style=\"font-size:20pt;font-family:\"新細明體\"\" id=\"ANIMA_TEXT_COLOR2\" SET_COLOR=\"yellow\" SET_TIME=\"100\" CURRENT_CHAR SET_TEXT> 很高兴注册了中画网 </span></p>
[ 本帖最后由 翩然 于 2008-6-26 00:51 编辑 ]
翩然
发表于 2008-6-26 00:52
我的字体怎么不闪
寒香玉
发表于 2008-7-10 22:09
<script Language=\"JavaScript\"> <!-- if(navigator.appVersion.charAt(0)>=4 && (navigator.appVersion).indexOf(\"MSIE\")!=-1) isIE4 = true; else isIE4 = false; function textAnima_color2(id,n) { el = document.all.item(id,n); charColor = el.getAttribute(\"SET_COLOR\"); cur = el.getAttribute(\"CURRENT_CHAR\"); if(cur==\"\") cur = 0; getHTML= el.getAttribute(\"SET_TEXT\"); if(getHTML == \"\") { getHTML = el.innerText; el.setAttribute(\"SET_TEXT\",getHTML); } bef_t = getHTML.substring(0,cur); ; aft_t = getHTML.substring(eval(cur)+1,getHTML.length); cur_t = getHTML.substr(cur,1); cur_t = cur_t.fontcolor(charColor); el.innerHTML = bef_t + cur_t + aft_t; cur++; if(cur > getHTML.length) cur=0; el.setAttribute(\"CURRENT_CHAR\",cur); getT = el.getAttribute(\"SET_TIME\"); if(getT==\"\") getT = 100; setTimeout(\"textAnima_color2(\'\"+id+\"\',\"+n+\")\",eval(getT)); } if(isIE4) { window.onload = init; } function init() { id = \"ANIMA_TEXT_COLOR2\"; len = document.all.item(id).length; if(!len) len=1; for(var i=0;i<len;i++) { textAnima_color2(id,i); } } //--> </script> <span style=\"font-size:10pt;font-family:"新細明體"\" id=\"ANIMA_TEXT_COLOR2\" SET_COLOR=\"yellow\" SET_TIME=\"100\" CURRENT_CHAR SET_TEXT> 欢迎光临谢谢指导</span></p>
清风细雨
发表于 2008-7-13 10:30
<script Language=\"JavaScript\"> <!-- if(navigator.appVersion.charAt(0)>=4 && (navigator.appVersion).indexOf(\"MSIE\")!=-1) isIE4 = true; else isIE4 = false; function textAnima_color2(id,n) { el = document.all.item(id,n); charColor = el.getAttribute(\"SET_COLOR\"); cur = el.getAttribute(\"CURRENT_CHAR\"); if(cur==\"\") cur = 0; getHTML= el.getAttribute(\"SET_TEXT\"); if(getHTML == \"\") { getHTML = el.innerText; el.setAttribute(\"SET_TEXT\",getHTML); } bef_t = getHTML.substring(0,cur); ; aft_t = getHTML.substring(eval(cur)+1,getHTML.length); cur_t = getHTML.substr(cur,1); cur_t = cur_t.fontcolor(charColor); el.innerHTML = bef_t + cur_t + aft_t; cur++; if(cur > getHTML.length) cur=0; el.setAttribute(\"CURRENT_CHAR\",cur); getT = el.getAttribute(\"SET_TIME\"); if(getT==\"\") getT = 100; setTimeout(\"textAnima_color2(\'\"+id+\"\',\"+n+\")\",eval(getT)); } if(isIE4) { window.onload = init; } function init() { id = \"ANIMA_TEXT_COLOR2\"; len = document.all.item(id).length; if(!len) len=1; for(var i=0;i<len;i++) { textAnima_color2(id,i); } } //--> </script> <span style=\"font-size:10pt;font-family:"新細明體"\" id=\"ANIMA_TEXT_COLOR2\" SET_COLOR=\"yellow\" SET_TIME=\"100\" CURRENT_CHAR SET_TEXT> 谢谢朋友指教 </span></p>
恬心嫣然
发表于 2008-7-13 11:06
<script Language=\"JavaScript\"> <!-- if(navigator.appVersion.charAt(0)>=4 && (navigator.appVersion).indexOf(\"MSIE\")!=-1) isIE4 = true; else isIE4 = false; function textAnima_color2(id,n) { el = document.all.item(id,n); charColor = el.getAttribute(\"SET_COLOR\"); cur = el.getAttribute(\"CURRENT_CHAR\"); if(cur==\"\") cur = 0; getHTML= el.getAttribute(\"SET_TEXT\"); if(getHTML == \"\") { getHTML = el.innerText; el.setAttribute(\"SET_TEXT\",getHTML); } bef_t = getHTML.substring(0,cur); ; aft_t = getHTML.substring(eval(cur)+1,getHTML.length); cur_t = getHTML.substr(cur,1); cur_t = cur_t.fontcolor(charColor); el.innerHTML = bef_t + cur_t + aft_t; cur++; if(cur > getHTML.length) cur=0; el.setAttribute(\"CURRENT_CHAR\",cur); getT = el.getAttribute(\"SET_TIME\"); if(getT==\"\") getT = 100; setTimeout(\"textAnima_color2(\'\"+id+\"\',\"+n+\")\",eval(getT)); } if(isIE4) { window.onload = init; } function init() { id = \"ANIMA_TEXT_COLOR2\"; len = document.all.item(id).length; if(!len) len=1; for(var i=0;i<len;i++) { textAnima_color2(id,i); } } //--> </script> <span style=\"font-size:10pt;font-family:\"新細明體\"\" id=\"ANIMA_TEXT_COLOR2\" SET_COLOR=\"yellow\" SET_TIME=\"100\" CURRENT_CHAR SET_TEXT> 欢迎光临中画网 </span></p>
不好使用,字也不闪呀
[ 本帖最后由 恬心嫣然 于 2008-7-13 11:42 编辑 ]
夏雨
发表于 2008-7-18 08:50
<script Language=\"JavaScript\"> <!-- if(navigator.appVersion.charAt(0)>=4 && (navigator.appVersion).indexOf(\"MSIE\")!=-1) isIE4 = true; else isIE4 = false; function textAnima_color2(id,n) { el = document.all.item(id,n); charColor = el.getAttribute(\"SET_COLOR\"); cur = el.getAttribute(\"CURRENT_CHAR\"); if(cur==\"\") cur = 0; getHTML= el.getAttribute(\"SET_TEXT\"); if(getHTML == \"\") { getHTML = el.innerText; el.setAttribute(\"SET_TEXT\",getHTML); } bef_t = getHTML.substring(0,cur); ; aft_t = getHTML.substring(eval(cur)+1,getHTML.length); cur_t = getHTML.substr(cur,1); cur_t = cur_t.fontcolor(charColor); el.innerHTML = bef_t + cur_t + aft_t; cur++; if(cur > getHTML.length) cur=0; el.setAttribute(\"CURRENT_CHAR\",cur); getT = el.getAttribute(\"SET_TIME\"); if(getT==\"\") getT = 100; setTimeout(\"textAnima_color2(\'\"+id+\"\',\"+n+\")\",eval(getT)); } if(isIE4) { window.onload = init; } function init() { id = \"ANIMA_TEXT_COLOR2\"; len = document.all.item(id).length; if(!len) len=1; for(var i=0;i<len;i++) { textAnima_color2(id,i); } } //--> </script> <span style=\"font-size:10pt;font-family:\"新細明體\"\" id=\"ANIMA_TEXT_COLOR2\" SET_COLOR=\"yellow\" SET_TIME=\"100\" CURRENT_CHAR SET_TEXT> 欢迎光临职教网论坛 </span>
</p>
为什么不闪的啊?
[ 本帖最后由 夏雨 于 2008-7-18 08:51 编辑 ]
雨后斜阳
发表于 2008-7-18 09:44
<script Language=\"JavaScript\"> <!-- if(navigator.appVersion.charAt(0)>=4 && (navigator.appVersion).indexOf(\"MSIE\")!=-1) isIE4 = true; else isIE4 = false; function textAnima_color2(id,n) { el = document.all.item(id,n); charColor = el.getAttribute(\"SET_COLOR\"); cur = el.getAttribute(\"CURRENT_CHAR\"); if(cur==\"\") cur = 0; getHTML= el.getAttribute(\"SET_TEXT\"); if(getHTML == \"\") { getHTML = el.innerText; el.setAttribute(\"SET_TEXT\",getHTML); } bef_t = getHTML.substring(0,cur); ; aft_t = getHTML.substring(eval(cur)+1,getHTML.length); cur_t = getHTML.substr(cur,1); cur_t = cur_t.fontcolor(charColor); el.innerHTML = bef_t + cur_t + aft_t; cur++; if(cur > getHTML.length) cur=0; el.setAttribute(\"CURRENT_CHAR\",cur); getT = el.getAttribute(\"SET_TIME\"); if(getT==\"\") getT = 100; setTimeout(\"textAnima_color2(\'\"+id+\"\',\"+n+\")\",eval(getT)); } if(isIE4) { window.onload = init; } function init() { id = \"ANIMA_TEXT_COLOR2\"; len = document.all.item(id).length; if(!len) len=1; for(var i=0;i<len;i++) { textAnima_color2(id,i); } } //--> </script> <span style=\"font-size:10pt;font-family:\"新細明體\"\" id=\"ANIMA_TEXT_COLOR2\" SET_COLOR=\"yellow\" SET_TIME=\"100\" CURRENT_CHAR SET_TEXT> 感谢祝福老师的分享! </span></p>
雨后斜阳
发表于 2008-7-18 09:46
<script Language=\"JavaScript\"> <!-- if(navigator.appVersion.charAt(0)>=4 && (navigator.appVersion).indexOf(\"MSIE\")!=-1) isIE4 = true; else isIE4 = false; function textAnima_color2(id,n) { el = document.all.item(id,n); charColor = el.getAttribute(\"SET_COLOR\"); cur = el.getAttribute(\"CURRENT_CHAR\"); if(cur==\"\") cur = 0; getHTML= el.getAttribute(\"SET_TEXT\"); if(getHTML == \"\") { getHTML = el.innerText; el.setAttribute(\"SET_TEXT\",getHTML); } bef_t = getHTML.substring(0,cur); ; aft_t = getHTML.substring(eval(cur)+1,getHTML.length); cur_t = getHTML.substr(cur,1); cur_t = cur_t.fontcolor(charColor); el.innerHTML = bef_t + cur_t + aft_t; cur++; if(cur > getHTML.length) cur=0; el.setAttribute(\"CURRENT_CHAR\",cur); getT = el.getAttribute(\"SET_TIME\"); if(getT==\"\") getT = 100; setTimeout(\"textAnima_color2(\'\"+id+\"\',\"+n+\")\",eval(getT)); } if(isIE4) { window.onload = init; } function init() { id = \"ANIMA_TEXT_COLOR2\"; len = document.all.item(id).length; if(!len) len=1; for(var i=0;i<len;i++) { textAnima_color2(id,i); } } //--> </script> <span style=\"font-size:10pt;font-family:"新細明體"\" id=\"ANIMA_TEXT_COLOR2\" SET_COLOR=\"yellow\" SET_TIME=\"100\" CURRENT_CHAR SET_TEXT> 欢迎光临中画网 </span></p>
乃琴
发表于 2008-7-30 17:41
<script Language=\"JavaScript\"> <!-- if(navigator.appVersion.charAt(0)>=4 && (navigator.appVersion).indexOf(\"MSIE\")!=-1) isIE4 = true; else isIE4 = false; function textAnima_color4(id,n) { el = document.all.item(id,n); charColor = el.getAttribute(\"SET_COLOR\"); cur = el.getAttribute(\"CURRENT_CHAR\"); if(cur==\"\") cur = 0; getHTML= el.getAttribute(\"SET_TEXT\"); if(getHTML == \"\") { getHTML = el.innerText; el.setAttribute(\"SET_TEXT\",getHTML); } bef_t = getHTML.substring(0,cur); ; aft_t = getHTML.substring(eval(cur)+1,getHTML.length); cur_t = getHTML.substr(cur,1); cur_t = cur_t.fontcolor(charColor); el.innerHTML = bef_t + cur_t + aft_t; cur++; if(cur > getHTML.length) cur=0; el.setAttribute(\"CURRENT_CHAR\",cur); getT = el.getAttribute(\"SET_TIME\"); if(getT==\"\") getT = 100; setTimeout(\"textAnima_color2(\'\"+id+\"\',\"+n+\")\",eval(getT)); } if(isIE4) { window.onload = init; } function init() { id = \"ANIMA_TEXT_COLOR2\"; len = document.all.item(id).length; if(!len) len=1; for(var i=0;i<len;i++) { textAnima_color2(id,i); } } //--> </script> <span style=\"font-size:10pt;font-family:"新細明體"\" id=\"ANIMA_TEXT_COLOR2\" SET_COLOR=\"yellow\" SET_TIME=\"100\" CURRENT_CHAR SET_TEXT> 谢谢指导 </span></p>
乃琴
发表于 2008-7-30 17:47
怎么不闪呢?在哪添加代码,希望说的更清楚些,对于我们这些菜鸟需要手把手教啊!