OK , thank you very much .
Beiträge von zsk
-
-
Hi,
doing such is only possible when:
- the latest swfkrpano.js as used
- 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:
best regards,
Klausthank you for your answer.
when look at the demo , there are a code blow
Code
Alles anzeigen<plugin name="slider_grip" url="slider_grip.png" align="left" edge="center" parent="slider_bg" x="0" zorder="2" dragging="if(pressed, sub(dx, mouse.stagex, drag_stagex); add(newx, drag_currentx, dx); if(newx LT 0, set(newx,0)); if(newx GT plugin[slider_bg].pixelwidth, copy(newx,plugin[slider_bg].pixelwidth)); copy(x,newx); div(val, newx, plugin[slider_bg].pixelwidth); setblend(get(val)); delayedcall(0,dragging()); );" ondown="copy(drag_currentx,x); copy(drag_stagex,mouse.stagex); dragging();" />
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.
-
Hi,
do you test online or offline/locally?
if offline/locally please see here:
https://krpano.com/docu/localusage/best regards,
KlausThank you very much !
but I met another problem !ZitatNote - 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
Codedocument.getElementById("krpanoSWFObject").call("loadpano("js_load_xml.xml",null,IGNOREKEEP,BLEND(1))");
and in js_load_xml.xml has the code
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>