
Hi Umalo,Why would you stop the projects by the facts that poligonal hotspots are not HTML5 supported.
You can use regular images to capture events and that's it. Make them aligned with this tutorial if needed. Make them invisible just for catching the mouse/touch events
Example/Tutorial - Extract a Distorted Hotspot from any kind of Pano Image (with perfect pixel alignment)
Example (works on Flash and HTML5 mouse/touchdevices): Example
There is a catch of pixelhittest on transparent part of the image that also capture the events but using smaller images can be nice workaround.
Benutzerinformationen überspringen
Wohnort: Netherlands
Beruf: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer
: https://pame.virtualtuur.com|
|
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 |
<hotspot name="hspt1"
keep="false"
visible="true"
enabled="true"
handcursor="true"
capture="true"
alpha="0.0"
style=""
fillcolor="0xff0000"
fillalpha="0.7"
borderwidth="3.0"
bordercolor="0xff0000"
borderalpha="0.7"
onover=""
onhover="set(hotspot[hspt1].alpha,0.7);"
onout="set(alpha,0.0);"
ondown=""
onup=""
onclick=""
onloaded=""
tooltip="test"
>
<point ath="-118" atv="30" />
<point ath="-139" atv="5" />
<point ath="175" atv="6" />
<point ath="180" atv="22" />
<point ath="165" atv="29" />
</hotspot>
|
Zitat
Hi. I need activate fillcolor to polygonal hotspot when mouse onover
(onhover), but when i do it, it splash for 1 sec red color and then make
default alpha. How to make it correct?
|
|
Quellcode |
1 2 3 4 5 6 |
<hotspot ...
fillcolor="0xFF0000"
onover="tween(fillcolor, 0x0000FF);"
onout="tween(fillcolor, 0xFF0000);"
...
/>
|
A polygonal hotspots has no position by its own, the individual points of the polygon itself are the positions.Would you mind showing me how to get position point element of hotspot(atv, ath)?
No, that's a setting only for image-hotspots and ignored on polygonal hotspots.and Is the 'distorted' valid for polygonal hotspot?
|
|
Quellcode |
1 2 3 4 |
<hotspot name="line1" style="hs" distorted="false" onloaded="set(pstLine,55);" fillcolor="0xFF0000" onover="tween(fillcolor, 0x0000FF);" onout="tween(fillcolor, 0xFF0000);" >
<point name="pnt1" ath="144.0332018882967" atv="32.42610560000334"/>
<point name="pnt2" atv="hotspot[line1].point[pnt1].atv" onloaded="set(hotspot[line1].point[pnt2].ath,hotspot[line1].point[pnt1].ath);add(hotspot[line1].point[pnt1].ath, 5)"/> </hotspot>
<events onclick="showlog(); trace('point1.atv = ', hotspot[line1].point[pnt2].atv, ' | point1.ath = ', hotspot[line1].point[pnt1].ath);" />
|