:!: :!:
T'assures, c'est tout bon. Tu peux te dire que tu as passé une journée à aider quelqu'un qui te revaudra çà pendant un bon bout de temps. Ca fonctionne comme sur des roulettes. Grand merci.
Je mets le code pour tout le monde, on sait jamais.
/* Portfolio Scripts Grafikart, www.grafikart.fr */ $(document).ready(function(){ var portfolioCourant = null; $(".work").click(function(){ portfolio.show($(this)); return false; }); }); var portfolio = { courant : null, clicked : null, show : function(clicked){ portfolio.clicked = clicked; if(this.courant!=null && this.courant.text() == clicked.next(".detail").text()){ this.courant.slideUp(500,function(){ portfolio.courant.remove(); portfolio.courant=null; }); return false; } if(this.courant!=null){ this.courant.slideUp(500,function(){ portfolio.courant.remove(); portfolio.courant=null; portfolio.show(portfolio.clicked); return false; }); return false; } clicked.nextAll(".Space:first").append('<div class="detail">'+clicked.next(".detail").html()+'</div>'); var clone = clicked.nextAll(".Space:first").find(".detail"); this.courant=clone; clone.css({ visibility: "visible", height: "auto", }) .hide().slideDown(500,function(){ scrollTo(clone); }); //réinitialise le slimbox après l'ajout de code html via le code ci-dessus pour que le nouveau code soit pris en compte $("a[rel^='lightbox']").slimbox({/* Put custom options here */}, null, function(el) { return (this == el) || ((this.rel.length > 8) && (this.rel == el.rel));}); }, hide : function(clicked){ portfolio.courant.slideUp(500,function(){ portfolio.courant.remove(); portfolio.courant=null; scrollTo($(".work:first")); }); }};
J'ai beaucoup appris grâce à toi.