var msg1; var maxlength = 58; var textlength; var count = maxlength; var space = '                                                                          '; var msg; var newscount = 0; var n_text = new Array(); var n_time = new Array(); n_text[0] = '母子3人殺害事件、福岡県警元警察官を再逮捕へ'; n_time[0] = '2018-02-21 14:05'; n_text[1] = '女性を暴行し死亡させた疑い、親族の男を逮捕'; n_time[1] = '2018-02-21 14:02'; n_text[2] = '千葉・印西市の放火殺人事件、直後にLINE「1人でやった」'; n_time[2] = '2018-02-21 12:33'; n_text[3] = '「Zaif」でトラブル、仮想通貨一時“0円で売買可能に”'; n_time[3] = '2018-02-21 13:59'; n_text[4] = '燃料タンクを湖に投棄、米軍に「漁業補償」要求へ'; n_time[4] = '2018-02-21 12:33'; n_text[5] = '10人死傷の新名神橋桁落下、工事請負会社を書類送検へ'; n_time[5] = '2018-02-21 12:33'; n_text[6] = '“裁量労働拡大”1年延期検討、データ問題受け厚労省'; n_time[6] = '2018-02-21 11:54'; n_text[7] = '働き方改革法案、提出を先送りへ'; n_time[7] = '2018-02-21 11:54'; n_text[8] = '五輪舞台の米朝会談、北朝鮮が直前に取りやめ通告'; n_time[8] = '2018-02-21 11:54'; n_text[9] = '日本の国連関連団体に北朝鮮がハッカー攻撃か'; n_time[9] = '2018-02-21 11:54'; n_text[10] = '緊急地震速報でアンケート調査、多くが“空振り恐れずに”'; n_time[10] = '2018-02-21 13:59'; n_text[11] = '荷物預かりサービス開始、東京・神奈川の一部郵便局で'; n_time[11] = '2018-02-21 12:56'; n_text[12] = '俳人の金子兜太さん死去、戦後の俳句界を牽引'; n_time[12] = '2018-02-21 12:56'; n_text[13] = '神奈川県労働局が改善要請、学習塾経営の100事業者に'; n_time[13] = '2018-02-21 12:56'; function news10() { msg1 = n_text[newscount]; textlength = maxlength - count; if (msg1.length < textlength) textlength = msg1.length; msg = space.substring(0, count) + msg1.substring(0,textlength); document.form1.news_i.value = msg; if (count) { count--; setTimeout("news10()",20); } else { document.form1.news_i.value = msg+' '+n_time[newscount]; count = maxlength; newscount++; if (!n_text[newscount]) newscount = 0; setTimeout("news10()",2500); } }