fancybox スクリプトを使用して HTML ブロックを呼び出しましたが、リンクが 1 つの HTML ブロックのみを指している場合に、ナビゲーション ボタンのあるギャラリーが表示されません。次へボタンをクリックすると、同じ内容が表示されます。
<a class="measurement" href="<?php echo $this->getUrl('measurement') ?>" rel="iframeLink"><img src="<?php echo $this->getSkinUrl('images/sizeguide.gif')?>" />
私が使用しているコード:
<script type='text/javascript' src='<?php echo $this->getJsUrl('lightboxes/fancybox/jquery.easing-1.3.pack.js'); ?>'></script>
<script type='text/javascript' src='<?php echo $this->getJsUrl('lightboxes/fancybox/jquery.fancybox-1.3.4.pack.js'); ?>'></script>
<link rel='stylesheet' type='text/css' href='<?php echo $this->getJsUrl('lightboxes/fancybox/jquery.fancybox-1.3.4.css'); ?>' media='screen'/>
<script type="text/javascript">
jQuery(document).ready(function(){
jQuery("a[rel=iframeLink]").fancybox({
'type' : 'iframe',
'width' : 600,
'height' : 500,
'scrolling' : 'no'
});
});
</script>