Yahoo! UI Library

imageloader  2.5.2

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

Show Private Show Protected

Class YAHOO.util.ImageLoader.imgObj

Known Subclasses:
YAHOO.util.ImageLoader.srcImgObj YAHOO.util.ImageLoader.bgImgObj YAHOO.util.ImageLoader.pngBgImgObj
Base class for image objects to be registered with the groups

Constructor

YAHOO.util.ImageLoader.imgObj ( domId , url )
Parameters:
domId <String> HTML DOM id of the image element
url <String> URL for the image

Properties

domId - String

HTML DOM id of the image element

height - Int

Pixel height of the image. Will be set as a "height" attribute after the image is fetched. Detaults to the natural height of the image. Only appropriate with src images

setVisible - Boolean

Whether the style.visibility should be set to "visible" after the image is fetched. Used when setting src images as visibility:hidden prior to image fetching

url - String

URL for the image

width - Int

Pixel width of the image. Will be set as a "width" attribute after the image is fetched. Detaults to the natural width of the image. Only appropriate with src images

Methods

fetch

void fetch ( )
Displays the image; puts the URL into the DOM
Returns: void


Copyright © 2007 Yahoo! Inc. All rights reserved.