The slider code

You need to provide more information about what you’re trying to do, and what you mean by “the code”.

You might want to start by reading this post…

Then updating your post to provide the missing information, and to explain more about what you’re trying to achieve with your project,

Pete.