Posted By

Jamie on 10/20/10


Tagged

jquery vertical


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

Tyster


Automatically Append Vertical Nav to SlideDeck Spines


 / Published in: jQuery
 

  1. <script type="text/javascript">
  2. $('.skin-slidedeck .slidedeck').slidedeck().loaded(function(){
  3. $('.skin-slidedeck .slidedeck dd:has(".slidesVertical")').each(function(i){
  4. if( $(this).find('.slidesVertical li').length > 1 ){
  5. var index = $('.skin-slidedeck .slidedeck dd').index( $(this) ) + 1;
  6. $('.skin-slidedeck dl.slidedeck .slide_'+ index +' .verticalSlideNav').appendTo('.skin-slidedeck dl.slidedeck .spine_'+ index +'');
  7. }
  8. });
  9. }).vertical();
  10. </script>

Report this snippet  

You need to login to post a comment.