Report abuse
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
var photoFade = $('photodiv');
var currentImage = $('currentimage');
$$('a.thumblink').addEvent('click', function(e){
e.preventDefault();
var thumbUri = "php/phpThumb/phpThumb.php?h=465&q=90&src=" + this.get('href');
photoFade.set('tween', {
transition: 'sine:in:out',
onComplete: function(){
new Asset.image(thumbUri, {
onload: function(){
currentImage.set('src', thumbUri);
photoFade.fade('in');
}
});
}
}).fade('out');
});
|