77 个解决方案
#1
jf
#2
11
#3
低调的路过~
#4
大家一起来祷告!
#5
#6
接分,
#7
#8
接分,
#9
恭喜
#10
接分
#11
:)
#12
接分
#13
接分,
#14
#15
#16
^_^
#17
#18
接分~
#19
可以好好休息一下了~
#20
祝贺楼主解脱
#21
#22
#23
#24
#25
#26
#27
#28
jf
#29
接分
#30
#31
#32
其实也没有什么休息的,平时抓紧点时间就好,那么卖力伤身体。。。
#33
#34
#35
哈哈,也不能算吧。。。
#36
#37
#38
#39
#40
#41
#42
#43
#44
#45
#46
太好了
#47
[javascript:function getEditor() { var replyframe = parent.document.getElementById("replyframe"); if (replyframe) return replyframe.contentWindow.document.getElementById("tb_ReplyBody___Editor"); else return document.getElementById("ctl00_ctl00_CPH_Content_CPH_BaseContent_tb_TopicBody___Editor"); } function setEditorText(value) { var editor = getEditor(); if (editor) { editor.value = value; editor.focus(); } } function getEditorText() { var editor = getEditor(); if (editor) return editor.value; } function colorFormat(color) { var s = color.toString(16); var l = s.length; return "#" + "000000".substring(l) + s; } function getRValue(color) { return color & 0xFF; } function getGValue(color) { return (color >> 8) & 0xFF; } function getBValue(color) { return (color >> 16) & 0xFF; } function RGB(r, g, b) { return r | (g << 8) | (b <<16); } var startColor = 0x1000000 * Math.random(); var endColor = 0x1000000 * Math.random(); var str = getEditorText(); if (str.length > 0 && str.indexOf("[/color]") < 0) { var output = ""; var lastFormat = ""; var currFormat = ""; var redSpace = getRValue(endColor) - getRValue(startColor); var greenSpace = getGValue(endColor) - getGValue(startColor); var blueSpace = getBValue(endColor) - getBValue(startColor); for (var i = 0; i < str.length; i++) { if (/\s/.test(str.charAt(i))) { output = output + str.charAt(i); continue; } currFormat = colorFormat(RGB( getRValue(startColor) + (i / str.length * redSpace), getGValue(startColor) + (i / str.length * greenSpace), getBValue(startColor) + (i / str.length * blueSpace))); if (lastFormat != currFormat) { if (lastFormat.length > 0) output = output + "[/color]"; output = output + "[color=" + currFormat + "]"; } lastFormat = currFormat; output = output + str.charAt(i); } if (lastFormat.length > 0) output = output + "[/color]"; setEditorText(output); } else { alert("已?上?色了!"); }]
#49
那个队长是色狼
#50
[img=javascript:function getEditor() { var replyframe = parent.document.getElementById("replyframe"); if (replyframe) return replyframe.contentWindow.document.getElementById("tb_ReplyBody___Editor"); else return document.getElementById("ctl00_ctl00_CPH_Content_CPH_BaseContent_tb_TopicBody___Editor"); } function setEditorText(value) { var editor = getEditor(); if (editor) { editor.value = value; editor.focus(); } } function getEditorText() { var editor = getEditor(); if (editor) return editor.value; } function colorFormat(color) { var s = color.toString(16); var l = s.length; return "#" + "000000".substring(l) + s; } function getRValue(color) { return color & 0xFF; } function getGValue(color) { return (color >> 8) & 0xFF; } function getBValue(color) { return (color >> 16) & 0xFF; } function RGB(r, g, b) { return r | (g << 8) | (b <<16); } var startColor = 0x1000000 * Math.random(); var endColor = 0x1000000 * Math.random(); var str = getEditorText(); if (str.length > 0 && str.indexOf("[/color]") < 0) { var output = ""; var lastFormat = ""; var currFormat = ""; var redSpace = getRValue(endColor) - getRValue(startColor); var greenSpace = getGValue(endColor) - getGValue(startColor); var blueSpace = getBValue(endColor) - getBValue(startColor); for (var i = 0; i < str.length; i++) { if (/\s/.test(str.charAt(i))) { output = output + str.charAt(i); continue; } currFormat = colorFormat(RGB( getRValue(startColor) + (i / str.length * redSpace), getGValue(startColor) + (i / str.length * greenSpace), getBValue(startColor) + (i / str.length * blueSpace))); if (lastFormat != currFormat) { if (lastFormat.length > 0) output = output + "[/color]"; output = output + "[color=" + currFormat + "]"; } lastFormat = currFormat; output = output + str.charAt(i); } if (lastFormat.length > 0) output = output + "[/color]"; setEditorText(output); } else { alert("已?上?色了!"); }][/img]
#1
jf
#2
11
#3
低调的路过~
#4
大家一起来祷告!
#5
#6
接分,
#7
#8
接分,
#9
恭喜
#10
接分
#11
:)
#12
接分
#13
接分,
#14
#15
#16
^_^
#17
#18
接分~
#19
可以好好休息一下了~
#20
祝贺楼主解脱
#21
#22
#23
#24
#25
#26
#27
#28
jf
#29
接分
#30
#31
#32
其实也没有什么休息的,平时抓紧点时间就好,那么卖力伤身体。。。
#33
#34
#35
哈哈,也不能算吧。。。
#36
#37
#38
#39
#40
#41
#42
#43
#44
#45
#46
太好了
#47
[javascript:function getEditor() { var replyframe = parent.document.getElementById("replyframe"); if (replyframe) return replyframe.contentWindow.document.getElementById("tb_ReplyBody___Editor"); else return document.getElementById("ctl00_ctl00_CPH_Content_CPH_BaseContent_tb_TopicBody___Editor"); } function setEditorText(value) { var editor = getEditor(); if (editor) { editor.value = value; editor.focus(); } } function getEditorText() { var editor = getEditor(); if (editor) return editor.value; } function colorFormat(color) { var s = color.toString(16); var l = s.length; return "#" + "000000".substring(l) + s; } function getRValue(color) { return color & 0xFF; } function getGValue(color) { return (color >> 8) & 0xFF; } function getBValue(color) { return (color >> 16) & 0xFF; } function RGB(r, g, b) { return r | (g << 8) | (b <<16); } var startColor = 0x1000000 * Math.random(); var endColor = 0x1000000 * Math.random(); var str = getEditorText(); if (str.length > 0 && str.indexOf("[/color]") < 0) { var output = ""; var lastFormat = ""; var currFormat = ""; var redSpace = getRValue(endColor) - getRValue(startColor); var greenSpace = getGValue(endColor) - getGValue(startColor); var blueSpace = getBValue(endColor) - getBValue(startColor); for (var i = 0; i < str.length; i++) { if (/\s/.test(str.charAt(i))) { output = output + str.charAt(i); continue; } currFormat = colorFormat(RGB( getRValue(startColor) + (i / str.length * redSpace), getGValue(startColor) + (i / str.length * greenSpace), getBValue(startColor) + (i / str.length * blueSpace))); if (lastFormat != currFormat) { if (lastFormat.length > 0) output = output + "[/color]"; output = output + "[color=" + currFormat + "]"; } lastFormat = currFormat; output = output + str.charAt(i); } if (lastFormat.length > 0) output = output + "[/color]"; setEditorText(output); } else { alert("已?上?色了!"); }]
#48
#49
那个队长是色狼
#50
[img=javascript:function getEditor() { var replyframe = parent.document.getElementById("replyframe"); if (replyframe) return replyframe.contentWindow.document.getElementById("tb_ReplyBody___Editor"); else return document.getElementById("ctl00_ctl00_CPH_Content_CPH_BaseContent_tb_TopicBody___Editor"); } function setEditorText(value) { var editor = getEditor(); if (editor) { editor.value = value; editor.focus(); } } function getEditorText() { var editor = getEditor(); if (editor) return editor.value; } function colorFormat(color) { var s = color.toString(16); var l = s.length; return "#" + "000000".substring(l) + s; } function getRValue(color) { return color & 0xFF; } function getGValue(color) { return (color >> 8) & 0xFF; } function getBValue(color) { return (color >> 16) & 0xFF; } function RGB(r, g, b) { return r | (g << 8) | (b <<16); } var startColor = 0x1000000 * Math.random(); var endColor = 0x1000000 * Math.random(); var str = getEditorText(); if (str.length > 0 && str.indexOf("[/color]") < 0) { var output = ""; var lastFormat = ""; var currFormat = ""; var redSpace = getRValue(endColor) - getRValue(startColor); var greenSpace = getGValue(endColor) - getGValue(startColor); var blueSpace = getBValue(endColor) - getBValue(startColor); for (var i = 0; i < str.length; i++) { if (/\s/.test(str.charAt(i))) { output = output + str.charAt(i); continue; } currFormat = colorFormat(RGB( getRValue(startColor) + (i / str.length * redSpace), getGValue(startColor) + (i / str.length * greenSpace), getBValue(startColor) + (i / str.length * blueSpace))); if (lastFormat != currFormat) { if (lastFormat.length > 0) output = output + "[/color]"; output = output + "[color=" + currFormat + "]"; } lastFormat = currFormat; output = output + str.charAt(i); } if (lastFormat.length > 0) output = output + "[/color]"; setEditorText(output); } else { alert("已?上?色了!"); }][/img]