论坛首页 Web前端技术论坛

离职交接没事做, 弄个JE评论彩色字...

浏览 126078 次
精华帖 (4) :: 良好帖 (12) :: 新手帖 (0) :: 隐藏帖 (2)
作者 正文
   发表时间:2011-09-13  
<font color='red'>321</font>
0 请登录后投票
   发表时间:2011-09-13  
0 请登录后投票
   发表时间:2011-09-13  
hhtop5 写道

试试看看看
0 请登录后投票
   发表时间:2011-09-13  
测试进行中
0 请登录后投票
   发表时间:2011-09-13  
0 请登录后投票
   发表时间:2011-09-13  
ie8  It is  ok?
0 请登录后投票
   发表时间:2011-09-13  
0 请登录后投票
   发表时间: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.');

0 请登录后投票
   发表时间:2011-09-13  
[quote="lgsun592"]ie8 It is ok?[/quote]
IE8
0 请登录后投票
   发表时间:2011-09-13  
这么用额?
0 请登录后投票
论坛首页 Web前端技术版

跳转论坛:
Global site tag (gtag.js) - Google Analytics