Not strictly a CMSB question, but thought I’d ask anyway.
I’ve got an image gallery that uses Dynamic Drive’s Image Thumbnail Viewer II.
To limit the number of thumbnail images that can be displayed in the table on the left side of the page before a new row is started, I’m using:
<?php $maxCols=5; if (@++$count % $maxCols == 0): ?>
</tr>
<tr>
<?php endif; ?>
Whenever a thumbnail is moused over, a large version of that image is displayed in the center of the page.
What my client would like to do is, after 5 rows ( or n rows) have been filled with thumbnails, the next thumbnails should start to populate another table to the right of the larger image.
Since scrolling to see the large image while mousing over a thumbnail is extremely awkward, this approach should allow approximately 40 thumbnails and the large image to always appear centered in the browser window.
I tried playing around with $count but got nowhere.
Any suggestions?
Thanks,
Jerry Kornbluth
The first CMS Builder reference book is now available on-line!
Take advantage of a free 3 month trial subscription, only for CMSB users, at: http://www.thecmsbcookbook.com/trial.php