/ Published in: jQuery

Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
drupal_add_js(" jQuery(document).ready(function(){ jQuery('#featured').cycle({ speed: 600, prev: '#prev', next: '#next', fx: 'scrollHorz', before: onAfter }); }); function onAfter(curr, next, opts, fwd) { var ht = jQuery(this).height(); //console.log(ht); //set the container's height to that of the current slide jQuery(this).parent().animate({height: ht}); } ", "inline");
Comments
