// クイズ$ミニオネア! v.1.13(Free soft) // 無断転載及び不正使用禁止 // Last Modified:2001/09/19 // suepon csm@suepon.com // Scripts Found at: http://CGIScriptMarket.com/ str = new Array(); str[0] = new Array("息抜き運試し!どれかな〜?","此処かもよ☆","危険・・フフ","普通は此処だろ?","1"); str[1] = new Array("カンペキのペキは次の内どれ?","完壁","完癖","完璧","3"); str[2] = new Array("わたくし管理人の以前受賞した賞は何?","ノーベル平和賞","アカデミー賞","欽ドン賞","3"); str[3] = new Array("今、あなたの見ているサイトの名前は何?","kaikaiサイト","kapikapiサイト","kyapikyapiサイト","2"); str[4] = new Array("国税局の手入れは査察、では火サスと言ったら?","傘をさすの略語","火曜サスペンス劇場","群馬の方言で蚊がさすこと","2"); full_str = new Array("0","1","2","3","4","5","6","7","8","9","10"); BUF = ''; max = 5; st = 0; function start(md) { if(! str[0]) document.denkoh_f.inf.value = "問題が登録されていません。"; else { lmt = 3; lock = 0; pnt = 0; no = 0; an = -1; tl = 0; if (md*0 != 0) { demo = 1; msg = "クイズ$ミニオネア スタートを押して下さい…左のアイコンをクリックすると出題もできます。"; st = 0; telop(); } else { demo = 0; resept(); } } } function ans_set(ans) { if(! str[0]) start(); else if (st && st <= max && ! ans) alert("+++ クイズ$ミニオネア +++\n\n只今"+full_str[st]+"問目です。\n\nリセットはできません!"); else if (! ans) { msg = "クイズ$ミニオネア・・・スタートです! 全"+full_str[max]+"問に挑戦!"; demo = 0; st = 0; tl = 0; clearTimeout(line); telop(); } else if (lock == 1) alert("+++ クイズ$ミニオネア +++\n\nもう答の変更はできません!"); else if (! st || st > max) { clearTimeout(line); start(); } else resept(ans); } function resept(ans) { if (an > 3) { an = 0; no++; } else an++; if (! str[no]) no = 0; tl = 0; fin_an = ans; true_ans = str[no][4]; if (ans) { msg = "ファイナルアンサー?"; clearTimeout(line); } else if (an == 0) msg = "Q"+(no+1)+"."+str[no][0]; else if (an < 4) msg = "Ans"+an+"."+str[no][an]; telop(); } function telop(){ tl += 1; document.denkoh_f.inf.value=msg.substring(0,tl); if(tl <= msg.length && tl > 0) line = setTimeout("telop()",100); else { document.denkoh_f.point.value = full_str[pnt] + "問正解"; line = setTimeout("del()",2000); } } function del(){ end = msg.length; msg=msg.substring(1,end); document.denkoh_f.inf.value = msg; if(end > 0) line = setTimeout("del()",100); else if (st > max) fin(); else if (demo) line = setTimeout("start()",1000); else if (! st) { line = setTimeout("start(1)",1000); st++; } else if (fin_an) check(); else if (an >= 3) limit(); else { line = setTimeout("resept()",1000); lock = 0; } } function limit() { document.denkoh_f.inf.value = "Time limit:" + full_str[lmt]; lmt--; if (lmt > 0) line = setTimeout("limit()",1000); else { line = setTimeout("check()",1000); } } function check() { if (fin_an == true_ans) { msg = "・・・・・・・・・・・・・正解!"; pnt++; } else msg = "・・・・・・・・・・・・・残〜念!"; lock = 1; lmt = 3; fin_an = ""; no++; an = -1; tl = 0; clearTimeout(line); st++; telop(); } function fin() { par = Math.ceil((pnt/max)*100); msg = "クイズ$ミニオネア終了です。あなたの成績は"+full_str[max]+"問中"+full_str[pnt]+"問の正解(正解率"+par+"%)でした!Aボンをどうぞ。"; lock = 0; tl = 0; demo = 1; setTimeout("telop()",1000); } function win() { window.open('http://www3.wind.ne.jp/asama/cgi-bin/minionaire/minionaire.cgi?input','denkoh','width=100,height=100,scrollbars,resizable'); } BUF+='
'; BUF+=''; BUF+=''; BUF+=''; BUF+=''; BUF+=''; BUF+=''; BUF+=''; BUF+='
' document.write(BUF); window.onload = start;