/* Populate images list */
$$('div.varimages').each(function(el,i){
- rimgs[el.id] = i;
- vimgs[i] = [el.id, el.title, []];
+ var rel=el.get('id');
+ rimgs[rel] = i;
+ vimgs[i] = [rel, el.title, []];
el.getElements('a').each(function(ael,j){
dim = /(\d+)[^\d](\d+)/.exec(ael.text);
w = dim[1];
$$('a.showStart').each(function(el){
el.addEvent('click',
- show.start.bind(show,[rimgs[el.get('id')],1]));
+ show.start.bind(show,[rimgs[el.get('rel')],1]));
});
$$('a.showImage').each(function(el){
el.addEvent('click',
- show.start.bind(show,[rimgs[el.get('id')],0]));
+ show.start.bind(show,[rimgs[el.get('rel')],0]));
});
/* Determine if we need to go directly into show mode */
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({
end_table,"\n",
center(table({-class=>'picframe'},
Tr(td(img({-src=>$imgsrc,
+ -class=>'standalone',
-alt=>$title}))))),"\n",
end_html,"\n";
close($F);
h1($title),"\n",
table({-class=>'ipage'},
Tr(td(img({-src=>$imgsrc,
+ -class=>'thumbnail',
-alt=>$title})),
td($self->infotable))),
a({-href=>'../index.html',-class=>'conceal'},
my $slideref = sprintf(".html/%s-slide.html",$first);
print $IND h2("Images ",
- a({-href=>$slideref,-class=>'showStart',-id=>$first},
+ a({-href=>$slideref,-class=>'showStart',-rel=>'i'.$first},
'> slideshow')),"\n";
}
print $IND a({-name=>$name}),"\n",
start_table({-class=>'slide'}),start_Tr,start_td,"\n",
- div({-class=>'slidetitle',-id=>$name},
+ div({-class=>'slidetitle'},
"\n ",a({-href=>".html/$name-info.html",
-title=>'Image Info: '.$name,
-class=>'infoBox'},
$title),"\n"),"\n",
- div({-class=>'slideimage',-id=>$name},
+ div({-class=>'slideimage'},
"\n ",a({-href=>".html/$name-static.html",
-title=>$title,
-class=>'showImage',
- -id=>$name},
- img({-src=>$thumb,-alt=>$title})),"\n"),"\n",
- start_div({-class=>'varimages',-id=>$name,-title=>$title}),"\n";
+ -rel=>'i'.$name},
+ img({-src=>$thumb,
+ -class=>'thumbnail',
+ -alt=>$title})),"\n"),"\n",
+ start_div({-class=>'varimages',-id=>'i'.$name,-title=>$title}),"\n";
foreach my $sz(@sizes) {
my $src=$self->{$sz}->{'url'};
my $w=$self->{$sz}->{'dim'}->[0];