Techno World Inc - The Best Technical Encyclopedia Online!

THE TECHNO CLUB [ TECHNOWORLDINC.COM ] => Javascript Tricks => Topic started by: Mark David on April 18, 2007, 01:27:44 PM



Title: Vertical Name in Colours
Post by: Mark David on April 18, 2007, 01:27:44 PM
Write any text in the scrapbook and copy and paste the following script on address bar.

Code:
javascript:var a=gringo=document.getElementsByTagName('textarea')[0];a.value=a.value.replace(/|/g," \n ");void(0);javascript:cor=new Array('violet','red','orange','yellow','green','blue','navy','purple');var z=0;txt=document.getElementsByTagName('textarea')[0];txt.value=txt.value.replace(/(.)/gi,"§$1");txt.value=txt.value.replace(/\§ /gi," ");for(y=0;y<txt.value.length;y++){txt.value=txt.value.replace(/\§/,'['+cor[z]+']');z++;if(z==cor.length){z=0}}void(0)

Hit Enter.

You can see your text in vertical form with different colours.


Title: Re: Vertical Name in Colours
Post by: Alex on April 18, 2007, 02:00:58 PM
good1


Title: Re: Vertical Name in Colours
Post by: Hellraiser on August 15, 2007, 01:39:12 PM
cool script