Page 1 of 1

Rainbow BBCode

Posted: 06 Mar 2010, 12:03
by BBCode Bot
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:

Code: Select all

[rainbow]{SIMPLETEXT}[/rainbow]
HTML:

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>
Helpline:

Code: Select all

Rainbow: [rainbow]Text here[/rainbow]
Example:

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]
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]

Re: Rainbow BBCode

Posted: 30 Apr 2010, 19:41
by mau
And so it is possible to write?

Code: Select all

[rainbow]{INTTEXT}[/rainbow]

Re: Rainbow BBCode

Posted: 30 Apr 2010, 20:03
by cisco007
you can try it with INTEXT but some characters won't work when you use it, you can give it a go, but it should work anyways!

Re: Rainbow BBCode

Posted: 02 May 2010, 06:20
by sunne
thank you Rainbow BBCode :D :D

Re: Rainbow BBCode

Posted: 03 May 2010, 18:35
by Berk
working with TEXT1 only... why?

Re: Rainbow BBCode

Posted: 03 May 2010, 18:40
by cisco007
maybe because of the same reason that I posted above!

Re: Rainbow BBCode

Posted: 06 Jun 2010, 07:54
by farukh_khan_2050
Thanks I will try it..

Re: Rainbow BBCode

Posted: 25 Jul 2010, 19:20
by Mark1200
cisco007 ยป 25 Jul 2010, 19:19 wrote:mark1200 you were doing so good, testarea would have been better!


-POSTS SPLIT-
*knip*