Index: js/ddblock.js =================================================================== --- js/ddblock.js (revision 2794) +++ js/ddblock.js (working copy) @@ -131,6 +131,7 @@ // if not processed if (!$('#ddblock-' + block + '.ddblock-processed', context).size()) { + // set transition option options.fx = ddblockSettings.fx; @@ -169,8 +170,9 @@ if (pagerEvent == 'mouseover' || pagerEvent == 'click') { options.fastOnEvent = true; options.pauseOnPagerHover = true; + } - + //set expression for selecting slides (if something other than all children is required) options.slideExpr = contentContainer; @@ -199,7 +201,7 @@ // merge custom2 with options object jQuery.extend(true, options, custom2); } - + var block_selector = '#ddblock-' + block ; // simple block if (ddblockSettings.setDimensions == 'none') { if ((ddblockSettings.height > 0) && (ddblockSettings.width > 0 )) { @@ -260,11 +262,27 @@ }; //Use the parent of the slides as the parent container so the children function can be used for the second pager + var $container = $('#ddblock-' + block + ' ' + contentContainer).parent() .cycle(options) .css('visibility', 'visible') .addClass('ddblock-processed'); + block_selector = '#ddblock-' + block + ' .ddblock-processed' ; + } + jQuery(block_selector + ' #pause2', context).click(function () { + $(block_selector, context ).cycle('pause'); + $(block_selector + ' #pause2', context).hide(); + $(block_selector+ ' #resume2', context).show(); + return false; + + }); + jQuery(block_selector + ' #resume2', context).click(function () { + $(block_selector ).cycle('resume',1); + $(block_selector + ' #resume2').hide(); + $(block_selector + ' #pause2').show(); + return false; + }); } i++; }