Techno World Inc - The Best Technical Encyclopedia Online!

THE TECHNO CLUB [ TECHNOWORLDINC.COM ] => Javascript Tricks => Topic started by: Admin on November 29, 2006, 06:51:08 PM



Title: How To Send Colorful Scraps!
Post by: Admin on November 29, 2006, 06:51:08 PM
Now You Can Make Colorful Scraps!

1. Just type the scrap message in the scrapbook
2. Before posting it, copy paste the following code in the address bar

javascript:cor=new Array('aqua','blue','fuchsia','gold','gray','green','lime','maroon','navy','olive','orange','pink','purple','red','silver','teal','violet','yellow' );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)

3. Click submit and your done!


Title: Re: Reply in Colors
Post by: Redheart on December 12, 2006, 04:13:28 PM
thats really cool


Title: Re: How To Send Colorful Scraps!
Post by: Mark David on February 20, 2007, 06:38:26 PM
awesome