tempuser Posted July 25, 2013 Share Posted July 25, 2013 Bonjour, savez-vous Comment supprimer ou modifier (la vitesse de) l'effet jquerry du bouton "en savoir plus" ? j'ai cherché mais n'est pas trouvé. Merci, Cordialement Link to comment Share on other sites More sharing options...
Profette Posted July 25, 2013 Share Posted July 25, 2013 (edited) Bonjour, Si je ne me trompe pas , et si je me réfère à la démo PS, ça devrait être dans http://www.tonsite.com/js/jquery/jquery.idTabs.modified.js Copier-coller du contenu du fichier : /* idTabs ~ Sean Catchpole - Version 1.0 */ /* Options (in any order): start (number|string) Index number of default tab. ex: idTabs(0) String of id of default tab. ex: idTabs("#tab1") default: class "selected" or index 0 return (boolean) True - Url will change. ex: idTabs(true) False - Url will not change. ex: idTabs(false) default: false click (function) Function will be called when a tab is clicked. ex: idTabs(foo) If the function returns true, idTabs will show/hide content (as usual). If the function returns false, idTabs will not take any action. The function is passed three variables: The id of the element to be shown an array of all id's that can be shown and the element containing the tabs MODIFIED BY PRESTASHOP */ (function($){$.fn.idTabs=function(){var s={"start":null,"return":false,"click":null};for(var i=0;i<arguments.length;++i){var n={},a=arguments[i];switch(typeof a){case"object":$.extend(n,a);break;case"number":case"string":n.start=a;break;case"boolean":n["return"]=a;break;case"function":n.click=a;break;};$.extend(s,n);} var self=this;var list=$("a[href^='#']",this).click(function(){if($("a.selected",self)[0]==this) return s["return"];var id="#"+this.href.split('#')[1];var aList=[];var idList=[];$("a",self).each(function(){if(this.href.match(/#/)){aList[aList.length]=this;idList[idList.length]="#"+this.href.split('#')[1];[spam-filter]);if(s.click&&!s.click(id,idList,self))return s["return"];for(i in aList)$(aList[i]).removeClass("selected");for(i in idList){$(idList[i]).addClass('block_hidden_only_for_screen');} $(this).addClass("selected");$(id).removeClass('block_hidden_only_for_screen');return s["return"];});var test;if(typeof s.start=="number"&&(test=list.filter(":eq("+s.start+")")).length) test.click();else if(typeof s.start=="string"&&(test=list.filter("[href='#"+s.start+"']")).length) test.click();else if((test=list.filter(".selected")).length) test.removeClass("selected").click();else list.filter(":first").click();return this;};$(function(){$(".idTabs").each(function(){$(this).idTabs();});});})(jQuery) J'espère avoir pu t'aider. Edited July 25, 2013 by Profette (see edit history) Link to comment Share on other sites More sharing options...
Szed Posted July 25, 2013 Share Posted July 25, 2013 C'est en fait dans le product.js de ton thème. //catch the click on the "more infos" button at the top of the page $('div#short_description_block p a.button').click(function(){ $('#more_info_tab_more_info').click(); $.scrollTo( '#more_info_tabs', 1200 ); }); @Profette, ce que tu as copié doit s'occuper des effets de la boite à onglet. Link to comment Share on other sites More sharing options...
Profette Posted July 25, 2013 Share Posted July 25, 2013 @Profette, ce que tu as copié doit s'occuper des effets de la boite à onglet. Bon, j'aurai essayé... Merci ! Link to comment Share on other sites More sharing options...
tempuser Posted July 25, 2013 Author Share Posted July 25, 2013 C'est en fait dans le product.js de ton thème. //catch the click on the "more infos" button at the top of the page $('div#short_description_block p a.button').click(function(){ $('#more_info_tab_more_info').click(); $.scrollTo( '#more_info_tabs', 1200 ); }); C'est ça ! merci ! Link to comment Share on other sites More sharing options...
KORG23 Posted April 1, 2014 Share Posted April 1, 2014 (edited) Bonjour, Est-ce que vous savez comment supprimer cet effet ? Et cela sans supprimer la TAB s'il vous plait, merci. PS version : 1.5.6.2 Cordialement Edited April 1, 2014 by KORG23 (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now