function XMLHttpRequestCreate(){ try{ return new XMLHttpRequest(); }catch(e){} try{ return new ActiveXObject('MSXML2.XMLHTTP.6.0'); }catch(e){} try{ return new ActiveXObject('MSXML2.XMLHTTP.3.0'); }catch(e){} try{ return new ActiveXObject('MSXML2.XMLHTTP'); }catch(e){} return null; } var xhr = XMLHttpRequestCreate(); xhr.onreadystatechange = function (){ switch(xhr.readyState){ case 4: if(xhr.status == 0){ //alert("AJAX Error"); }else{ if((200 <= xhr.status && xhr.status < 300) || (xhr.status == 304)){ //alert("受信:" + xhr.responseText); }else{ //alert("その他の応答:" + xhr.status); } } break; } }; function senddata(media){ var uniq = "663496c17c0df0.28766333"; var url = "http://buzzcheck.nplus-inc.co.jp/l.php?hash=8f4e33e0-1481-40b9-a918-52ac2d315a63&uniq=" + uniq + "&via=" + media + "&url=" + location.href + "&shorturl=http://buzzcheck.nplus-inc.co.jp/c.php?h=663496c17c0df0.28766333"; xhr.open("GET" , url); var send_data = "dummy"; xhr.send(send_data); } pagetitle = document.title; /* if(pagetitle.length>50){ pagetitle = pagetitle.substr(0,50); } */ pagetitle = encodeURIComponent(pagetitle); pageurl = location.href; pageurl = encodeURIComponent(pageurl); btn_html = ""; btn_html +="
"; btn_html +="
\"Facebook\"
"; btn_html +="
\"Twitter\"
"; // btn_html +="
\"Google+\"
"; btn_html +="
\"Hatena\"
"; btn_html +="
\"Pocket\"
"; btn_html +="
\"Line\"
"; btn_html +="
"; btn_html +=""; // document.getElementById("bz_2dd9e5dae5c7f7ff2af12c83a8182117").innerHTML = btn_html; elem = document.getElementsByClassName("bz_2dd9e5dae5c7f7ff2af12c83a8182117"); for(var i=0;i