I give up for the moment: maybe it's a bug/limitation of Textfield and HTML5... I'll wait next KRPano release to check.
Now, I have to update the online code with something working, so if someone still wants to play with this issue here's the code:
(it works in Flash, DOESN'T work in HTML5)
Code
<layer name="img_bg1"
url="plugins/textfield.swf"
keep="true" type="container" visible="false"
align="center"
width="720" height="605" x="0" y="0" zorder="10"
background="true" backgroundcolor="0xFFFFFF" backgroundalpha="0.7"
roundedge="20">
<layer name="title1"
url="plugins/textfield.swf"
enabled="false"
align="top" edge="top"
width="700" x="0" y="10"
autoheight="true"
background="false"
border="false"
roundedge="10"
css="text-align:left; color:#444444; font-family:Arial; font-size:20px;"
html="[b]TITOLO[/b]"
/>
<layer name="close_img_bg1"
url="plugins/textfield.swf"
enabled="true"
align="topright" edge="topright"
width="30" x="10" y="10"
autoheight="true"
background="true" backgroundcolor="0x000000" backgroundalpha="0.9"
border="false"
roundedge="10"
css="text-align:center; color:#888888; font-family:Arial; font-size:20px;"
html="[b]X[/b]"
onclick="switch(layer[img_bg1].visible); set(layer[info_data1].visible,false);"
/>
<layer name="image1"
url="img/IMG0001.jpg"
enabled="true" type="container"
align="center" edge="center"
x="0" y="0"
background="false"
border="false"
onclick="set(layer[img_bg1].visible,false); set(layer[info_data1].visible,false);">
<layer name="info_data1"
url="plugins/textfield.swf"
type="container" visible="false"
align="bottom" edge="bottom"
width="700" height="110" x="0" y="0"
vcenter="true"
background="true" backgroundcolor="0xFFFFFF" backgroundalpha="0.7"
border="true" bordercolor="0xffffff" borderalpha="1.0"
css="text-align:left; color:#444444; font-family:Arial; font-size:16px;"
html="data:text1"
onclick="set(layer[info_data1].visible,false);">
<layer name="close_info1"
url="plugins/textfield.swf"
align="bottomright" edge="bottomright"
width="20" x="10" y="90"
autoheight="true"
background="true" backgroundcolor="0x000000" backgroundalpha="0.9"
border="true"
roundedge="10"
css="text-align:center; color:#888888; font-family:Arial; font-size:10px;"
html="[b]X[/b]"
onclick="set(layer[info_data1].visible,false);"
/>
</layer>
</layer>
<layer name="info_btn1"
url="plugins/textfield.swf"
enabled="true"
align="bottomleft" edge="bottomleft"
width="65" x="10" y="10"
autoheight="true"
background="true" backgroundcolor="0x000000" backgroundalpha="0.9"
border="false"
roundedge="10"
css="text-align:center; color:#888888; font-family:Arial; font-size:20px;"
html="[b]Info...[/b]"
onclick="switch(layer[info_data1].visible);"
/>
</layer>
<data name="text1">
<b>DIMENSIONI: </b><i>20x30cm</i>
<br/>
<br/>
<b>ANNO: </b><i>2010</i>
<br/>
<br/>
<b> TIPO: </b><i>Pittura</i>
</data>
Display More
Regards,