Bon... pour l'instant je suis arrivé à ça :
CODE :
window.addEvent('domready',function() {
var items=$$('.item');
var fx=new Fx.Elements(items,{wait:true,duration:500});
items.each(function(_item,i) {
_item.addEvent('click',function(e) {
var obj={}; obj[i]={'height':[_item.setStyle('height', 'auto')]};
items.each(function(other,j) {
if(other!=_item) {
var w=other.getStyle('height').toInt();
if(w!=36)obj[j]={'height':[w,36]};
}
});
fx.start(obj);
});
});
items.addEvent('mouseleave',function(e) {
var obj={};
items.each(function(other,j) {
obj[j]={'height':[other.setStyle('height',36)]};
});
fx.start(obj);
});
});
Alors là effectivement, ça s'agrandit correctement en automatique, mais je perds l'effet d'affichage en slide et là... je vois pas. Si quelqu'un a une idée je l'en remercie!