icon_on = "on.gif" // BGMオンボタン icon_off = "off.gif" // BGMオフボタン icon_opac = 10 // 暗ボタンの明度 icon_space = 2 // ボタン間 title_on = "BGM 演奏" title_off = "BGM 邪魔" title_on_off = "演奏/停止" BGMloop = 1 /* 以上の部分は必要が有れば修正する */ status = "Hero's Gallery" var auto_start var sound_on var sound_off function BGM(sw1_2){ if (BGMstart == 2){ sound_on = "" sound_off = "" }else{ sound_on = "" sound_off = "" } auto_start = BGMstart if(BGMstart == 2){auto_start = 1} if(sw1_2 == 0){auto_start = 0} s ="" if(auto_start == 1){ s = s + sound_on }else{ s = s + sound_off } s +="" if(sw1_2==1){ if(auto_start == 0){ s +="" }else{ s +="" } } if(sw1_2 == 2){ s +="
" if(auto_start == 1){ s +=" " s +="" s +=" " s +=" " } s +="
" } document.open() ; document.write(s) ; document.close() } /* 1 Button */ function BGM1(){ auto_start = 1 - auto_start if(auto_start == 0){ document.bicon.src = icon_on }else{ document.bicon.src = icon_off } on_off = auto_start timerID = setTimeout("BGMonoff(on_off)", 10) } /* 2 Button */ function BGM2(button2){ if(document.all){ if(button2 == 0){ mon.filters['alpha'].opacity = 100 mof.filters['alpha'].opacity = icon_opac } else { mon.filters['alpha'].opacity = icon_opac mof.filters['alpha'].opacity = 100 } } on_off = button2 timerID = setTimeout("BGMonoff(on_off)", 10) } /* BGM on-off */ function BGMonoff(on_off){ if(on_off == 0){ document.getElementById("bgm_id").innerHTML = sound_off }else{ document.getElementById("bgm_id").innerHTML = sound_on } }