• Resolved eibbtoddb

    (@eibbtoddb)


    I have a jquery slider as built-in part of the theme I am using (Rusty Metal Plate of Azure). The slider has left and right arrows which work perfectly. I would like to add an automatic timer to the slider so that it slides or activates every xx number of seconds. I’m guessing this can be accomplished with a couple lines of code, but I’m still a beginner. Can anyone help? I’ve included the slider code below:

    <script type="text/javascript">
    var $jx = jQuery.noConflict();
    $jx(function() {
     $jx(".mygallery").jCarouselLite({
     btnNext: ".nextb",
            btnPrev: ".prevb",
    		visible: 1,
    		easing: "easeout",
    	    speed: 500
        });
    
    });
    </script>
    
    <div id="slidearea">
    
    <div id="gallerycover">
    <div class="mygallery">
    
    	<ul>
    			<?php
    			$ax_featured_category = get_option('ax_featured_category');
    			$ax_featured_number = get_option('ax_featured_number');
    			$my_query = new WP_Query('category_name='.$ax_featured_category.'&showposts='.$ax_featured_number.'');
    
    			while ($my_query->have_posts()) : $my_query->the_post();$do_not_duplicate = $post->ID;
    			?>
     <li>
    <div class="mytext">
    
    <?php $values = get_post_custom_values("feature_image");
    	echo get_thumbpic('feature_image_value','350','200','slidim',90);
    	?>
    <?php the_excerpt(); ?> 
    
    </div>
     </li>
    			<?php endwhile; ?>
         </ul>
    
        <div class="clear"></div>  
    
    </div>
    
    </div>
    
       <a href="#" class="prevb"></a>
       <a href="#" class="nextb"></a>  
    
    </div>
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to activate my jQuery slider automatically?’ is closed to new replies.