function hide_ele(){ if(document.getElementById('b1').checked == true){ document.getElementById('bb1').style.display = 'block'; document.getElementById('bb2').style.display = 'none'; } if(document.getElementById('b2').checked == true){ document.getElementById('bb1').style.display = 'none'; document.getElementById('bb2').style.display = 'block'; } } function open_win(a,b){ var w_url = 'child_html?place=' + a + '&my_id=' + b; window.open(w_url, "img_up", "width=250,height=200"); } // function num_check(mode){ if(mode == 'cart'){ str = document.getElementById('m_nu').value; }else{ str = document.getElementById(mode).value; } if( str.match( /[^0-90-9]+/ ) ) { window.alert("数量は数字のみ入力してください"); return false; } } //▼ボタンロールオーバー function Rollover() { if(document.getElementsByTagName) { var images = document.getElementsByTagName("img"); for(var i=0; i < images.length; i++) { if(images[i].getAttribute("src").match("_off.")) { images[i].onmouseover = function() { this.setAttribute("src", this.getAttribute("src").replace("_off.", "_on.")); } images[i].onmouseout = function() { this.setAttribute("src", this.getAttribute("src").replace("_on.", "_off.")); } } } } } if(window.addEventListener) { window.addEventListener("load", Rollover, false); } else if(window.attachEvent) { window.attachEvent("onload", Rollover); }