08/07/21 02:25:26 hzpBBoyZ0
やべぇ不具合があったorz修正版置いとく
<script>
function getNewArrival() {
var xmlhttp = new ActiveXObject("Microsoft.XMLHTTP") ;
xmlhttp.open("GET", "URLリンク(www.nicovideo.jp)",null)
xmlhttp.setRequestHeader("If-Modified-Since", "Thu, 01 Jun 1970 00:00:00 GMT");
xmlhttp.send(null)
xmlhttp.onreadystatechange = function (){
if(xmlhttp.readyState == 4){
var divtemp = document.createElement('div')
divtemp.innerHTML = xmlhttp.responseText
var links = divtemp.getElementsByTagName("A")
for(i=0;i<links.length;i++)
if(links[i].href.match(/[a-z]{2}(\d+)$/)){
var smid = RegExp.$1;break}
alert(smid)
}}}
</script>
<input type=button value=NewArrival onclick="getNewArrival()">