Hallo,
Ich habe ein Problem, Ich möchte wie im Test Panorama "Weingut" ein Hotspot machen, der beim anklicken ein Bild meiner Wahl zeigt.
Erst habe ich den Hotspot eingefügt:
<hotspot name="bad"
keep="false"
onclick="showpic();"
visible="true" enabled="true" usecontentsize="false" handcursor="true" capture="true" children="true"
zorder="0"
fillcolor ="0xffffff" fillalpha ="0.00" borderwidth ="0.0" bordercolor ="0xffffff" borderalpha ="0.00"
fillcolorhover="0xffffff" fillalphahover="0.10" borderwidthhover="4.0" bordercolorhover="0xffffff" borderalphahover="0.80"
fadeintime="0.150" fadeouttime="0.300" fadeincurve="1.100" fadeoutcurve="0.700"
>
<point ath="-80.6430" atv="-17.1694" />
<point ath="-73.4563" atv="-23.0945" />
<point ath="-74.0251" atv=" 27.9853" />
<point ath="-77.4320" atv=" 30.0336" />
<point ath="-78.7361" atv=" 34.3545" />
<point ath="-78.3949" atv=" 40.9619" />
<point ath="-80.6582" atv=" 38.5435" />
<point ath="-80.2542" atv=" 25.5845" />
</hotspot>
und dann die action "showpic" vom Test-pano "Weingut" eingefügt:
<action name="showpic">
<!-- creates a new hotspot and fly it out -->
if(hotspot[bad] === null,
txtadd(picfilename,'%CURRENTXML%/dzd-bad.jpg');
addhotspot(bad);
getcenter(hsath,hsatv);
copy(hotspot[bad].ath, hsath);
copy(hotspot[bad].atv, hsatv);
set(hotspot[bad].visible,false);
set(hotspot[bad].distorted,true);
set(hotspot[bad].zorder,2);
set(hotspot[bad].scale,0.1);
set(hotspot[bad].alpha,0.0);
<!--set(hotspot[get(pic)].effect,glow(0xFFFFFF,1.0,30,10000);dropshadow(10,45,0x000000,10,0.3););-->
set(hotspot[bad].onloaded, flyin(get(name)) );
set(hotspot[bad].onclick, flyout(get(name)) );
copy(hotspot[bad].url,picfilename);
,
flyin(get(pic));
);
</action>
Aber ich weiss nicht was ich dort einstellen soll damit es funktioniert
Das Bild heisst: dzd-bad.jpg und ist im gleichen Ordner wie das xml
Ich hoffe ihr könnt mir helfen.