Rainbow BBCode
Posted: 06 Mar 2010, 12:03
Rainbow BBCode
Author:
Description: Formats the text in different colours.
You cant use BBBCodes inside the tag and You cant use characters as ' and linebreak.
BBCode:
HTML:
Helpline:
Example:
Demo:
[rainbow]t is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout.[/rainbow]
Author:
Description: Formats the text in different colours.
You cant use BBBCodes inside the tag and You cant use characters as ' and linebreak.
BBCode:
Code: Select all
[rainbow]{SIMPLETEXT}[/rainbow]
Code: Select all
<script type="text/javascript">
function colorize(str){
var strArray=str.split("");
for (var i=0;i<strArray.length;i++)
strArray[i]="<span style='color:rgb("+
Math.floor(Math.random()*255)+","+
Math.floor(Math.random()*255)+","+
Math.floor(Math.random()*255)+")'>"+strArray[i]+"</span>";
return strArray.join("");
}
</script>
<script language="javascript" type="text/javascript">
document.write(colorize("{SIMPLETEXT}"));
</script>
Code: Select all
Rainbow: [rainbow]Text here[/rainbow]
Code: Select all
[b][rainbow]t is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout.[/rainbow][/b]
[rainbow]t is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout.[/rainbow]