@Elena
Можно сделать на любой галерее, или вообще без галереи. Там используется небольшой скрипт для mootools.
Примерно такой:
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/mootools/1.2.3/mootools-yui-compressed.js"></script>
<script type="text/javascript">
window.addEvent('domready', function() {
$$('.boxcontent img').each(function(item) {
item.initWidth = parseInt(item.get('width'));
item.initHeight = parseInt(item.get('height'));
item.set('morph', {duration: 100});
var widthEnlarge = 10;
var heightEnlarge = 10;
var leftOffset = -parseInt(widthEnlarge / 2);
var topOffset = -parseInt(heightEnlarge / 2);
item.addEvent('mouseenter', function() {
this.morph({
width: [this.initWidth, this.initWidth + widthEnlarge],
height:[this.initHeight, this.initHeight + heightEnlarge],
top: topOffset,
left: leftOffset,
marginBottom: -heightEnlarge,
marginRight: -widthEnlarge
});
}).addEvent('mouseleave', function() {
item = this;
(function(){item.morph({
width: [item.initWidth + widthEnlarge, item.initWidth],
height: [item.initHeight + heightEnlarge, item.initHeight],
top: 0,
left: 0,
marginBottom: 0,
marginRight:0
});}).delay(100);
})
});
});
</script>
Достаточно вставить его, например, в шаблон страницы, в head. (А можно даже и отдельный шаблон не создавать: всего лишь добавить к имеющимся скриптам или прописать одну лишнюю строчку в коде сниппета галлереи, рядом с regClientStartupScript)
Если Mootools на сайте не нужен, можно переписать его для jQuery:
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
<script type="text/javascript">
jQuery(function($) {
$('.boxcontent img').each(function() {
this.initWidth = this.width;
this.initHeight = this.height;
var widthEnlarge = 10;
var heightEnlarge = 10;
var leftOffset = -parseInt(widthEnlarge / 2);
var topOffset = -parseInt(heightEnlarge / 2);
$(this).hover(function() {
$(this).animate({
width: this.initWidth + widthEnlarge,
height: this.initHeight + heightEnlarge,
top: topOffset,
left: leftOffset,
marginBottom: -heightEnlarge,
marginRight: -widthEnlarge
},100);
},function() {
$(this).animate({
width: this.initWidth,
height: this.initHeight,
top: 0,
left: 0,
marginBottom: 0,
marginRight:0
},100);
})
});
});
</script>
и не забыть relative для картинки:
<style type="text/css">.boxcontent img {position:relative;}</style>
Это для Easy2, она у меня под рукой. А в Maxigallery думаю достаточно будет поменять везде ’.boxcontent img’ на ’.thumbs li img’