Techno World Inc - The Best Technical Encyclopedia Online!

THE TECHNO CLUB [ TECHNOWORLDINC.COM ] => Javascript Tricks => Topic started by: Admin on November 23, 2006, 01:40:27 AM



Title: Scrap in Colours
Post by: Admin on November 23, 2006, 01:40:27 AM
Message in Colours

Write the message in the message box of scrapbook or community forum. DO NOT PRESS SUBMIT.

Paste the following code in the url bar of the browser.

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)

Hit ENTER.

The message in the message box will be modified. Click SUBMIT.


Title: Re: Scrap in Colours
Post by: Vatsal on November 23, 2006, 01:17:14 PM
Here is the Script :

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)

Click on reply i the Topic....Then Write whtever uu want to write in the Space Of the Message.....Then put this Script in the address Bar (Whr u write addresses of the Sites) ....... Then click GO.....then Click on Submit.....The Final message will be in Rainbow colours......


Title: Re: Scrap in Colours
Post by: Shashank Asthana on November 24, 2006, 02:01:29 PM
badiyan hai...


Title: Re: Scrap in Colours
Post by: Mark David on February 20, 2007, 07:34:28 PM
kool