//获取url参数 function GetQueryString(name) { var reg = new RegExp("(^|\\?)" + name + "=([^&]*)(&|$)"); var scripts = document.getElementsByTagName('script'); var Getscriptssrc = ""; for (var i = 0; i < scripts.length; i++) { var scriptssrc = scripts[i].src; if (scriptssrc.indexOf("mystat.aspx") > -1) { Getscriptssrc = scriptssrc; break; } } if (Getscriptssrc != "") { var r = Getscriptssrc.match(reg); if (r != null) return unescape(r[2]); } return null; } var mystatUParam = GetQueryString("u"); if(mystatUParam==undefined) mystatUParam = GetQueryString("U"); if (mystatUParam == undefined) mystatUParam = "CID2434"; document.write("");