Return to Snippet

Revision: 52024
at October 11, 2011 07:48 by grgcnnr


Initial Code
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");

Initial URL


Initial Description


Initial Title
jquery cycle auto resize

Initial Tags
resize, drupal

Initial Language
jQuery