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] = 'ダブル台風が接近中、暴風域の奄美大島は'; n_time[0] = '2018-08-22 00:36'; n_text[1] = '新日鉄住金元社員、鉄くず仕入れ装い5億円詐欺か'; n_time[1] = '2018-08-22 04:24'; n_text[2] = '首都高の衝突・炎上事故、ドラレコが一部始終を記録'; n_time[2] = '2018-08-22 04:24'; n_text[3] = '死亡男性の部屋に殺害遺体、岐阜・池田町'; n_time[3] = '2018-08-22 04:24'; n_text[4] = '商店街の暴走車を運転か、別のひき逃げ容疑で逮捕'; n_time[4] = '2018-08-22 04:24'; n_text[5] = '菅長官、携帯料金「4割下げる余地ある」'; n_time[5] = '2018-08-21 22:10'; n_text[6] = '文科省の幹部逮捕相次ぎ、調査検証チーム立ち上げ'; n_time[6] = '2018-08-22 02:00'; n_text[7] = '東京医科大の女子差別入試問題受け、弁護団結成'; n_time[7] = '2018-08-22 01:41'; n_text[8] = '農水省が注意喚起、中国で確認の「アフリカ豚コレラ」'; n_time[8] = '2018-08-22 02:06'; n_text[9] = '日本郵便、冷蔵・冷凍の国際郵便15%値下げ'; n_time[9] = '2018-08-22 02:16'; n_text[10] = '7月のスーパーと百貨店売上げ、明暗分かれる'; n_time[10] = '2018-08-22 04:23'; n_text[11] = 'コンビニ商戦秋の陣、主戦場“レジ横”に異変'; n_time[11] = '2018-08-21 19:56'; n_text[12] = '野党は閉会中審査を要求、障害者雇用水増し問題で'; n_time[12] = '2018-08-21 22:16'; n_text[13] = '経済混乱のベネズエラ、移民流出止まらず'; n_time[13] = '2018-08-21 22:20'; n_text[14] = 'アジア大会4日目、最強競泳陣が金メダルラッシュ'; n_time[14] = '2018-08-22 00:36'; 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); } }