|
|
Quellcode |
1 |
http://website.com/index.html?viewmode=external |
|
|
Quellcode |
1 2 3 4 5 6 |
<script type="text/javascript">
var swf = createswf("krpano.swf");
swf.addVariable("xml","pano.xml");
swf.passQueryParameters();
swf.embed("pano");
</script>
|
|
|
Quellcode |
1 2 3 4 |
<action name="tracelog">
trace('viewmode=',viewmode);
showlog();
</action>
|
Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »Andrew« (29. November 2010, 05:49)
Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »jpdeglet69« (30. November 2010, 17:57)
|
|
Quellcode |
1 2 3 4 5 6 7 8 |
<script type="text/javascript">
var swf = createswf("krpano.swf");
swf.addVariable("xml","srebrenica_pillar-of-shame1_berlin-2010_4000h.xml");
swf.addVariable("startPano", "start");
swf.embed("krpanoDIV");
</script>
|
|
|
Quellcode |
1 2 3 |
<script>
embedpano({swf:"hauptdeck_buffetlift_2.swf", xml:"hauptdeck_buffetlift_2.xml", target:"pano", startPano:"start"});
</script>
|
the code is correct and should work, the swf.passQueryParameters();The log just shows "viewmode=viewmode". I'm not using kprotect. Any ideas?
you can still use the old createswf() function,With the new Krpano, the HTML looks a bit different, and it seems that this does not work (startPano is now NULL). Any solution for this as well?
edit: I succeeded using this code now, thank you for pointing me to the right function:you can still use the old createswf() function,
the embedpano() is just an additional simplified single-line function when not parameters or further settings are needed, custom parameters can't be used with it,
see here for more details about the functions and their usage:
http://krpano.com/docu/swfkrpanojs/#syntax
http://krpano.com/docu/swfkrpanojs/#description
best regards,
Klaus
|
|
Quellcode |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
<body>
<script src="panoramaname.js">
</script>
<div id="pano" style="width:100%; height:100%;">
<noscript>
...
</noscript>
<script>
var viewer = createPanoViewer({swf:"panoramaname.swf",target:"pano"});
viewer.addVariable("xml", "panoramaname.xml");
viewer.addVariable("my_own_variable_name", "my_own_variable_value");
viewer.embed();
</script>
</div>
</body>
|
Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »mstoss« (6. Dezember 2010, 09:39)