Making It Happen: Coda-Slider
Hi All,
I knew it, you were wondering what jQuery tool we used across our site and how we customized it, right? Well, here’s one small way in how we added a bit to the core code.
While reading along in some of the forums (located here: http://www.ndoherty.com/blog/2007/10/29/coda-slider-11/), I noticed some are wanting an “auto-slide” feature for this thing (great job by the way Niall Doherty).
Here’s how you do it:
Modify the js code included in the page's header into this:
[sourcecode language='js']
jQuery(window).bind("load", function() {
jQuery("div#slider1").codaSlider()
// jQuery("div#slider2").codaSlider()
// etc, etc. Beware of cross-linking difficulties if using multiple sliders on one page.
//call every __ seconds
var autoSlide = setInterval(function()
{
$("#left-link").click();
}, 10000);
});
[/sourcecode]
And change line 63 (i believe, or corresponding line of code) of coda.slider.1.1.1.js:
[sourcecode language='js']
jQuery(this).before(”