我尝试使用jqzoom javascript,但不起作用。在firebug中出现此错误TypeError:$(...)。jqzoom不是函数。我下载并加载了javascripts。代码是:
<script src="{base_url()}assets/js/jquery-1.9.0.min.js" type="text/javascript"></script>
<script src="{base_url()}assets/js/jquery.jqzoom-core.js" type="text/javascript"></script>
<link rel="stylesheet" type="text/css" href="{base_url()}assets/css/jquery.jqzoom.css" >
<script>
$(document).ready(function(){
$('.xxx').jqzoom();
});
</script>
{foreach $items as $item}
<div class="item_details">
<a class="xxx" href="{base_url()}assets/image/{$item->code}/{$item->name}"><img id="img_details" src="{base_url()}assets/image/{$item->code}/{$item->name}"></a>
</div>
{/foreach}
答案 0 :(得分:2)
download and load
<script src=".../jquery-1.6.js"></script>
答案 1 :(得分:0)
使用zoom()
代替jqzoom()