forEach

ASで全配列に対してloop処理するときeachInってメソッドを使って、
array.eachIn(function(s){ ... }) みたいにして処理すんだけど、
JSでもできんのかなー?とおもったら、FFではできるんだけど、
どうやらIEにはないらしい。そゆときは、

if (!Array.prototype.forEach){
  Array.prototype.forEach = function(fun /*, thisp*/)
  {
    var len = this.length;
    if (typeof fun != "function")
      throw new TypeError();
    var thisp = arguments[1];
    for (var i = 0; i < len; i++)
    {
      if (i in this)
        fun.call(thisp, this[i], i, this);
    }
  };
}

この一文を入れて解決!これで、for文かかんでもちゃちゃ処理できるべ。