hi, how i can add one or more button in a popup image layer?
I need to add "close button" and "go to url button" in the bottom of the image box.
Thanks.
hi, how i can add one or more button in a popup image layer?
I need to add "close button" and "go to url button" in the bottom of the image box.
Thanks.
any idea?
thanks.
Your popup image is layer. Add sublayer with layers where buttons are defined or as separate layers with parent="your_popoup_image"
Explore examples: https://krpano.com/examples/interface/#top
Thanks!
..now comes the tricky part, i have this code for my image popup, how i can add a function for my button?
I need that on every image, in the bottom left there is one button with a variable onclick url from button to button.
How i can do that?
<textstyle name="style1" font="Arial" fontsize="18" background="false" border="false" textcolor="0xffffff" effect="glow(0x000000);" textalign="center" />
<layer name="bg" type="container" keep="true" visible="false" bgcolor="0x000000" bgalpha="0.8" align="lefttop" width="100%" height="100%"/>
<action name="popup">
txtadd(imagetopopup,'popupimage',%2);
if(%1 == true,
set(layer[bg].visible,true);
set(layer[get(imagetopopup)].visible,true);
tween(layer[get(imagetopopup)].alpha,1.0,0.5);
,
tween(layer[get(imagetopopup)].alpha,0,0.5,default,set(visible,false));
set(layer[bg].visible,false); );
</action>
......
..........
.............
<!-- place your popup here -->
<layer name="popupimage1" url="schede/infoespositori.png" align="center" width="70%" height="prop" visible="false" alpha="0" onclick="popup(false,1);" />
<hotspot name="q1" url="JP/JP_info-icon.png" ath="-60.778" atv="29.869" scale="1" onhover="showtext(DOUTDESign 2014 - Info Espositori, style1);" onclick="popup(true,1);" />
wow is exactly what I was looking for, now I just have to understand how it works.
thanks for now, if I do not understand something I write to you.
Have a nice day
Hi, sorry for refreshing the post but I must ask:
How can I set the maximum height/width of the opening image? Is it possible?
Explore here if it is up to layer related limitations
Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!