* NO MORE OFFERS PLEASE *

Hi,

I am using a jquery gallery (jcycle). I want to ajaxify it so that if there are more than three images, it won't load them until it needs them (e.g. when the user presses next). I also want to remove the controls of the gallery when there is only one image (class "ctl").

I believe this is quite easy with views, but I don't have a clue.

If this is of interest, I will supply the web address with the current gallery for you to see working.

Thanks,
Paul.
---

My templates:

views-view--Gallery--block-1.tpl.php:

<?php if ($rows!='') { ?>
<div class="p220 pho">
  <div class="ctl">
    <ul>
      <li class="bck"><a id="sml-prev" href="#"></a></li>
      <li class="fwd"><a id="sml-next" href="#"></a></li>
    </ul>
  </div>
  <div id="sml-gal" class="in">
    <?php print $rows; ?>
  </div>
</div>
<?php }?>

views-view-fields--Gallery.tpl.php:

<?php print $fields['field_image_gallery_fid']->content;?>