Lines Matching refs:imag
191 var imag = new Image;
192 imag.onload = function() {
195 spin.src = imag.src;
200 imag.onload = function(){};
202 if (imagePath != '') imag.src = imagePath;
304 var imag = self._box.firstChild;
311 imag.width = Math.floor(orig.w * ratio);
312 imag.height = Math.floor(orig.h * ratio);
315 … self._box.style.top = [self._pos.y + (self._page.win.h - imag.height - 30) / 2,'px'].join('');
316 self._box.style.left = [((self._page.win.w - imag.width - 30) / 2),'px'].join('');
360 var imag = self._box.firstChild;
363 imag.width = self._imgs[self._open].w;
364 imag.height = self._imgs[self._open].h;
378 var imag = self._box.firstChild;
380 top = [imag.height + 10,'px'].join(''); // 10 is top margin of lightbox
382 width = [imag.width + 20,'px'].join(''); // 20 is total side margin of lightbox
404 var imag = new Image;
412 imag.onload = function() {
415 self._imgs[self._open].w = imag.width;
416 self._imgs[self._open].h = imag.height;
422 self._box.firstChild.src = imag.src;
429 imag.src = self._imgs[self._open].src;