|
|
Quellcode |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
<krpano version="1.0.8" ispartialpano="true" onstart="setup panning();"> <include url="skin/defaultskin.xml" /> <view hlookat="0" vlookat="0" maxpixelzoom="1.0" /> <display details="22" /> <preview url="index.tiles/preview.jpg" /> <image type="CYLINDER" hfov="1.00" multires="true" tilesize="616" progressive="true"> <level tiledimagewidth="4927" tiledimageheight="500"> <cylinder url="index.tiles/l1_%0v_%0h.jpg" /> </level> </image> <action name="setup panning"> set(step,1); set(idletime,4); set(events.onidle, auto pan(); </action> <action name="auto pan"> oninterrupt(break); if(step==1, lookto(-180,0,,smooth); inc(step); ); if(step==2, wait(5); inc(step); ); if(step==3, lookto(+180,0,,smooth); inc(step); ); if(step==4, wait(5); set(step,1); ); </action></krpano> |
Thanks for that. Added the bracket.
Double checked for other typos and can't see any.
Sadly it still doesnt work![]()
|
|
Quellcode |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
<krpano version="1.0.8" logkey="true" showerrors="true" ispartialpano="true" onstart="test();">
<include url="skin/defaultskin.xml" /> <view hlookat="0" vlookat="0" maxpixelzoom="1.0" />
<display details="22" /> <preview url="index.tiles/preview.jpg" /> <image type="CYLINDER" hfov="1.00" multires="true" tilesize="616" progressive="true">
<level tiledimagewidth="4927" tiledimageheight="500">
<cylinder url="index.tiles/l1_%0v_%0h.jpg" />
</level>
</image>
<action name="test">
set(step,1);
set(events.idletime,4);
set(events.onidle,test2() );
</action>
<action name="test2">
trace('1');
oninterrupt(break);
if(step==1, lookto(-180,0,,smooth); inc(step); );
if(step==2, wait(5); inc(step); );
if(step==3, lookto(+180,0,,smooth); inc(step); );
if(step==4, wait(5); set(step,1); );
</action></krpano>
|
|
|
Quellcode |
1 2 |
<action name="test";> trace('0');
set(events.onidle=("test2";);</action><action name="test";> trace('1');</action>
|
|
|
Quellcode |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
<krpano version="1.0.8" logkey="true" showerrors="true" ispartialpano="true" onstart="test();" idletime="5">
<include url="skin/defaultskin.xml" /> <view hlookat="0" vlookat="0" maxpixelzoom="1.0" />
<display details="22" /> <preview url="index.tiles/preview.jpg" /> <image type="CYLINDER" hfov="1.00" multires="true" tilesize="616" progressive="true">
<level tiledimagewidth="4927" tiledimageheight="500">
<cylinder url="index.tiles/l1_%0v_%0h.jpg" />
</level>
</image>
<action name="test">
trace('0');
set(step,1);
set(events.idletime,4);
set(events.onidle,'test2();');
</action>
<action name="test2">
trace('1');
oninterrupt(break);
if(step==1, lookto(-180,0,,smooth); inc(step); );
if(step==2, wait(5); inc(step); );
if(step==3, lookto(+180,0,,smooth); inc(step); );
if(step==4, wait(5); set(step,1); );
</action>
</krpano>
|
This code only results in "Info: 0" in the window.
I've tried it in IE9 and in Firefox 4, so it seems unlikely to be a browser setting that isn't working.
Is there a server side setting that might be stopping this working?