Hello,
I use a plugin swfaddress.
Locally from a folder, everything works, but on the server we have problem. Do not set pageurl in the address bar.
It seems to me that happens from the fact that there is a slash in before of pageurl.
HTML
<html>
<head>
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
<style>
#krpano {
width: 100%;
height: 483px;
}
</style>
<script src="/public/js/krpano.js" type="text/javascript"></script>
<script src="/public/js/swfaddress.js" type="text/javascript"></script>
</head>
<body>
<div id="krpano"> </div>
<script type="text/javascript">
var swf = createswf("/public/flash/krpano_tour.swf");
swf.addVariable("pano", "/public/xml/main.xml");
swf.embed("krpano");
</script>
</body>
</html>
Display More
main.xml
Code
<krpano version="1.0.8">
<plugin name="swfaddress" url="/public/flash/swfaddress.swf" mode="auto" onurlchange="activatepano(%PANOID, %TYPE);">
<pano name="pano1" xmlurl="/first.xml" pageurl="/pano1/" pagetitle="Test 1" root="true"/>
<pano name="pano1" xmlurl="/second.xml" pageurl="/pano1/" pagetitle="Test 2"/>
</plugin>
</plugin>
<plugin name="pl1"
url="/public/images/pano1.gif"
align="topleft"
x="10"
y="10"
keep="true"
onclick="activatepano(/first.xml, xml);"
/>
<plugin name="pl2"
url="/public/images/pano2.gif"
align="topleft"
x="80"
y="10"
keep="true"
onclick="activatepano(/second.xml, xml);"
/>
<action name="activatepano">if (%2 == xml, loadpano(%1,null,KEEPALL,BLEND(1)););
if (%2 == scene, loadscene(%1,null,KEEPALL,BLEND(1)););
wait(blend);</action>
</krpano>
Display More
first.xml
Code
<krpano version="1.0.8">
<image>
<left url="/public/panos/first/pano_l.jpg" />
<front url="/public/panos/first/pano_f.jpg" />
<right url="/public/panos/first/pano_r.jpg" />
<back url="/public/panos/first/pano_b.jpg" />
<up url="/public/panos/first/pano_u.jpg" />
<down url="/public/panos/first/pano_d.jpg" />
</image>
</krpano>
second.xml
Code
<krpano version="1.0.8">
<image>
<left url="/public/panos/second/pano_l.jpg"/>
<front url="/public/panos/second/pano_f.jpg"/>
<right url="/public/panos/second/pano_r.jpg"/>
<back url="/public/panos/second/pano_b.jpg"/>
<up url="/public/panos/second/pano_u.jpg"/>
<down url="/public/panos/second/pano_d.jpg"/>
</image>
</krpano>