Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //this program is for speaking with facebook or dictionary...please working on this //project
- function hello(){
- var x1=new Array();
- x1[0]="ahoj:-)";
- x1[1]="nazdar bazar:-)";
- x1[2]="zdar a sílu:-)";
- x1[3]="čau:)";
- var prom=Math.floor(Math.random()*3);
- form.text1.value=x1[prom];
- };
- function nothing(){
- var x1=new Array();
- x1[0]="nic...";
- x1[1]="nic:)";
- x1[2]="nic:(";
- var prom=Math.floor(Math.random()*2);
- form.text1.value=x1[prom];
- };
- function ok(){
- var x1 = new Array();
- x1[0]="oukej dobře:)";
- x1[1]="dobře";
- var prom=Math.floor(Math.random()*1);
- form.text1.value=x1[prom];
- };
- function zvk_1(){
- var x="";
- x=form.text2.value;
- switch(x){//
- case "ahoj":hello();break;
- case "co je?":nothing();break;
- case "co nového?":nothing();break;
- case "jak se mas?":ok();break;
- case "jak to jde?":ok();break;
- case "no?":nothing();break;//yea
- case "jj":dobre();break;//ok
- default :form.text1.value="ok,thank You...";
- };
- };//to English is easy...
Add Comment
Please, Sign In to add comment