Beiträge von zsk

    Hi,

    doing such is only possible when:

    1. the latest swfkrpano.js as used
    2. and all .js files (viewer and license) are already loaded/included


    that means:

    • either use a single .js file where the swfkrpano.js, krpanoiphone.license.js and krpanoiphone.js are merged into the one file (typically when using the MAKE PANO droplet)
    • or include all these 3 files manually in the html file in that order:

      Code
      <script src="swfkrpano.js"></script>
      <script src="krpanoiphone.license.js"></script>
      <script src="krpanoiphone.js"></script>


    best regards,
    Klaus

    thank you for your answer.

    when look at the demo , there are a code blow

    But some variable i don't know what it's mean. dragging、pressed、drag_stagex、drag_currentx, and i don't find the attribute in document.

    and is there any else attribute i don't know, where i can find them ?

    it's ok when I use this code .

    Code
    <div id="krpanoDIV"  style="margin:20px; border:5px solid #FFC; padding:20px;" ></div>
    <script type="text/javascript">
    		 var viewer = createPanoViewer({swf:"krpano/krpano.swf",target:"krpanoDIV"});
    		viewer.addVariable("xml", "bss.xml");
    		viewer.embed();
    </script>

    but width this code the page is all white

    Code
    <div id="krpanoDIV" onclick="showPano()"  style="margin:20px; border:5px solid #FFC; padding:20px;" ></div>
    
    
    <script type="text/javascript">
    	function showPano(){
    		 var viewer = createPanoViewer({swf:"krpano/krpano.swf",target:"krpanoDIV"});
    		viewer.addVariable("xml", "bss.xml");
    		viewer.embed();
    	}
    </script>

    when I click the div#krpanoDiv , It should render krpano. but the page change white. only happen in HTML5, flash is ok. *confused*

    Hi,

    do you test online or offline/locally?

    if offline/locally please see here:
    https://krpano.com/docu/localusage/

    best regards,
    Klaus

    Thank you very much !
    but I met another problem !

    Zitat

    Note - when the xml was loaded by the loadpano action and there are additional action commands after the loadpano call, then the onstart event will be skipped!

    is any method to solve this problem?

    my javascript code is

    Code
    document.getElementById("krpanoSWFObject").call("loadpano("js_load_xml.xml",null,IGNOREKEEP,BLEND(1))");


    and in js_load_xml.xml has the code

    Code
    <krpano version="1.0.8" onstart="loadscene(scene1,null,MERGE);">


    it don't load the scene1 .
    Is it any method to load scene1 . thank you !

    <div id="call_id" onclick="moveto('+90','0')">click here</div>
    <div id="krpano">
    <noscript><table width="100%" height="100%"><tr valign="middle"><td><center>ERROR:<br><br>Javascript not activated<br><br></center></td></tr></table></noscript>
    </div>

    <script type="text/javascript" src="swfkrpano.js"></script>

    <script type="text/javascript">


    var so = new SWFObject("krpano.swf", "krpanoSWFObject", "100%", "100%", "9.0.28","#000000");
    so.addParam("allowFullScreen","true");
    so.addVariable("pano", "pano.xml");
    so.useExpressInstall("swfobject/expressinstall.swf");
    so.setAttribute('xiRedirectUrl', window.location);
    so.write("krpano")


    function krpano(){
    return document.getElementById("krpanoSWFObject");
    }

    function moveto(toh, tov){
    krpano().call("moveto(" + toh +"," + tov + ")");
    }

    </script>

    *confused*