I have a full screen slideshow. The photos are located in divs with a class called slide. The first image needs to have an extra class. How should I accomplish that. I am used to use Coldfusion. There the declaration would look like this:
Presumably you’ll have some kind of while() loop to retrieve each image?
$first = true;
while ($grySlideshow->fetch()) {
if ($first) {
// do something on the first one
$first = false;
}
else {
// do something on the others
}
}