Set Clip

function setEltClip (elt, 
     cliptop, clipright, 
     clipbottom, clipleft) {
  if (is.nav4up) {
    elt.clip.left   = clipleft;
    elt.clip.top    = cliptop;
    elt.clip.right  = clipright;
    elt.clip.bottom = clipbottom;
  }
  else if (is.ie4up)  elt.clip = 'rect(' + 
        cliptop + ' ' +  clipright + ' ' + 
        clipbottom + ' ' + clipleft +')';
  else return (null);
}

Speaker Notes