views:

52

answers:

1

Hi All,

I am using jquery cycle to show images as slides. How to scroll two images at a time without using any button.

Code:

  jQuery(document).ready(function($) {            
        $('#album').cycle({
            fx: 'scrollHorz',               
            speed: 1000,
            timeout: 0, continuous: true,
            pause: 0, sync: 1
        });
    });

Geetha.

+1  A: 

not quite sure if I understood you correct, but maybe you mean something like this:

HTML:

<div id="album1" class="cycle">
    <img src="1.png" alt="" />
    <img src="2.png" alt="" />
    ...
</div>
<div id="album2" class="cycle">
    <img src="3.png" alt="" />
    <img src="4.png" alt="" />
    ...
</div>

jQuery:

jQuery(document).ready(function($) {            
    $('.cycle').cycle({
        fx: 'scrollHorz',               
        speed: 1000,
        timeout: 0, 
        continuous: true,
        pause: 0, 
        sync: 1
    });
});

?

harpax
Thank You for your response
Geetha