The
Zimage.js
array:
Zimage.js, Javascript image creation and manipulation, 1,066 bytes.
// ZNIPPets.com, "Zimage.js", by DocOzone... default basic setup... // "prototype" functions for the makeZimage() function. // Note: This is the "Basic" stripped down version. function makeZimage( ID, wrapper, height, width, defaultSrc, overSrc ) { this.ID = ID ? ID : "Zimage"+(Zobject.length); this.DHTML = (wrapper && Zflag.NS) ? eval(layerstart + wrapper + "." + layerstart + this.ID + layerstyle) : eval(layerstart + this.ID + layerstyle); this.height = height ? height:0; this.width = width ? width:0; this.defaultSrc = defaultSrc ? defaultSrc:null; this.overSrc = overSrc ? overSrc:src; } makeZimage.prototype.setZall = function() { this.DHTML.height = this.height; this.DHTML.width = this.width; this.DHTML.src = src ? src:defaultSrc; } makeZimage.prototype.setZimageSrc = function(over) { this.DHTML.src = over ? overSrc:defaultSrc; } // these minimal functions will return the 'num' from the Zimages array based on the name. function getZimage(ID) { for (m=0;m