take a look at the example virtual tours here...
http://www.krpano.com/examples/vtour/
specifically the group under "via hotspots connected panoramas"
The xml's for each are listed and accessible as well... but here's a clip of code that would do what you wanted...
|
Quellcode
|
1
|
onClick="set(view.fovmin,6);lookto(8.8165,-3.4802,6,smooth());loadpano(keller.xml,null,KEEPBASE|NOPREVIEW,BLEND(2), lookat(188.92,1.51,40);wait(blend);lookto(335.66,7.98,90,smooth(100,100,100)))"
|
specifically this part...
|
Quellcode
|
1
|
loadpano(keller.xml,null,KEEPBASE|NOPREVIEW,BLEND(2), lookat(188.92,1.51,40);wait(blend);lookto(335.66,7.98,90,smooth(100,100,100)))
|
The
loadpano format is...
loadpano(xmlpath,parameters,flags,blend,onstart)
... and you must keep the "null" in place for items that you don't want to specify... so after the xmlpath, if there are no parameters, then you need to keep the null there.
Your code would look like this...
|
Quellcode
|
1
|
onclick="loadpano(9.xml, null, MERGE, BLEND(0.5), lookat(180,-1,80));"
|