function imgChg(target){ for(i=1;i<=6;i++){ document.getElementById("photo"+i).style.display="none"; } document.getElementById("photo"+target).style.display="block"; } // JavaScript Document //コスチューム用ウィンドウオープン function madawin(targ){ url = "./" + targ.id + "/"; prop = 'width=400,height=550,scrollbars=no,resizable=yes' win = window.open(url,'madawin',prop); win.focus(); } //一枚画像コメントありウィンドウオープン function comwin(targ){ url = "./" + targ.id + "/"; prop = 'width=400,height=750,scrollbars=yes,resizable=yes' win = window.open(url,'comwin',prop); win.focus(); } //コスチューム補完用ウィンドウオープン function coswin(targ){ url =targ; winheight = screen.height*0.9; prop = 'width=760,winheight,scrollbars=yes,resizable=yes' win = window.open(url,'coswin',prop); win.focus(); } //サムネイルの onmouse 制御 function nextimg(targ){ tgtid = 'thumbimg_' + targ.id; img = 'thumb_r.jpg'; switchimg = './' + targ.id + '/images/' + img; document.getElementById(tgtid).src= switchimg; } function previmg(targ){ tgtid = 'thumbimg_' + targ.id; img = 'thumb.jpg'; switchimg = './' + targ.id + '/images/' + img; document.getElementById(tgtid).src= switchimg; }