• Dear

    when i load the krpano on such scenario the zoom is not working plz provided a solution for this asap plz. there was a map on the image(where will get hand cursor) click for loading the krPano

    <html>
    <head>
    <script type="text/javascript" src="http://code.jquery.com/jquery-1.7.2.min.js"></script>
    <script type="text/javascript" src="https://krpano.com/docu/swfkrpano…../swfkrpano.js"></script>
    <style type="text/css">
    #krpanoDIV1 {
    height:75px;
    width:85px;
    position: absolute;
    top:10px;
    left: 10px;
    z-index: 9999;
    }
    </style>

    </head>

    <body>

    <div id="krpanoDIV1">
    <noscript><table width="640" height="400"><tr valign="middle"><td><center>ERROR:<br><br>Javascript not activated<br><br></center></td></tr></table></noscript>
    </div>
    <img src="http://upload.wikimedia.org/wikipedia/comm…_Hemisphere.jpg" width="1140" border="0" usemap="#Map">
    <map name="Map">
    <area shape="poly" coords="311,135,346,117,415,216,411,217,404,209,379,222,384,232,378,236" href="#">
    </map>
    <div id="overLay" style="top:135px; left:311px; visibility:hidden; width:200px; height:200px; background:#ff0000;position: absolute; z-index:100"></div>


    <script type="text/javascript">
    $(document).ready(function(){

    $('area').bind('mouseover', function(e){
    $("#overLay").show();
    var left =e.pageX;
    var top = e.pageY;

    $("#overLay").css({"top": top +30, "left": left});
    })
    $('area').bind('click', loadPano)
    })

    function loadPano(){
    var swf = createswf("https://krpano.com/docu/swfkrpano…test/krpano.swf", "krpanoSWFObject1", "640", "480");
    swf.addParam("wmode","transparent");
    swf.addVariable("xml", "https://krpano.com/docu/swfkrpano…est/krpano1.xml");
    swf.embed("krpanoDIV1");
    }
    </script>


    </body>
    </html>

  • Hi,

    use your own files instead of loading them directly from the krpano server!
    you will never get access to objects from an other server/domain and so the javascript mousewheel fixes can't work!
    btw - why are you doing this? and stop doing this of course!

    so just put the viewer/script files on your own server and it will work!

    btw - the mouse wheel examples are also included in the viewer download package!

    best regards,
    Klaus

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!