我在一个页面中使用了相应的菜单和幻灯片。根据菜单,我使用了jquery.easing.1.3.js中的"easeOutBounce“。
现在菜单运行得很好。
但它与Slider冲突。我不需要滑块的这种效果。我不知道如何解决这个问题。
我不需要"easeOutBounce“效果的底部幻灯片的这个网址。
当我从我的代码中删除这一行$.easing.def = "easeOutBounce";时,幻灯片不是问题。但我需要这个效果,以符合菜单。
我的代码是
<script>
$(document).ready(function(){
$.easing.def = "easeOutBounce";
$('li.button a').click(function(e){
var dropDown = $(this).parent().next();
$('li.dropdown').not(dropDown).slideUp('slow');
dropDown.slideToggle('slow');
e.preventDefault();
})
});
</script>
<script>
$(function(){
$('#slides_two').slides({
generateNextPrev: true,
pagination: false,
preload: true,
preloadImage: 'images/loading.gif',
generatePagination: false,
play: 10000,
slideSpeed: 3000,
effect: 'slide',
pause: 4000,
hoverPause: true
});
});
</script>发布于 2012-09-22 14:44:53
您可以对滑块使用slideEasing选项。以下是使用此选项时代码的显示方式:
<script type="text/javascript">
$(document).ready(function(){
$.easing.def = "easeOutBounce";
$('li.button a').click(function(e){
var dropDown = $(this).parent().next();
$('li.dropdown').not(dropDown).slideUp('slow');
dropDown.slideToggle('slow');
e.preventDefault();
})
});
</script>
<script type="text/javascript">
$(function(){
$('#slides_two').slides({
generateNextPrev: true,
pagination: false,
preload: true,
preloadImage: 'images/loading.gif',
generatePagination: false,
play: 10000,
slideSpeed: 3000,
effect: 'slide',
pause: 4000,
hoverPause: true,
slideEasing: "jswing"
});
});
</script>轻松类型你可以看到here。
https://stackoverflow.com/questions/12541057
复制相似问题