This following code runs perfectly for the slider to move from one image to next.
<script type="text/javascript">
$('#slider').cycle({
fx: 'shuffle',
speed: 'fast',
timeout: 3000,
next: '#next',
prev: '#prev'
});
$('#pause').click(function() {
$('#slider').cycle('pause');
});
</script>
HTML:
<div id="wrapper">
<div id="container">
<div class="controller" id="prev"></div>
<div class="controller" id="pause"></div>
<div id="slider">
<img src="~/XImages/18wheeler.jpg" width="660" height="420" alt="Flight 1">
<img src="~/XImages/2.jpg" width="660" height="420" alt="Flight 1">
<img src="~/XImages/3.jpg" width="660" height="420" alt="Flight 1">
<div class="controller" id="next"></div>
</div>
</div>
I somehow can't pause the slider. Code isn't throwing any error in the browser. Can someone please guide.
Thanks