I have not tried this one yet, but the Slick Carousel is worth looking into.
I was not able to find a content slider simple enough and stable enough for my needs, so I wrote my own. Take a look at the source code; everything is there.
This is a headerand some paragraph text. |
||
I would like to be able to merge this with the automatically (timed) slider at some point.
Create a structure on your webpage that will hold the navigation buttons, the images, and the indicator buttons. I use a table, but you can lay it out using CSS instead.
<table> <tr> <td><button class="PxSliderPrev"></button></td> <td><div class="PxSliderWrapper"> <div class="PxSliderContent"><img src="image1.jpg"></div> <div class="PxSliderContent"><img src="image2.jpg"></div> <div class="PxSliderContent"><img src="image3.jpg"></div> <div class="PxSliderContent"><img src="image4.jpg"></div> </div> </td> <td><button class="PxSliderNext"></button></td> </tr> <tr> <td colspan="3" class="PxSliderIndicators"></td> </tr> </table>
Note: I simplified the above table so that you can see the critical elements that make it work. In practice, you would very likely want to add some additional classes or style tags to format the table nicely.
Make sure that the four classes are defined somewhere on your page:
Link this external CSS file. Example:
<link href="css/PxContentSlider.css" type="text/css" rel="stylesheet">
Link this external Javascript file. Example:
<script type="text/javascript" src="PxContentSlider.js"></script>
Add jQuery to your page.
Optional: Customize the graphics, layout, and color.
To download a complete working example that is stripped down to the essentials, click here.