Page is a not externally linkable
- Code, Content, and Presentation
-- JavaScript and AJAX
---- Turning frequently used code into a function


lucy24 - 4:43 am on Oct 9, 2012 (gmt 0)


Are there just two forms?

if ((pr[i].lastIndexOf("ll=", 0)!==-1) || (pr[i].lastIndexOf("m=", 0)!==-1) || (pr[i].lastIndexOf("a=", 0)!==-1))

and

if (pr[i].lastIndexOf("x=", 0)!==-1)

Or did you mean that the generic pattern is

if (p.one||p.two||p.three||et cetera at random)
...
if ((pr[i].lastIndexOf("one=", 0)!==-1) || (pr[i].lastIndexOf("two=", 0)!==-1) || (pr[i].lastIndexOf("three=", 0)!==-1) || et cetera for any number of p.thingies)


?
Makes a big difference to the question.


Thread source:: http://www.webmasterworld.com/javascript/4505715.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com