How to install jQuery plugin?

GarrettSadFace picture GarrettSadFace · Apr 20, 2014 · Viewed 32k times · Source

I've been trying to install the NiceScroll plugin, which makes the scrolling much smoother. The website is http://areaaperta.com/nicescroll/index.html and I can't seem to figure out how to install it. I really don't understand the instructions. It isn't working, and I have no idea what I'm doing as I don't understand jQuery. Here's my code:

<script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.1/jquery.min.js"></script>
<script src="C:\Users\haines\Desktop\Music\resource\jquery.nicescroll.js"></script>
<script src="C:\Users\haines\Desktop\Music\resource\jquery.nicescroll.min.js"></script>

<script>
var seq = 0;
$(document).ready(

function() { 

$("html").niceScroll();

}

);
</script>

It's in the header, by the way.

Answer

Bary12 picture Bary12 · Apr 20, 2014

you need to add the http:// protocol.

<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.1/jquery.min.js"></script>