(function () { var wait = "3"; var href = "http://m.qdmama.net"; if (href.length > 0) { var interval = setInterval(function () { var time = --wait; if (time == 0) { location.href = href; clearInterval(interval); }; }, 1000); } })();