PDA

View Full Version : Featured Content Glider Script



Missjennifer420
09-08-2009, 07:40 PM
1) Script Title: Featured Content Glider

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex17/featuredcontentglider.htm

3) I can't seem to get it to work ... when the next button is clicked it doesn't go to the next image/slide.

My code is as follows:



<script type="text/javascript">

featuredcontentglider.init({
gliderid: "glidercontent",
contentclass: "glidecontent",
togglerid: "togglebox",
remotecontent: "",
selected: 1,
persiststate: true,
speed: 300,
direction: "leftright",
autorotate: true,
autorotateconfig: [10000, 1] //if auto rotate enabled, set [milliseconds_btw_rotations, cycles_before_stopping]
})


</script>

<div id="glidercontent" class="glidecontentwrapper">
<div id="togglebox" class="glidecontenttoggler">


<a href="#" class="prev"></a>

<a href="#" class="next"></a>

</div>

<?php
$glidecat = get_option('fress_gldcat');
$glidecount = get_option('fress_gldct');
$my_query = new WP_Query('category_name= '. $glidecat .'&showposts= '. $glidecount . '');
while ($my_query->have_posts()) : $my_query->the_post();$do_not_duplicate = $post->ID;
?>

<div class="glidecontent">

<div class="glidemeta">
<h2><a href="<?php the_permalink() ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></h2>
<?php the_content_rss('', TRUE, '', 40); ?>
</div>



<?php $feature = get_post_meta($post->ID,'feature', true); ?>
<a href="<?php the_permalink() ?>" title="<?php the_title(); ?>" > <img src="<?php echo ($feature); ?>" width="680" height="220" alt="<?php the_title(); ?>"/> </a>



</div>
<?php endwhile; ?>



</div>


<div class="clear"></div>


Thank you so much for any help ...

Jennifer

ddadmin
09-09-2009, 07:07 AM
It's hard to tell just based on the code you posted above, since much of it is actually dynamically generated. Do you have a URL to the actual problem page we can look at?