Newマークを表示するJavaScript【1】 // passage time var pass = 24; // display content var content = 'New!!'; var currentDate = new Date(); var spans = document.getElementsByTagName('span'); for (i = 0; i < spans.length; i++) { if(spans[i].getAttribute('class') == 'new' || spans[i].getAttribute('className') == 'new') { time = spans[i].childNodes[0].nodeValue.split(":"); var entryDate = new Date(time[0], time[