views:

37

answers:

1

Can anyone tell me how do this? They are already integers, so I'm not sure what to try...

var lrgSlideShow = {
    activeClass: 'active',
    wrapperClass: 'slideshow-widget-large',
    pauseLength: 2000,
    fadeLength: 1000
}

setInterval(changeImg,lrgSlideShow.pauseLength+lrgSlideShow.fadeLength);
A: 

The interval calc (lrgSlideShow.pauseLength+lrgSlideShow.fadeLength) is correct. Maybe changeImg is not invoking as expected?

Another thought: Do the var declaration and the setInterval invocation share the same functional scope? If not then setInterval may be unable to find lrgSlideShow or finding the wrong one

plodder