I've got a nivo-slider on my site, but there aren't any effects except slidesUp, even though I have set the default installation.
<div class="slider-wrapper theme-default">
<div class="ribbon"></div>
<div id="slider" class="nivoSlider">
<img src="/upload/banners/image1.png" border="0" alt=""/>
<img src="/upload/banners/image2.png" border="0" alt=""/>
<img src="/upload/banners/image3.png" border="0" alt=""/>
</div>
</div>
<script type="text/javascript">
$(window).load(function() {
$('#slider').nivoSlider();
});
</script>
and in header:
<script type="text/javascript" src="/scripts/jquery.js"></script>
<script type="text/javascript" src="/scripts/jquery.nivo.slider.pack.js"></script>
<link rel="stylesheet" type="text/css" href="/css/nivo-slider.css"/>
What should I do to make it works properly?
zeusakm. Check your code and look for this:
<script type="text/javascript">
$(window).load(function() {
$('#slider').nivoSlider();
});
</script>
You have to call the 'effect' option and then you can set it. How?:
<script type="text/javascript">
$(window).load(function() {
$('#slider').nivoSlider({
effect:'random'
});
});
</script>
The effect parameter can be any of the following:
Complete reference: http://nivo.dev7studios.com/#usage
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With