Solstice
view release on metacpan or search on metacpan
javascript/yui/build/imageloader/imageloader-experimental-debug.js view on Meta::CPAN
* @param {Int} width pixel width of the image - defaults to image's natural size
* @param {Int} height pixel height of the image - defaults to image's natural size
* @return {Object} srcImgObj that was registered, for modifying any attributes in the object
*/
YAHOO.util.ImageLoader.group.prototype.registerSrcImage = function(domId, url, width, height) {
this._imgObjs[domId] = new YAHOO.util.ImageLoader.srcImgObj(domId, url, width, height);
return this._imgObjs[domId];
};
/**
* Registers an alpha-channel-type png background image with the group
* @method registerPngBgImage
* @param {String} domId HTML DOM id of the image element
* @param {String} url URL for the image
* @return {Object} pngBgImgObj that was registered, for modifying any attributes in the object
*/
YAHOO.util.ImageLoader.group.prototype.registerPngBgImage = function(domId, url) {
this._imgObjs[domId] = new YAHOO.util.ImageLoader.pngBgImgObj(domId, url);
return this._imgObjs[domId];
};
/**
* Displays the images in the group
* @method fetch
*/
YAHOO.util.ImageLoader.group.prototype.fetch = function() {
YAHOO.log('Fetching images in group: "' + this.name + '".', 'info', 'imageloader');
javascript/yui/build/imageloader/imageloader-experimental-min.js view on Meta::CPAN
/*
Copyright (c) 2007, Yahoo! Inc. All rights reserved.
Code licensed under the BSD License:
http://developer.yahoo.net/yui/license.txt
version: 2.3.0
*/
if(typeof(YAHOO.util.ImageLoader)=='undefined'){YAHOO.util.ImageLoader={};}
YAHOO.util.ImageLoader.group=function(trigEl,trigAct,timeout){this.name='unnamed';this._imgObjs={};this.timeoutLen=timeout;this._timeout=null;this._triggers=[];this.foldConditional=false;this.className=null;this._classImageEls=null;YAHOO.util.Event.a...
var wrappedFetch=function(){this.fetch();};this._triggers.push([trigEl,trigAct,wrappedFetch]);YAHOO.util.Event.addListener(trigEl,trigAct,wrappedFetch,this,true);};YAHOO.util.ImageLoader.group.prototype._onloadTasks=function(){if(this.timeoutLen&&typ...
if(this.foldConditional){this._foldCheck();}};YAHOO.util.ImageLoader.group.prototype._getFetchTimeout=function(){var self=this;return function(){self.fetch();};};YAHOO.util.ImageLoader.group.prototype.registerBgImage=function(domId,url){this._imgObjs...
this._fetchByClass();for(var id in this._imgObjs){if(YAHOO.lang.hasOwnProperty(this._imgObjs,id)){this._imgObjs[id].fetch();}}};YAHOO.util.ImageLoader.group.prototype._foldCheck=function(){YAHOO.log('Checking for images above the fold in group: "'+th...
if(this.className){this._classImageEls=YAHOO.util.Dom.getElementsByClassName(this.className);for(var i=0;i<this._classImageEls.length;i++){var elPos=YAHOO.util.Dom.getXY(this._classImageEls[i]);if(elPos[1]<hLimit&&elPos[0]<wLimit){YAHOO.log('Image wi...
YAHOO.log('Fetching all images with class "'+this.className+'" in group "'+this.name+'".','info','imageloader');if(this._classImageEls===null){this._classImageEls=YAHOO.util.Dom.getElementsByClassName(this.className);}
YAHOO.util.Dom.removeClass(this._classImageEls,this.className);};YAHOO.util.ImageLoader.imgObj=function(domId,url){this.domId=domId;this.url=url;this.width=null;this.height=null;this.setVisible=false;this._fetched=false;};YAHOO.util.ImageLoader.imgOb...
var el=document.getElementById(this.domId);if(!el){return;}
YAHOO.log('Fetching image with id "'+this.domId+'".','info','imageloader');this._applyUrl(el);if(this.setVisible){el.style.visibility='visible';}
if(this.width){el.width=this.width;}
if(this.height){el.height=this.height;}
this._fetched=true;};YAHOO.util.ImageLoader.imgObj.prototype._applyUrl=function(el){};YAHOO.util.ImageLoader.bgImgObj=function(domId,url){YAHOO.util.ImageLoader.bgImgObj.superclass.constructor.call(this,domId,url);};YAHOO.lang.extend(YAHOO.util.Image...
else{el.style.backgroundImage="url('"+this.url+"')";}};YAHOO.register("imageloader",YAHOO.util.ImageLoader,{version:"2.3.0",build:"442"});
javascript/yui/build/imageloader/imageloader-experimental.js view on Meta::CPAN
* @param {Int} width pixel width of the image - defaults to image's natural size
* @param {Int} height pixel height of the image - defaults to image's natural size
* @return {Object} srcImgObj that was registered, for modifying any attributes in the object
*/
YAHOO.util.ImageLoader.group.prototype.registerSrcImage = function(domId, url, width, height) {
this._imgObjs[domId] = new YAHOO.util.ImageLoader.srcImgObj(domId, url, width, height);
return this._imgObjs[domId];
};
/**
* Registers an alpha-channel-type png background image with the group
* @method registerPngBgImage
* @param {String} domId HTML DOM id of the image element
* @param {String} url URL for the image
* @return {Object} pngBgImgObj that was registered, for modifying any attributes in the object
*/
YAHOO.util.ImageLoader.group.prototype.registerPngBgImage = function(domId, url) {
this._imgObjs[domId] = new YAHOO.util.ImageLoader.pngBgImgObj(domId, url);
return this._imgObjs[domId];
};
/**
* Displays the images in the group
* @method fetch
*/
YAHOO.util.ImageLoader.group.prototype.fetch = function() {
YAHOO.log('Fetching images in group: "' + this.name + '".', 'info', 'imageloader');
( run in 0.445 second using v1.01-cache-2.11-cpan-0a6323c29d9 )