欧美一级特黄大片做受成人-亚洲成人一区二区电影-激情熟女一区二区三区-日韩专区欧美专区国产专区

圖片放大鏡-創(chuàng)新互聯(lián)

目前創(chuàng)新互聯(lián)建站已為上千多家的企業(yè)提供了網(wǎng)站建設(shè)、域名、雅安服務(wù)器托管、綿陽(yáng)服務(wù)器托管、企業(yè)網(wǎng)站設(shè)計(jì)、清水網(wǎng)站維護(hù)等服務(wù),公司將堅(jiān)持客戶導(dǎo)向、應(yīng)用為本的策略,正道將秉承"和諧、參與、激情"的文化,與客戶和合作伙伴齊心協(xié)力一起成長(zhǎng),共同發(fā)展。>var ImgZoom = function (image, viewer, options) { this._init(image, viewer, options); } ImgZoom.prototype= { _init:function (image, viewer, options) { this._image = $$O.byId(image); //原圖 this._viewer = $$O.byId(viewer); //顯示框 this._initViewer(); this._MOVE = $$F.bindAsEventListener(this._move, this); // $$E.addEvent(this._image, "mousemove", this._MOVE); $$E.addEvent(document, "mousemove", this._MOVE); }, _initViewer:function () { //初始化顯示框 var viewer = this._viewer; $(viewer).css({"padding": 0, "overflow": "hidden", "position": "absolute" }); //顯示圖 this._zoom = document.createElement("img"); this._zoom.src = this._image.src; $(this._zoom).css("position", "absolute"); if (!viewer.contains(this._zoom)) { viewer.appendChild(this._zoom); } }, _move:function (e) {//移動(dòng) var self = this, image = this._image, zoom = this._zoom, viewer = this._viewer, x = e.pageX, y = e.pageY; //原圖位置 var imageRect = { top: parseInt($(image).offset().top), left: parseInt($(image).offset().left), width: parseInt($(image).width()), height: parseInt($(image).height()) }; $(viewer).show(); if (x > imageRect.left + imageRect.width || x < imageRect.left || y > imageRect.top + imageRect.height || y < imageRect.top) { $(viewer).hide(); } var pos = { //(x - imageRect.left):相對(duì)圖片的位置 //zoom.width / imageRect.width:原圖、顯示圖的比例 //viewer.offsetWidth:顯示框的寬度,因?yàn)樾枰獙D片放到正中央顯示,因此 viewer.offsetWidth / 2 left: viewer.offsetWidth / 2 - (x - imageRect.left) * (zoom.width / imageRect.width), top: viewer.offsetHeight/ 2 - (y - imageRect.top) * (zoom.height / imageRect.height) }; // $$P.log("log", "viewer.offsetWidth=" + viewer.offsetWidth); x = Math.ceil(Math.min(Math.max(pos.left, viewer.offsetWidth - zoom.width), 0)); y= Math.ceil(Math.min(Math.max(pos.top, viewer.offsetHeight - zoom.height), 0)); zoom.style.left= x + "px"; zoom.style.top= y + "px"; } }
<!DOCTYPE html><htmlxmlns="http://www.w3.org/1999/xhtml"><head>  <metahttp-equiv="Content-Type" content="text/html; charset=utf-8" />  <title></title>  <styletype="text/css">
        .container{
            position: relative;   }

        .izImage{
            width: 300px;
            cursor: crosshair;   }

        .izImage, .izViewer{
            border: 1px solid #000;
          <!--  background: #fff url(http://images.cnblogs.com/cnblogs_com/cloudgamer/169629/o_loading.gif) no-repeat center;-->
}

        .izViewer{
            width: 400px;
            height: 400px;
            position: absolute;
            left: 320px;
            top: 0px;
            display: none;   }

            .izViewer div{
                position: absolute;
                border: dashed 1px #999;
                top: 0px;
                left: 0px;
                z-index: 999;
                width: 100%;
                height: 100%; }  </style></head><body>  <divclass="container">   <imgalt="../../../images/DSCN0015.JPG" id="idImage" class="izImage" src="../../../images/DSCN0015.JPG" />   <divid="idViewer" class="izViewer"></div>  </div>  <divid="log"></div></body><scriptsrc="../../../js/jquery-1.7.2.min.js" type="text/javascript"></script><!--<script src="../../../js/jquery-1.10.2.min.js"></script>
<!--jq 1.9 以上版本,廢除了 live,用$.on()代替--><!--<script src="../../../js/jquery-migrate-1.2.1.min.js"></script>--><!--加上該引用后可以繼續(xù)用--><scriptsrc="../../../js/jone.js" type="text/javascript"></script><scriptsrc="ZoomImage_wzq.js" type="text/javascript"></script><scripttype="text/javascript">  var iz= new ImgZoom("idImage","idViewer", {});
</script></html>

分享題目:圖片放大鏡-創(chuàng)新互聯(lián)
當(dāng)前鏈接:http://aaarwkj.com/article40/csojho.html

成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供網(wǎng)站營(yíng)銷、品牌網(wǎng)站制作網(wǎng)站收錄、響應(yīng)式網(wǎng)站ChatGPT、Google

廣告

聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請(qǐng)盡快告知,我們將會(huì)在第一時(shí)間刪除。文章觀點(diǎn)不代表本網(wǎng)站立場(chǎng),如需處理請(qǐng)聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時(shí)需注明來(lái)源: 創(chuàng)新互聯(lián)

h5響應(yīng)式網(wǎng)站建設(shè)
中文字幕熟女人妻另类癖好| 欧美高清一区二区在线观看| 18禁黄网站免费视频| 精品丝袜熟女一区二区三区| 亚洲av毛片一区二区| 日韩欧美啪啪一区二区| 午夜性色在线视频福利| 日本一区二区不卡高清| 国产日产亚洲综合一区| av天堂精品一区二区三区| av小说亚洲激情乱| 亚洲第六页亚洲第一页| av基地蜜桃蜜桃蜜桃| 91嫩草国产在线观看| 久久精品一区二区三区乱码| 亚洲黄色av一区二区三区| 免费av男人天堂亚洲天堂| 精品人妻一区二区av| 国产成人综合亚洲乱淫.| 日本一道本不卡一区二区| 99久久精品人妻少妇一| 刚出嫁新婚少妇很紧很爽| 亚洲精品尤物福利在线一区| 天天操夜夜操夜夜操精品| 人妻少妇亚洲精品视频| 欧美日韩精品成人大片| 四虎久久久最新网址| 亚洲欧美日韩不卡视频| 一区二区三区欧美日韩在线| 变态另类日韩欧美高清| 国产精品伦一区二区三级| 国产一区av剧情巨作| 91香蕉伊人综合久久麻豆| 国产中文精品字幕a区| 自拍偷拍亚洲精品第一页| 日本成人精品二区在线观看| 成年人免费在线观看毛片| 久久国产精品午夜亚洲欧美| 国产精品一区巨乳人妻| 亚洲图文一区二区三区四区| av二区不卡国产精品|