Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var img = Y.Node.create('<img src="' + /"([^"]*)"/.exec(this._host.getStyle('backgroundImage'))[1] + '" style="position: absolute; top: -99999px; " />');
- Y.one('body').append(img);
- this._bannerWidth = parseFloat(img.get('offsetWidth'), 10);
- img.remove(true);
Add Comment
Please, Sign In to add comment