]> www.average.org Git - mkgallery.git/blobdiff - include/show.js
make html xhtml 1.0 compliant
[mkgallery.git] / include / show.js
index f7f555ec02fcc94673fcb681957bbc1f55117c6f..5016928d2c1cef6718a1298260954e8616a3e461 100644 (file)
@@ -72,12 +72,11 @@ var Show = new Class({
 
                this.updatecoords();
                this.prevdisplay = new Element('img').
+                       set('class', 'mainformat').
                        setProperty('alt', 'Current Image').
                        setStyle('opacity', 0).
                        injectInside(this.container.container);
-               this.ondisplay = new Element('img').
-                       setProperty('alt', 'Current Image').
-                       setStyle('opacity', 0).
+               this.ondisplay = this.prevdisplay.clone().
                        injectInside(this.container.container);
                this.loadingdiv = new Element('div').
                addClass('loading').setStyles({