Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Chris,</p> <p>I think I cracked it.</p> <p>See <strong><a href="http://jsfiddle.net/SbbTN/1/" rel="nofollow">this demo</a></strong> based on jquery.malsup.com/cycle/pager3.html.</p> <p>This is what I did:</p> <ul> <li>Split the pager ul into two separate uls</li> <li>Modified the pagerAnchorBuilder option in the <code>.cycle()</code> call as below to make only the first link in each ul an active pager.</li> <li>Added some css to give the anchor borders in the two uls different colors (just to indicate the different uls) and to give the active pager links a mouseover effect.</li> </ul> <p>Javascript:</p> <pre><code>$('#slideshow').cycle({ fx: 'turnDown', speed: 'fast', timeout: 0, pager: '#nav', pagerAnchorBuilder: function(idx, slide) { var selector = '#nav li:eq(' + (idx) + ')';//li selector var $li = $(selector).filter(function() { return $(this).index() == 0;//accept only the first li in its ul }); if( $li.length &gt; 0 ) { $li.find('a').addClass('pager'); return selector + ' a';//anchor selector } } }); </code></pre> <p>This may not be exactly what you want but it should give you a way ahead.</p> <h2>EDIT</h2> <p>Starting with your <a href="http://jsfiddle.net/2HFUz/1/" rel="nofollow">fiddle</a>, I ended up with this :</p> <pre><code>$('#home-slider').cycle({ pager: '#home-content', pagerAnchorBuilder: function(idx, slide) { return '#home-content li:eq(' + idx + ') a'; }, updateActivePagerLink: function(containerID, idx, cl) { $lis = $('#home-content li').removeClass(cl).eq(idx).addClass(cl); } }); </code></pre> <p>NOTES :</p> <ul> <li>In the HTML, <code>&lt;div class="home-sub"&gt;</code> wrappers removed - unnecessary.</li> <li>cycle <code>pager</code> option changed from <code>pager: '#home-content ul'</code> to <code>pager: '#home-content'</code></li> <li>cycle <code>updateActivePagerLink</code> option added - to give a custom highlight effect</li> </ul> <p><strong><a href="http://jsfiddle.net/2HFUz/2/" rel="nofollow">DEMO</a></strong></p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload