Benutzerinformationen überspringen
Wohnort: Netherlands
Beruf: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer

|
|
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 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 |
<plugin name="map" url="......./map.png" align="righttop" x="10" y="10"
keep="true"
scalechildren=""
scale="0.7"
destscale="0.7"
onclick="action(closemap);"
/>
<!-- radar -->
<plugin name="radar" url="....../plugins/radar.swf" zorder="5" origin="righttop" edge="center" keep="true" x="293" y="87" width="80" height="80" />
<plugin name="spot1" url="......./buttons/mappoint.png" zorder="10" origin="righttop" edge="center" keep="true" x="193" y="287" onhover="showtext(I LOVE KRPANO);" onclick="action(load1);" />
<plugin name="spot2" url="....../buttons/mappoint.png" zorder="10" origin="righttop" edge="center" keep="true" x="192" y="226" onhover="showtext(I REALLY LOVE KRPANO);" onclick="action(load2);" />
</plugin>
<action name="load1">
set(plugin[spotx].x,193);
set(plugin[spotx].y,287);
set(plugin[radar].x,193);
set(plugin[radar].y,287);
loadpano(1.xml,null,MERGE,BLEND(1));
set(plugin[radar].heading,12);
</action>
<action name="load2">
set(plugin[spotx].x,192);
set(plugin[spotx].y,226);
set(plugin[radar].x,192);
set(plugin[radar].y,226);
loadpano(2.xml,null,MERGE,BLEND(1));
set(plugin[radar].heading,270);
</action>
<action name="showspots">
set(plugin[spot1].visible,true);
set(plugin[spot2].visible,true);
tween(plugin[spot1].alpha,1);
tween(plugin[spot2].alpha,1);
</action>
<action name="hidespots">
set(plugin[spot1].visible,false);
set(plugin[spot2].visible,false);
</action>
|
: https://pame.virtualtuur.comWay to go Tuur!Thanks Tuur. you're the Master to me!!
Benutzerinformationen überspringen
Wohnort: Netherlands
Beruf: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer
: https://pame.virtualtuur.comBenutzerinformationen überspringen
Wohnort: Netherlands
Beruf: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer
Zitat
you're the Master to me!!
Way to go Tuur!
: https://pame.virtualtuur.comBenutzerinformationen überspringen
Wohnort: Netherlands
Beruf: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer
: https://pame.virtualtuur.com

Hey Thanks Tuur for this great starting point... just a note though for those of us trying a copy and paste, adding the necessary components, then getting a parser error 2070...Yo,
put this in the main xml.. or something similar.. the radar setting are the heading .. the x-y are the place of the spots and the heart of the radar (most of the time u like the radar on the spot!!)
![]()
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 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51<plugin name="map" url="/map.png" align="righttop" x="10" y="10" keep="true" scalechildren="" scale="0.7" destscale="0.7" onclick="action(closemap);" /> <!-- radar --> <plugin name="radar" url="/plugins/radar.swf" zorder="5" origin="righttop" edge="center" keep="true" x="293" y="87" width="80" height="80" /> <plugin name="spot1" url="/buttons/mappoint.png" zorder="10" origin="righttop" edge="center" keep="true" x="193" y="287" onhover="showtext(I LOVE KRPANO);" onclick="action(load1);" /> <plugin name="spot2" url="/buttons/mappoint.png" zorder="10" origin="righttop" edge="center" keep="true" x="192" y="226" onhover="showtext(I REALLY LOVE KRPANO);" onclick="action(load2);" /> <action name="load1"> set(plugin[spotx].x,193); set(plugin[spotx].y,287); set(plugin[radar].x,193); set(plugin[radar].y,287); loadpano(1.xml,null,MERGE,BLEND(1)); set(plugin[radar].heading,12); </action> <action name="load2"> set(plugin[spotx].x,192); set(plugin[spotx].y,226); set(plugin[radar].x,192); set(plugin[radar].y,226); loadpano(2.xml,null,MERGE,BLEND(1)); set(plugin[radar].heading,270); </action> <action name="showspots"> set(plugin[spot1].visible,true); set(plugin[spot2].visible,true); tween(plugin[spot1].alpha,1); tween(plugin[spot2].alpha,1); </action> <action name="hidespots"> set(plugin[spot1].visible,false); set(plugin[spot2].visible,false); </action>
succes
Cheers
Tuur
This^when you click on the scenes buttons (on the bottom) it does not change the spot on the map :)