$(document).ready(function() { $('#slider').nivoSlider({effect: 'random', pauseTime:5000,directionNav:false}); });