set('class', 'mainformat').
setProperty('alt', 'Current Image').
setStyle('opacity', 0).
- injectInside(this.container.container);
+ injectInside(this.container.domelement());
this.ondisplay = this.prevdisplay.clone().
- injectInside(this.container.container);
+ injectInside(this.container.domelement());
this.loadingdiv = new Element('div').
addClass('loading').setStyles({
position: 'absolute',
display: 'none',
width: this.coords.width,
height: this.coords.height,
- }).injectInside(this.container.container);
+ }).injectInside(this.container.domelement());
window.addEvent('resize', this.resizer.bind(this))
},
});
this.prevdisplay.dispose();
this.prevdisplay = this.ondisplay.clone().
- setStyle('zIndex', 2).injectInside(this.container.container);
+ setStyle('zIndex', 2).injectInside(this.container.domelement());
newimg.replaces(this.ondisplay);
this.ondisplay = newimg;
this.effect();
}
document.body.setStyles(this.bodystyles);
this.container.setStyle('display', 'none');
- }
+ },
+
+ domelement: function(){
+ return this.container;
+ },
})
showWindow.implement(new Options);