Help Us To Improve, We Need Your COMMENTS

    read more

    JQuery image Zooming

    0

    1.Login to your blogger dashboard--> layout- -> Edit HTML

    2.Scroll down to where you see ]]></b:skin> tag .

    3.Copy below code and paste it just after the ]]></b:skin> tag .

    jQuery Image Zooming

    <script src='jquery.js' type='text/javascript'/>
    <script src='jquery.jqzoom.js' type='text/javascript'/>
    <script type='text/javascript'>
    jQuery.noConflict();
    jQuery(document).ready(function(){
    $("img.jqzoom").jqueryzoom({
      xzoom: 200, //zooming div default width(default width value is 200)
      yzoom: 200, //zooming div default width(default height value is 200)
      offset: 10 //zooming div default offset(default offset value is 10)
      //position: "right" //zooming div position(default position value is "right")
     });
    });
    </script>
    
    <style type='text/css'>
    div.zoomdiv {
    z-index                 : 100;
    position                : absolute;
    top:0px;
    left:0px;
    width                   : 200px;
    height                  : 200px;
    background: #ffffff;
    border:1px solid #CCCCCC;
    display:none;
    text-align: center;
    overflow: hidden;
    
    }
    
    
    img.jqzoom{
    cursor:crosshair;
    position:relative;
    
    }
    </style>
    


    Important !!! : Download jquery.js and jquery.jqzoom.js as a zip file from here and host jquery.js and jquery.jqzoom.js yourself, (Best Option is Google Sites.)

    4.Now save your template.

    5.Go to Layout-->Page Elements and click on "Add a gadget".

    6.Select "html/java script" and add the code given below and click save.

    LARGE-IMAGE-ADDRESS" src="SMALL-IMAGE-ADDRESS" class="jqzoom"/>


    Look at the example below.

    https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg_OqJNxrvaJKD8m_hJjQCeA9f2_aQuwT6KnrGeLbnJBvK1RoQkUbfngLxvCVk-rQmjlXIkF7KCMaFv324Z1nnHGP1aWWkZn_qnXhK9weZ-FcpepGE8MtYVH7FwH5hi5aU307ubdy_27RX3/+Zoom+Image+big.jpeg" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhffc8X-huqNldcj3AHAS8NzWFeETQ4kXc6dK9sdMPuIx-rugMTQZrJyIENfw4RG0YaJWSzhZJKZPC3n9lq1yeyXalQ1mP-d0e8W3L5WqvnD_Pk1uvrnUEdjpXxL2xpEm4-PnKbzqUoVa20/+Zoom+Image+small.jpg" class="jqzoom"/>


    You are done.

    Posted on : | By : Er. Ankita Dhiman | In : ,

    One Response to "JQuery image Zooming"

    Followers