Sign in to follow this  
Followers 0
jaenster

Execute javascript function

2 posts in this topic

Hi, I need to execute a java script :D

How to execute this. :P any some idea

function rmGetSize(size){if(size.indexOf("pop")>-1)return 0;else if(size.indexOf("430x600")>-1)return 53;else if(size.indexOf("300x600")>-1)return 16;else if(size.indexOf("160x600")>-1)return 10;else if(size=="120x600")return 1;else if(size=="300x250")return 2;else if(size=="336x280")return 3;else if(size=="468x60")return 4;else if(size=="550x150")return 5;else if(size.indexOf("728x90")>-1)return 6;else if(size=="700x300")return 8;else if(size=="125x125")return 12;else if(size=="234x60")return 13;else if(size=="120x240")return 14;else if(size=="180x150")return 15;else if(size=="100x25")return 17;else if(size=="710x30")return 18;else if(size=="720x300")return 19;else if(size=="300x200")return 20;else if(size=="72x50")return 21;else if(size=="125x90")return 22;else if(size=="120x90")return 23;else if(size=="520x31")return 24;else if(size=="300x400")return 25;else if(size=="460x31")return 26;else if(size=="503x140")return 27;else if(size=="250x400")return 28;else if(size=="200x200")return 29;else if(size=="250x250")return 30;else if(size=="468x250")return 31;else if(size=="500x350")return 32;else if(size=="425x600")return 33;else if(size=="140x60")return 34;else if(size=="120x60")return 35;else if(size=="700x700")return 36;else if(size=="140x140")return 37;else if(size=="620x90")return 38;else if(size=="125x300")return 39;else if(size=="420x100")return 40;else if(size=="88x31")return 41;else if(size=="240x400")return 42;else if(size=="120x300")return 43;else if(size=="380x200")return 44;else if(size=="199x70")return 45;else if(size=="199x170")return 46;else if(size=="180x240")return 47;else if(size=="160x90")return 48;else if(size=="230x33")return 49;else if(size=="134x492")return 50;else if(size=="436x600")return 51;else if(size=="600x400")return 52;else if(size=="460x60")return 54;else if(size=="217x126")return 55;else if(size=="260x31")return 56;else if(size=="120x120")return 57;else if(size=="400x600")return 58;else if(size=="278x85")return 59;else if(size=="300x90")return 60;else if(size=="340x30")return 61;else if(size=="768x400")return 62;else if(size=="768x150")return 63;else if(size=="468x400")return 64;else if(size=="180x500")return 65;else if(size=="140x350")return 66;else if(size=="700x600")return 67;else if(size=="209x30")return 68;else if(size=="300x120")return 69;else if(size=="206x278")return 70;else if(size=="110x60")return 71;else if(size=="90x75")return 72;else if(size=="400x400")return 73;else if(size=="129x740")return 74;else if(size=="440x160")return 75;else if(size=="336x250")return 76;else if(size=="160x300")return 77;else return-1;}

-jaenster

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

What does the function do? If it just returns an integer corresponding to a string why not just convert it to autoit.

Edited by SolidSnake

HKTunes:Softpedia | GoogleCodeLyricToy:Softpedia | GoogleCodeRCTunes:Softpedia | GoogleCodeMichtaToolsProgrammer n. - An ingenious device that turns caffeine into code.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0