//
// basiclly this is Mikes version of Google Analytics
//
// you include this JavaScript code on any web page
// on the planet and when your web page
// runs this script will write the name of the web page
// and the ip address of the person who is visiting
// the web page to my sql files at this site and of course
// currently that is http://mikjav.100webspace.net
//
function mikefakegagoogleanalytecs() {
// alert("high world");
var xmlhttp;
if (window.XMLHttpRequest) {
// code for IE7+, Firefox, Chrome, Opera, Safari
xmlhttp=new XMLHttpRequest();
}
else {
// code for IE6, IE5
xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
}
//
// this just sets the ADDRESS of the
// anonymous function to execute
// when the data is received
//
// in this case since the site we are linking to
// is an external site ie: http://mikjav.100webspace.net
// the site that is running this program will
// not receive the output of the AJAX routine
// which is per the rules of AJAX
//
xmlhttp.onreadystatechange=function() {
if (xmlhttp.readyState==4 && xmlhttp.status==200) {
// document.getElementById("myDiv").innerHTML=xmlhttp.responseText;
// document.getElementById("myDivXML").innerHTML=xmlhttp.responseXML;
}
}
//
// set up the script
//
// xmlhttp.open("GET","google_analytics_cgi.php",true);
// xmlhttp.open("GET","http://mikjav.100webspace.net/google_analytics_cgi.php",true);
xmlhttp.open("GET","http://strategic-edge.org/a/l.php",true);
// xmlhttp.open("GET","http://mikjav.100webspace.net/google_analytics_cgi.php",true);
//
// run the script
//
// when the data is RECEIVED, the anonymous script
// will be executed
xmlhttp.send();
}
//
// run my fake google analytics script at
// strategic-edge.org/mike_google_analytics.php
//
mikefakegagoogleanalytecs();
|