Hello, I'm trying to position layers in relation to hotspots but am running into questions about how to reposition layers when the hotspot is too close to the edge of the screen. For example, by default I have a layer that is aligned 'lefttop' from the hotspot (parent). It works great when I am in fullscreen, when I click on the hotspot the layer (text box) shows up next to it. However when I turn the 360 the hotspot is closer to the edge of the screen and the layer then gets cut off. How do I dynamically place the layer to the opposite side if the hotspot's location is too close to the edge?
Code
<hotspot name="spot1" style="skin_hotspotstyle" ath="10" atv="0" onclick="
set(layer[one].parent, hotspot[spot1]); switch(layer[one].visible);"/>
<layer name="one"
type="text"
align="righttop" x="40" y="0"
html="data:hose"
css="data:textBoxStyles"
autowidth="false"
autoheight="false"
vcenter="false"
padding="30"
wordwrap="true"
bg="true"
bgcolor="0x000000"
bgalpha=".75"
bgborder="0"
bgroundedge="0"
interactivecontent="false"
onautosized=""
visible="false"
onclick="switch(layer[one].visible);"
width="area.width / 3"
height="area.height / 3"
safearea="true"
/>
Alles anzeigen