主文件,稍后补齐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>