Hi,
I updated a site that was successfully running the following code on the old home page:
- jQuery(document).ready(function($){
- $('#homebox').cycle({
- fx: 'fade',
- speed: 'fast',
- timeout: 0, //setting to 0 stops the auto advance
- pager: '#menu-top-nav',
- pagerEvent: 'mouseover',
- pagerAnchorBuilder: function(idx, slide) {
- return '#menu-top-nav li:eq('+idx+') a';
- }
- });
- $('#menu-top-nav li a').click(function(){
- href = $(this).attr('href');
- window.location = href;
- });
- });
I copied the entire page to a new template, then updated the div id in the above script to match the new page. All images are loading properly (I can see them in the source), but only the first two slides are cycling properly. There are a total of 6 slides that properly generate into `<div><img>` format.
What baffles me is that if I set the timeout function to 4000 all the slides cycle thru as expected, but the mouseover function still only works on the first two. I changed mouseover to hover with no luck.
I made no changes to jquery or the cycle files, both are properly included in the head of the new home page.
What am I doing wrong?
Thanks for your help.