MovingBoxes左右滑动放大图片插件在产品预览时很有用哦
实例代码
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>MovingBoxes滑动放大图片插件</title> <link type="text/css" rel="nofollow noopener noreferrer" href="/api/jq/5733e358c8829/css/style.css" rel="external nofollow" rel="stylesheet"> <script type="text/javascript" src="/api/jq/5733e358c8829/js/jquery.js"></script> <script type="text/javascript" src="/api/jq/5733e358c8829/js/jquery.movingboxes.js"></script> <script type="text/javascript"> $(function() { $('#focus').movingBoxes({ startPanel: 1, // 从第一个li开始 reducedSize: .5, // 缩小到原图50%的尺寸 wrap: true, // 是否无缝循环 buildNav: false, // 是否显示分页 navFormatter: function() { return "●";// 返回分页格式 } }); }); </script> </head> <body> <!-- 代码开始 --> <ul id="focus"> <li><a rel="nofollow noopener noreferrer" href="#" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" ><img src="/api/jq/5733e358c8829/images/img01.jpg"></a></li> <li><a rel="nofollow noopener noreferrer" href="#" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" ><img src="/api/jq/5733e358c8829/images/img02.jpg"></a></li> <li><a rel="nofollow noopener noreferrer" href="#" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" ><img src="/api/jq/5733e358c8829/images/img03.jpg"></a></li> <li><a rel="nofollow noopener noreferrer" href="#" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" ><img src="/api/jq/5733e358c8829/images/img04.jpg"></a></li> <li><a rel="nofollow noopener noreferrer" href="#" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" ><img src="/api/jq/5733e358c8829/images/img05.jpg"></a></li> </ul> <!-- 代码结束 --> </body> </html>
以上就是jQuery插件MovingBoxes实现左右滑动中间放大图片效果。觉得自己今年真的脾气很大,一点不顺就很易燃易爆,看什么都是灰色的黑色的。各种关系搞得一塌糊涂,好像有很多不满,有很多仇恨。原来,我的头顶布满了乌云,我成了一个消极并且传播负能量的人了。想走,去一个完全陌生的地方,放下所有的爱与恨,情与伤,自己一个人,重新开始。更多关于jQuery插件MovingBoxes实现左右滑动中间放大图片效果请关注haodaima.com其它相关文章!