function insACLog(id){ var xmlhttp; try { xmlhttp = new ActiveXObject("Msxml2.XMLHTTP"); } catch (e) { try { xmlhttp = new ActiveXObject("Microsoft.XMLHTTP"); } catch (e) { xmlhttp = false; } } if (!xmlhttp && typeof XMLHttpRequest!='undefined') { xmlhttp = new XMLHttpRequest(); } if (xmlhttp) { //HTTPリクエストを送ったりするとこここから xmlhttp.open('GET', 'access_log.html?hp_id='+id); xmlhttp.send(null); //HTTPリクエストを送ったりするとこここまで } }