Ребята подскажите пожалуйста что в этом коде (код для раздвижного меню) отвечает за дёргание
Переношу свой сайт на дле - вот сейчас шаблоном занимаюсь - но на DLE все элементы работающие на js стали не плавно работать а дёргаться
Сам код:
Code
$(document).ready(function(){
/* This code is executed after the DOM has been completely loaded */
/* Changing thedefault easing effect - will affect the slideUp/slideDown methods: */
$.easing.def = "easeOutBounce";
/* Binding a click event handler to the links: */
$('li.button a').click(function(e){
/* Finding the drop down list that corresponds to the current section: */
var dropDown = $(this).parent().next();
/* Closing all other drop down sections, except the current one */
$('.dropdown').not(dropDown).slideUp('slow');
dropDown.stop(false,true).slideToggle('slow');
/* Preventing the default event (which would be to navigate the browser to the link's address) */
e.preventDefault();
})
});
Добавлено (06.11.2011, 14:52)
---------------------------------------------
Всё - методом тыка нашёл - если кому интересно то вот этот отрезок дёргал мне весь сайт
Code
$.easing.def = "easeOutBounce";