0
簡單的fancybox實現:的fancybox錯誤使用jQuery
<!-- Add fancyBox -->
<link rel="stylesheet" href="<?php echo $path ?>/scripts/fancybox/source/jquery.fancybox.css?v=2.0.6" type="text/css" media="screen" />
<script type="text/javascript" src="<?php echo $path ?>/scripts/fancybox/source/jquery.fancybox.pack.js?v=2.0.6"></script>
<script type="text/javascript">
$(document).ready(function() {
$(".bte-banner").fancybox({
maxWidth : 400,
maxHeight : 500,
fitToView : false,
width : 400,
height : 500,
autoSize : false,
closeClick : false,
openEffect : 'fade',
closeEffect : 'fade',
type : 'iframe'
});
});
</script>
...
<a class="bte-banner" href="pages/products/"><img src="images/banners/imagename.png"></a>
我不斷收到此錯誤: 遺漏的類型錯誤:無法讀取的不確定
財產 '默認視圖'任何人遇到這個或類似的東西?