What syntax do I use to pass the div_name argument value to the rotate function in the setInterval function? I can’t seem to get it to work.
function theRotator(div_name) {
//Set the opacity of all images to 0
$('div.'+div_name+' ul li').css({opacity: 0.0});
//Get the first image and display it (gets set to full opacity)
$('div.'+div_name+' ul li:first').css({opacity: 1.0});
//Call the rotator function to run the slideshow, 6000 = change to next image after 6 seconds
setInterval('rotate('+div_name+')',6000);
}
Thanks