YUI recommends YUI 3.

YUI 2 has been deprecated since 2011. This site acts as an archive for files and documentation.

Yahoo! UI Library

imageloader  2.5.1

Yahoo! UI Library > imageloader > YAHOO.util.ImageLoader.pngBgImgObj

Show Private Show Protected

Class YAHOO.util.ImageLoader.pngBgImgObj - extends YAHOO.util.ImageLoader.imgObj

PNG background image object. A PNG background image is one whose URL is specified through AlphaImageLoader or by "background-image" in the element's style


YAHOO.util.ImageLoader.pngBgImgObj ( domId , url , ailProps )
domId <String> HTML DOM id of the image element
url <String> URL for the image
ailProps <Object> The AlphaImageLoader properties to be set for the image Valid properties are 'sizingMethod' and 'enabled'


props - Object

AlphaImageLoader properties to be set for the image. Valid properties are "sizingMethod" and "enabled".



private void _applyUrl ( el )
Inserts the image URL into the DOM so that the image is displayed. If the browser is determined to be IE6 (or older), sets the AlphaImageLoader src; otherwise sets style.backgroundImage
el <Object> HTML DOM element
Returns: void

Methods inherited from YAHOO.util.ImageLoader.imgObj:

Copyright © 2007 Yahoo! Inc. All rights reserved.