Techno World Inc - The Best Technical Encyclopedia Online!

THE TECHNO CLUB [ TECHNOWORLDINC.COM ] => Javascript Tricks => Topic started by: Shrey on March 15, 2007, 02:43:39 PM



Title: ALTERNATE SMILEY N COLORED TEXT
Post by: Shrey on March 15, 2007, 02:43:39 PM
ALTERNATE SMILEY N COLORED TEXT

Does this need any description? I hope you must have got what this do.

Follow the steps:

1) Open any scrapbook.

2) Write your message in the scrap. Do NOT click on submit.

3) Copy the following text and paste it in your address bar (To the place where you type www.orkutguide.com )

Code:
javascript:cor=new Array('green',':x','gold',';)','blue',':)','red',':(','orange','8)','green',':D','blue',':o','lime','/)','gray',':P');var z=0;txt=document.getElementsByTagName('textarea')[0]; txt.value=txt.value.replace(/\n/gi,'§ ');sp=txt.value.split(' ');txti='';for(l=0;l<sp.length;l++){txti+="["+cor[z]+"]"+sp[l]+' ';z++;if(z==cor.length){z=0}}; txt.value=txti;txt.value=txt.value.replace(/\§/gi,'\n');void(0)

4) Hit ENTER key of your keyboard.

5) Click on Submit

That's all.


Title: Re: ALTERNATE SMILEY N COLORED TEXT
Post by: Mark David on April 18, 2007, 01:29:55 PM
nice trick