Hiho
Ich arbeite seit langer zeit (ca 3 Jahre) mal wieder mit KRPano (in Demo). Damals war flash noch nicht verpöhnt, deswegen bin ich gerade ratlos, wodran nun mein Fehler liegt.
Folgendes. Ich habe mit dem Make-Tour-Droplet eine Tour erstellt. Im Tour-Editor (der ja als Flash startet) habe ich Hotspots gesetzt und über die Interne Funktion den Code bearbeitet. Leider ist nach dem Ersten Speichern die "echte" xml völlig zerschossen worden. Der ganze Code ist in eine Zeile geknallt, keine Zeilenumbrücke mehr, absolut keine Übersicht.... - Problem 1
nächstes Problem. onhover="Showtext(..)" funktionieren in der echten Tour nicht. im Editor werden diese richtig angezeigt. anzeige erfolgt hier per HTML5
Genutzt Firefox. Weiterhin getestet auch den lokalen Server.
Wo ist der Fehler?
Danke
Hier der Code (leider ohne Einzüge)
<krpano version="1.18" title="Virtual Tour" onstart="startup();">
<include url="skin/vtourskin.xml" />
<plugin name="editor" url="plugins/editor.swf" align="top" x="100" y="100" />
<plugin name="options" url="plugins/options.swf" keep="true"/>
<plugin name="mittendot" url="plugins/dot.png" align="center" keep="true" />
<plugin name="logo" url="skin/logo.png" align="topleft" keep="true" />
<plugin name="grundrissbild" url="skin/grundriss.gif" keep="true" align="rightbottom" zorder="5" />
<plugin name="verkleinern" url="skin/verkl.png" keep="true" visivle="true" align="rightbottom" y="263" x="464"
onhover="showtext(Grundriss verkleinern)" zorder="10"
onclick="set(plugin[grundrissbild].scale, 0.5); set(plugin[verkleinern].visible, false); set(plugin[vergroesern].visible, true)" />
<plugin name="vergroesern" url="skin/vergr.png" keep="true" visible="false" align="rightbottom" y="131" x="232"
onhover="showtext(Grundriss vergrößern)" zorder="10"
onclick="set(plugin[grundrissbild].scale, 1); set(plugin[verkleinern].visible, true); set(plugin[vergroesern].visible, false)" />
<plugin name="speisekarte" url="skin/speisekarte.jpg" keep="true" visible="false" align="center" onhover="showtext(schließen)" onclick="set(plugin[speisekarte].visible, false)" />
<!-- set skin settings: bingmaps? gyro? thumbnails? tooltips? -->
<skin_settings maps="false"
maps_type="bing"
maps_bing_api_key=""
maps_zoombuttons="false"
gyro="true"
title="true"
thumbs="true"
thumbs_width="120" thumbs_height="80" thumbs_padding="10" thumbs_crop="0|40|240|160"
thumbs_opened="false"
thumbs_text="false"
thumbs_dragging="true"
thumbs_onhoverscrolling="false"
thumbs_scrollbuttons="false"
thumbs_scrollindicator="false"
thumbs_loop="false"
tooltips_thumbs="false"
tooltips_hotspots="false"
tooltips_mapspots="false"
loadscene_flags="MERGE"
loadscene_blend="BLEND(0.5)"
controlbar_offset="20"
/>
<!-- set optional skin logo url -->
<layer name="skin_logo" url="" scale="0.25" opened_onclick="openurl('...',_blank);" />
<action name="startup">
if(startscene === null, copy(startscene,scene[0].name));
loadscene(get(startscene), null, MERGE);
</action>
<scene name="scene_Biergarten" title="Biergarten" onstart="" thumburl="panos/Biergarten.tiles/thumb.jpg" lat="" lng="" heading="">
<view hlookat="122.443" vlookat="2.504" fovtype="MFOV" fov="120.000" maxpixelzoom="2.0" fovmin="70" fovmax="140" limitview="auto" />
<preview url="panos/Biergarten.tiles/preview.jpg" />
<image>
<cube url="panos/Biergarten.tiles/pano_%s.jpg" />
<mobile>
<cube url="panos/Biergarten.tiles/mobile_%s.jpg" />
</mobile>
</image>
<!-- place your scene hotspots here -->
<hotspot name="spot1" onhover="showtext(Zum Empfang)" style="skin_hotspotstyle" ath="90.241" atv="-0.908" linkedscene="scene_empfang" />
</scene>
<scene name="scene_Doppelzimmer" title="Doppelzimmer" onstart="" thumburl="panos/Doppelzimmer.tiles/thumb.jpg" lat="" lng="" heading="">
<view hlookat="0" vlookat="0" fovtype="MFOV" fov="120" maxpixelzoom="2.0" fovmin="70" fovmax="140" limitview="auto" />
<preview url="panos/Doppelzimmer.tiles/preview.jpg" />
<image>
<cube url="panos/Doppelzimmer.tiles/pano_%s.jpg" />
<mobile>
<cube url="panos/Doppelzimmer.tiles/mobile_%s.jpg" />
</mobile>
</image>
<!-- place your scene hotspots here -->
<hotspot name="spot1" onhover="showtext(Zum Empfang)" style="skin_hotspotstyle" ath="147.099" atv="5.315" linkedscene="scene_empfang" />
</scene>
<scene name="scene_Einzelzimmer" title="Einzelzimmer" onstart="" thumburl="panos/Einzelzimmer.tiles/thumb.jpg" lat="" lng="" heading="">
<view hlookat="0" vlookat="0" fovtype="MFOV" fov="120" maxpixelzoom="2.0" fovmin="70" fovmax="140" limitview="auto" />
<preview url="panos/Einzelzimmer.tiles/preview.jpg" />
<image>
<cube url="panos/Einzelzimmer.tiles/pano_%s.jpg" />
<mobile>
<cube url="panos/Einzelzimmer.tiles/mobile_%s.jpg" />
</mobile>
</image>
<!-- place your scene hotspots here -->
<hotspot name="spot1" onhover="showtext(Zum Empfang)" style="skin_hotspotstyle" ath="226.323" atv="14.217" linkedscene="scene_empfang" />
</scene>
<scene name="scene_Empfang" title="Empfang" onstart="" thumburl="panos/Empfang.tiles/thumb.jpg" lat="" lng="" heading="">
<view hlookat="65.679" vlookat="7.235" fovtype="MFOV" fov="120.000" maxpixelzoom="2.0" fovmin="70" fovmax="140" limitview="auto" />
<preview url="panos/Empfang.tiles/preview.jpg" />
<image>
<cube url="panos/Empfang.tiles/pano_%s.jpg" />
<mobile>
<cube url="panos/Empfang.tiles/mobile_%s.jpg" />
</mobile>
</image>
<!-- place your scene hotspots here -->
<hotspot name="spot1" onhover="showtext(Zum Biergarten)" style="skin_hotspotstyle" ath="-143.603" atv="1.370" linkedscene="scene_biergarten" />
<hotspot name="spot2" onhover="showtext(Zum Restaurant)" style="skin_hotspotstyle" ath="-537.437" atv="2.453" linkedscene="scene_restaurant" />
<hotspot name="spot3" onhover="showtext(Zum Speisesaal)" style="skin_hotspotstyle" ath="104.907" atv="3.163" linkedscene="scene_speisesaal" />
<hotspot name="spot4" onhover="showtext(Zum Einzelzimmer)" rotate="-90" style="skin_hotspotstyle" ath="63.874" atv="4.194" linkedscene="scene_einzelzimmer" />
<hotspot name="spot5" onhover="showtext(Zum Doppelzimmer)" rotate="90" style="skin_hotspotstyle" ath="57.681" atv="4.233" linkedscene="scene_doppelzimmer" />
<hotspot name="spot6" onhover="showtext(Zur Sauna)" style="skin_hotspotstyle" ath="277.763" atv="0.102" linkedscene="scene_sauna" />
<hotspot name="speisekarte" onhover="showtext(Zeige Speisekarte)"
onclick="set(plugin[speisekarte].visible, true">
<point ath="104.17" atv="7.23" />
<point ath="113.27" atv="6.82" />
<point ath="115.46" atv="13.47" />
<point ath="104.37" atv="13.94" />
</hotspot>
</scene>
<scene name="scene_Restaurant" title="Restaurant" onstart="" thumburl="panos/Restaurant.tiles/thumb.jpg" lat="" lng="" heading="">
<view hlookat="0" vlookat="0" fovtype="MFOV" fov="120" maxpixelzoom="2.0" fovmin="70" fovmax="140" limitview="auto" />
<preview url="panos/Restaurant.tiles/preview.jpg" />
<image>
<cube url="panos/Restaurant.tiles/pano_%s.jpg" />
<mobile>
<cube url="panos/Restaurant.tiles/mobile_%s.jpg" />
</mobile>
</image>
<!-- place your scene hotspots here -->
<hotspot name="spot1" onhover="showtext(Zum Empfang)" style="skin_hotspotstyle" ath="-157.669" atv="23.880" linkedscene="scene_empfang" />
</scene>
<scene name="scene_Sauna" title="Sauna" onstart="" thumburl="panos/Sauna.tiles/thumb.jpg" lat="" lng="" heading="">
<view hlookat="0" vlookat="0" fovtype="MFOV" fov="120" maxpixelzoom="2.0" fovmin="70" fovmax="140" limitview="auto" />
<preview url="panos/Sauna.tiles/preview.jpg" />
<image>
<cube url="panos/Sauna.tiles/pano_%s.jpg" />
<mobile>
<cube url="panos/Sauna.tiles/mobile_%s.jpg" />
</mobile>
</image>
<!-- place your scene hotspots here -->
<hotspot name="spot1" onhover="showtext(Zum Empfang)" style="skin_hotspotstyle" ath="-107.120" atv="10.516" linkedscene="scene_empfang" />
</scene>
<scene name="scene_Speisesaal" title="Speisesaal" onstart="" thumburl="panos/Speisesaal.tiles/thumb.jpg" lat="" lng="" heading="">
<view hlookat="0" vlookat="0" fovtype="MFOV" fov="120" maxpixelzoom="2.0" fovmin="70" fovmax="140" limitview="auto" />
<preview url="panos/Speisesaal.tiles/preview.jpg" />
<image>
<cube url="panos/Speisesaal.tiles/pano_%s.jpg" />
<mobile>
<cube url="panos/Speisesaal.tiles/mobile_%s.jpg" />
</mobile>
</image>
<!-- place your scene hotspots here -->
<hotspot name="spot1" onhover="showtext(Zum Empfang)" style="skin_hotspotstyle" ath="174.681" atv="3.976" linkedscene="scene_empfang" />
</scene>
</krpano>