PHP群:95885625 Hbuilder+MUI群:81989597 站长QQ:634381967
    您现在的位置: 首页 > 开发编程 > Jquery教程 > 正文

    JQuery放大镜插件jqzoom.js

    作者:admin来源:网络浏览:时间:2020-09-30 00:07:50我要评论
    导读:JQuery放大镜插件jqzoom.js
    JQuery放大镜插件jqzoom.js

    1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
    2. <html xmlns="http://www.w3.org/1999/xhtml"> 
    3.     <head> 
    4.         <title>图片放大镜插件-B5教程网_www.bcty365.com</title> 
    5.         <link href="/data/jquery.jqzoom.css" rel="stylesheet" type="text/css" /> 
    6.         <link href="style.css" rel="stylesheet" type="text/css" /> 
    7.         <script type="text/javascript" src="/data/jquery-1.8.2.min.js"></script> 
    8.         <script type="text/javascript" src="/data/jquery.jqzoom.js"></script> 
    9.     </head> 
    10.      
    11.     <body> 
    12.         <div id="divtest"> 
    13.             <div class="title"> 
    14.                 <span class="fl">图片放大镜</span>  
    15.             </div> 
    16.             <div class="content"> 
    17.                 <a href="www.bcty365.com/52e4aec90001924d06800599.jpg" id="jqzoom" title="小兔子乖乖"> 
    18.                          <img src="http://www.bcty365.com/52e4aee700012df702130212.jpg" alt=""/> 
    19.                 </a> 
    20.             </div> 
    21.         </div> 
    22.          
    23.         <script type="text/javascript"> 
    24.             $(function () { 
    25.                 $("#jqzoom").jqzoom({ //绑定图片放大插件jqzoom 
    26.                     zoomWidth: 123, //小图片所选区域的宽 
    27.                     zoomHeight: 123, //小图片所选区域的高 
    28.                     zoomType: 'reverse' //设置放大镜的类型 
    29.                 }); 
    30.             }); 
    31.         </script> 
    32.     </body> 
    33. </html> 

     

    转载请注明(B5教程网)原文链接:https://b5.mxunkeji.com/content-47-3652-1.html