鼠标移动放大图片特效

主文件,稍后补齐JS

index.html

 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" xml:lang="en" lang="en">
3 <head>
4 <link href="css/cloud-zoom.css" rel="stylesheet" type="text/css" />
5 <script type="text/javascript" src="js/jquery.min.js"></script>
6 <script type="text/JavaScript" src="js/cloud-zoom.1.0.2.js"></script>
7 <style type="text/css">
8 .main{margin:0 auto;}
9 img{border:none;}
10 </style>
11 </head>
12 <body>
13 <div class="main">
14 <a href='img/bigimage00.jpg' class = 'cloud-zoom' id='zoom1' rel="adjustX: 10, adjustY:-4, softFocus:true"> <img src="img/smallimage.jpg" alt='' align="left" title="朝暮数据www.zhaomu.com" /> </a>
15 <a href='img/bigimage00.jpg' class='cloud-zoom-gallery' title='Thumbnail 1' rel="useZoom: 'zoom1', smallImage: 'img/smallimage.jpg' "> <img src="img/tinyimage.jpg" alt = "Thumbnail 1"/></a>
16 <a href='img/bigimage01.jpg' class='cloud-zoom-gallery' title='Thumbnail 2' rel="useZoom: 'zoom1', smallImage: ' img/smallimage-1.jpg'"> <img src="img/tinyimage-1.jpg" alt = "Thumbnail 2"/></a>
17 <a href='img/bigimage02.jpg' class='cloud-zoom-gallery' title='Thumbnail 3' rel="useZoom: 'zoom1', smallImage: 'img/smallimage-2.jpg' "> <img src="img/tinyimage-2.jpg" alt = "Thumbnail 3"/></a>
18 </div>
19
20 <div style="width:550px;margin:20px auto;">
21 <p>转载请自觉注明出处!注:此代码仅供学习交流,请勿用于商业用途。</p>
22 <p>www.zhaomu.com</p>
23 <p><a href="http://www.zhaomu.com">朝暮数据</a></p>
24 </div>
25
26 </body>
27 </html>

 

转载于:https://www.cnblogs.com/wryYH/archive/2012/04/06/2434523.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值