当前位置:编程学习 > JAVA >>

jQuery放大镜效果


<head>
    <title></title>
    <link href="css/cloud-zoom.css" rel="stylesheet" type="text/css" />
    <script src="js/Jquery1.7.js" type="text/javascript"></script>
    <script src="js/cloud-zoom.1.0.2.js" type="text/javascript"></script>
</head>
<body>
<a href='zoom/big1.jpg' class='cloud-zoom' id='zoom1' rel="adjustX: 100, adjustY:0" style="width:240px;">
        <img src="zoom/small1.jpg" alt='' title="预览大图" />
    </a>

 


    <a href='zoom/big1.jpg' class='cloud-zoom-gallery' title='Thumbnail 1' rel="useZoom: 'zoom1', smallImage: 'zoom/small1.jpg' ">
        <img src="zoom/smallsmall1.jpg" alt="smallsmall1 1" /></a>

 


        <a href='zoom/big2.jpg'
            class='cloud-zoom-gallery' title='Thumbnail 2' rel="useZoom: 'zoom1', smallImage: ' zoom/small2.jpg'">
            <img src="zoom/smallsmall2.jpg" alt="smallsmall2" /></a>

 


            <a href='zoom/big3.jpg'
                class='cloud-zoom-gallery' title='Thumbnail 3' rel="useZoom: 'zoom1', smallImage: 'zoom/small3.jpg' ">
                <img src="zoom/smallsmall3.jpg" alt="smallsmall3" /></a>
</body>
</html>

补充:web前端 , JavaScript ,
CopyRight © 2022 站长资源库 编程知识问答 zzzyk.com All Rights Reserved
部分文章来自网络,