在线课堂
通过在线课堂,您可以随时随地,学习最新的PHP开发知识。
通过在线课堂,您可以随时随地,学习最新的PHP开发知识。
Author: 刘老师(Aaron Lau)
如果下不下来,请复制链接到迅雷中下载。
如果使用的是Linux或者Mac机,请用wget命令下载。
jqzoom插件是另一个非常棒的放大镜插件,使用方法也非常简单,只有以下三个步骤
- 引用jquery.min.js
- 引用jquery.jqzoom.js
- 执行jqzoom插件的方法
<div class="clearfix">
<a href="imgProd/triumph_big1.jpg" class="jqzoom" rel='gal1' title="triumph" >
<img src="imgProd/triumph_small1.jpg" title="triumph" style="border: 4px solid #666;">
</a>
</div>
<!-- ref 是钩子,一般用在焦点图切换里 -->
<ul id="thumblist" class="clearfix" >
<li>
<a class="zoomThumbActive" href='javascript:void(0);' rel="{gallery: 'gal1', smallimage: './imgProd/triumph_small1.jpg',largeimage: './imgProd/triumph_big1.jpg'}">
<img src='imgProd/thumbs/triumph_thumb1.jpg'>
</a>
</li>
<li>
<a href='javascript:void(0);' rel="{gallery: 'gal1', smallimage: './imgProd/triumph_small2.jpg',largeimage: './imgProd/triumph_big2.jpg'}">
<img src='imgProd/thumbs/triumph_thumb2.jpg'>
</a>
</li>
<li>
<a href='javascript:void(0);' rel="{gallery: 'gal1', smallimage: './imgProd/triumph_small3.jpg',largeimage: './imgProd/triumph_big3.jpg'}">
<img src='imgProd/thumbs/triumph_thumb3.jpg'>
</a>
</li>
</ul>
<script src='jquery.jqzoom.js'></script>
<script>
$(document).ready(function() {
$('.jqzoom').jqzoom({
zoomType: 'standard',
lens:true,
preloadImages: false,
alwaysOn:false,
});
});
</script>