锘?// var slist = document.getElementsByTagName("script"); var oparm = slist[slist.length - 1].src.split("?")[1]; var url = "/Supplies/ShowShield?act=shield"; $(function () { var parm = oparm + "&referrer=" + encodeURI(document.referrer); //var parm = oparm + "&url=" + encodeURI(document.URL) + "&referrer=http://www.google.com.hk/search?hl=zh-CN&newwindow=1&safe=strict&rlz=1T4GZAZ_zh-CNCN361CN361&q=site%3Awww.szccd.com&btnG=Google+%E6%90%9C%E7%B4%A2&aq=f&aqi=&aql=&oq=&gs_rfai="; $.ajax({ type: "POST", url: url, data: parm, dataType: "text", success: function (_data) { if (_data != "") { $("body").append(_data); changediv(); redirectUrl(15); window.onresize = changediv; } }, error: function (xhr, e) { //alert("404:" + xhr.responseText); } }); }); function changediv() { var obj = document.documentElement.clientHeight ? document.documentElement : document.body; document.getElementById('bgshielddiv').style.height = obj.scrollHeight + 'px'; document.getElementById('bgshielddiv').style.width = obj.scrollWidth + 'px'; document.getElementById('contentdiv').style.left = (obj.clientWidth - 575) / 2 + 'px'; document.getElementById('contentdiv').style.top = (obj.clientHeight - 420) / 2 + 'px'; } function redirectUrl(sec) { if (sec <= 0) { window.location.href = '/'; return; } window.setTimeout('Counter(' + sec + ')', 1000); } function Counter(sec) { document.getElementById("li_sec").innerHTML = sec + "绉掑悗灏嗚嚜鍔ㄨ烦杞埌棣栭〉銆?; redirectUrl(--sec); }