Reputation: 2112
I'm using SlidesJS and it works great, expect one thing - I cannot specify what number of slides to display at a time. Default is 1, so only 1 slide can be displayed.
Is it possible with this script to specify number of slides (for example I want to display 3 slides in the same time)?
Upvotes: 0
Views: 1423
Reputation: 11787
From the demo code on the page, it looks like it is sliding the <div>
's instead of the <img>
's, which is good. If that is so, you should be able to do something like this:
<div id="slides">
<div class="slides_container">
<div>
<img src="http://placehold.it/190x270">
<img src="http://placehold.it/190x270">
<img src="http://placehold.it/190x270">
</div>
<div>
<img src="http://placehold.it/190x270">
<img src="http://placehold.it/190x270">
<img src="http://placehold.it/190x270">
</div>
</div>
</div>
And if the images don't want to display:inline
nicely, you can always float them:
#slides img{
float:left;
}
Upvotes: 1