JS determines the corresponding page of the M that the mobile phone automatically visits to WWW.

time:18-05-09 forum:HTML web page, JS language and code
  http://www.im286.net/thread-20001804-2.html

for example, visit

jump to http://m.vvvdj.com/sort/c1/1-0-0-0-1.html


[code]function uaredirect (f) {
try {
if. {
var e = window.location.host;
var a = window.location.href;
if (isSubdomain (isSubdomain) = = = 1) (isSubdomain (arguments.#91; 1.#93; E) = = 2) {
F = f.Quot; /#m/.quot; a;
b = = / > > = > > > >}}} B = true
}
if (b) {
var C = window.location.hash;
if (! C.match)) / > }
}
}
catch (d) {}
}
function isSubdomain (C, d) {
{> > = {} / > {} {} {} {}
var H = f
}
var g = /^www\./;
if (g.test (H)). Var B = this.getdomain (d);
if (C = = b) {
return 1
}. Return 2
} else {
return 0
}
}
}
}; [/code]
  • 2

prev:The overtime police were sleeping with t... next:Urban renewal, aiming at urban ecologica...
post comment
Notice



approved   Sichuan leg free man wrote thousands...   The domain name stolen and retrieved...   "Silly" old lady Ding Ruiyun: promis...   She is a former world champion, maki...   He was a high student at Yale, but h...
rand   The UL in CSS is detailed with the L...   CSS UL Li picture - non - change - c...   Navigate horizontally with UL and Li   An introduction to the difference be...   Interesting JS background animation ...
ads

other

Because all the contents of this site are reproduced from other media, the intention is to provide free services to the public, but it does not mean that this site agrees with its views, and can not be responsible for the authenticity of its verification, such as the copyright unit or individual of the manuscript does not want to publish on this site, please Contact me, I will immediately remove it, thank you. Contact: atseashawk@163.com