for (y = 1; y <= Bottom; y++) { s = [1,y]; x = 2; while (s != "") { p1 = s.indexOf("カラー選択:"); if (p1 == -1) { break; } p2 = s.indexOf("=", p1); if (p2 == -1) { break; } p3 = s.indexOf("&", p2); if (p3 == -1) { p3 = s.length; } [x,y] = s.substring(p1 + 6, p2); [x+1,y] = s.substring(p2 + 1, p3); s = s.substring(p3 + 1); x += 2; } }