var http_request = false;
detaSet();
//onclickイベント
document.onclick = function(e) {
my_address = window.location.protocol+"//"+window.location.hostname;
//IE,Opera
if (document.all) {
//imgタグの場合のhref取得
if (window.event.srcElement.tagName.toLowerCase() == 'img') {
uri = window.event.srcElement.parentElement.href;
if(uri.indexOf("http://analyze.step-bb.jp/collect/link_to.php?") != -1)
return;
if(uri.indexOf(my_address) != -1)
return;
window.event.srcElement.parentElement.href = "http://analyze.step-bb.jp/collect/link_to.php?id=8346&url="+uri;
//aタグの場合のhref取得
}
if (window.event.srcElement.tagName.toLowerCase() == 'a') {
uri = window.event.srcElement.href;
if(uri.indexOf("http://analyze.step-bb.jp/collect/link_to.php?") != -1)
return;
if(uri.indexOf(my_address) != -1)
return;
window.event.srcElement.href = "http://analyze.step-bb.jp/collect/link_to.php?id=8346&url="+uri;
}
}
//Firefox,NetScape
else if (document.getElementById) {
if (e.target.href != '') {
uri = e.target.href;
if(uri.indexOf("http://analyze.step-bb.jp/collect/link_to.php?") != -1)
return;
if(uri.indexOf(my_address) != -1)
return;
e.target.href = "http://analyze.step-bb.jp/collect/link_to.php?id=8346&url="+uri;
}
if (e.target.parentNode.href != '') {
uri = e.target.parentNode.href;
if(uri.indexOf("http://analyze.step-bb.jp/collect/link_to.php?") != -1)
return;
if(uri.indexOf(my_address) != -1)
return;
e.target.parentNode.href = "http://analyze.step-bb.jp/collect/link_to.php?id=8346&url="+uri;
}
}
// alert("link_to");
return true;
}
function GetCookie(key){
var tmp = document.cookie + ";";
var index1 = tmp.indexOf(key, 0);
if(index1 != -1){
tmp = tmp.substring(index1,tmp.length);
var index2 = tmp.indexOf("=",0) + 1;
var index3 = tmp.indexOf(";",index2);
return(unescape(tmp.substring(index2,index3)));
}
return("");
}
function makeRequest(url,get,post) {
/*
//alert("makeRequest Entrance");
http_request = false;
if (window.XMLHttpRequest) { // Mozilla, Safari,...
//alert("Browzer is Mozilla");
http_request = new XMLHttpRequest();
if (http_request.overrideMimeType) {
http_request.overrideMimeType('text/xml');
}
} else if (window.ActiveXObject) { // IE
// alert("Browzer is IE");
try {
http_request = new ActiveXObject("Msxml2.XMLHTTP");
} catch (e) {
try {
http_request = new ActiveXObject("Microsoft.XMLHTTP");
} catch (e) {}
}
}
if (!http_request) {
//alert('Giving up :( Cannot create an XMLHTTP instance');
return false;
}
//alert("makeRequest try http_request.open");
http_request.open('POST', url, true);
//alert("makeRequest try http_request.send");
http_request.send(post);
if(1){
alert("stop");
var strDocument = http_request.responseText;
alert("draw:"+strDocument);
}
//alert("makeRequest Exit");
*/
document.write('');
}
function detaSet(){
makeRequest("http://analyze.step-bb.jp/collect/detaset.php?id=8346", 0, "referer="+encodeURIComponent(document.referrer)+"&width="+screen.width + "&height=" + screen.height + "&color=" +screen.colorDepth+"&cookie="+navigator.cookieEnabled);
}
function getOSType()
{
var uAgent = navigator.userAgent.toUpperCase();
if (uAgent.indexOf("MAC") >= 0) return "MacOS";
if (uAgent.indexOf("WIN") >= 0) return "Windows";
if (uAgent.indexOf("X11") >= 0) return "UNIX";
return "unknown";
}