like this?
<div class="responsive-picture sponsorImage core">
<div class="rotatingContent">
<?php
while(!$SponsorsCore->atEnd()) {
?>
<?php if ("".($SponsorsCore->getColumnVal("SponsorsPlus")) ."" != "1") { ?>
<span class="glyph plus"><i class="coffeecup-icons-plus2"></i></span>
<?php } ?>
<?php
if(TRUE){ // Begin Cached Resized Image: ImageCacheInstance_1509263731297
ob_start();
?>
<img alt="<?php echo($SponsorsCore->getColumnVal("SponsorName")); ?>" src="images/<?php if ("".($SponsorsCore->getColumnVal("SponsorLogo")) ."" != "noimage") { ?>sponsors/<?php echo($SponsorsCore->getColumnVal("SponsorLogo")); ?><?php } else { ?>cms_icons/no-image.jpg<?php } ?>" width="200" height="75">
<?php
echo(getCachedResizedImageHTML(ob_get_clean(), "../../images/image_cache", "fit", "#FFFFFF", true));
} // End Cached Resized Image: ImageCacheInstance_1509263731297
?>
<?php
$SponsorsCore->moveNext();
}
$SponsorsCore->moveFirst(); //return RS to first record
?>
</div>
</div>
and the updated js from this
$(function(){
if ($(".core img").length <= 1) return;
$('.core img:gt(0)').hide();
setInterval(function() {hideNext("core")}, 2000);
});
to this
$(function(){
if ($(".core .rotatingContent").length <= 1) return;
$('.core .rotatingContent:gt(0)').hide();
setInterval(function() {hideNext("core")}, 2000);
});
?
Cheers
Jamie