Solve this

<?php if( osc_images_enabled_at_items() ) { ?> <?php if( osc_count_item_resources() > 0 ) { ?> <div id="slider"> <?php for ( $i = 0; osc_has_item_resources() ; $i++ ) { ?> <img class="active" src="<?php echo osc_resource_url(); ?>" alt="" title=""/> </div>
Can someone put me in the right direction to do this.

I want a [i]for[/i] loop to enable me add class to the first image of a slider and here's my code

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.