| 
  • If you are citizen of an European Union member nation, you may not use this service unless you are at least 16 years old.

  • You already know Dokkio is an AI-powered assistant to organize & manage your digital files & messages. Very soon, Dokkio will support Outlook as well as One Drive. Check it out today!

View
 

Preloader

Page history last edited by PBworks 17 years, 11 months ago


 

Preloader

(extends Object)

 

Preloading is the action of caching an image in the browser's memory for later use.

 

The technique is generally used for rollover images, so that the user will not have to wait the second image to download when hovering over a rollover image.

 

Preloader is an object that makes the preloading of images easier.

 

In s@rdalya, ImageButton and ImageRollover objects use Preloader internally.

 

When preload method is called (this generally happens in the onload event handler of the window) all the images which are explicitly added to the object with enqueue method or implicitly added through ImageRollover and ImageButton start preloading.


Constructor

 

This object is statically accessed. It does not have a constructor.


Methods

 

Preloader.enqueue(varargin)

 

parameters

varargin - variable number of input arguments.

 

comments

Adds all the arguments to the preload queue.


Preloader.preload()

 

comments

Starts the preload operation.


See Also

 

ImageButton

ImageRollover


Usage Examples

 

Comments (0)

You don't have permission to comment on this page.