Nivo Slider does not upload the images

0

Why does not my page load the images?

I'm doing a slider with plugin Nivo Slider , and suddenly I set an error in my code javascript , and modify it in several ways, but I still have the same error, He tells me that it is not a function, and then I do not fully understand what that means, then I put a imagen with the error he sends me:

    
asked by Macx 30.07.2018 в 18:56
source

1 answer

2

You must include apart from the librería nivoSlider the jQuery , something like this, the problem you have is because you are not referencing either the librería or you need the jQuery .

<!DOCTYPE html>
<html>
    <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery-nivoslider/3.2/jquery.nivo.slider.js"></script>
    <script type="text/javascript">
        $(window).on('load', function(){
            $('#slider').nivoSlider();
        });
    </script>
<body >
     <div id="slider">
    </div>
</body>
</html>
    
answered by 30.07.2018 / 19:22
source