锁定老帖子 主题:离职交接没事做, 弄个JE评论彩色字...
精华帖 (4) :: 良好帖 (12) :: 新手帖 (0) :: 隐藏帖 (2)
|
|
---|---|
作者 | 正文 |
发表时间:2011-09-13
<font color='red'>321</font>
|
|
返回顶楼 | |
发表时间:2011-09-13
试试
|
|
返回顶楼 | |
发表时间:2011-09-13
hhtop5 写道 试试 试试看看看 |
|
返回顶楼 | |
发表时间:2011-09-13
测试进行中
|
|
返回顶楼 | |
发表时间:2011-09-13
试一下呗
|
|
返回顶楼 | |
发表时间:2011-09-13
ie8 It is ok?
|
|
返回顶楼 | |
发表时间:2011-09-13
真的很好玩哦
|
|
返回顶楼 | |
发表时间:2011-09-13
测试下我的JS
javascript:var colorIndex=0;var colorSel=document.getElementById('select_color');var input=document.getElementById('editor_body');var inputVal=input.value;function makeColor(str){if(colorIndex>=colorSel.length-1){colorIndex=0};return "[color="+colorSel.options[colorIndex++].value+"]"+str+"[/color]";};input.value='';for(i=0;i<inputVal.length;i++){input.value=input.value+makeColor(inputVal.charAt(i))};alert('done.'); |
|
返回顶楼 | |
发表时间:2011-09-13
[quote="lgsun592"]ie8 It is ok?[/quote]
我试的就是IE8 |
|
返回顶楼 | |
发表时间:2011-09-13
这么用额?
|
|
返回顶楼 | |