You are not logged in.

Dear visitor, welcome to krpano.com Forum. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

Virtual Northland

Professional

  • "Virtual Northland" started this thread

Posts: 1,336

Location: Duluth MN

  • Send private message

1

Sunday, November 16th 2008, 6:52am

textfield question

I have created a text field that will load a .jpg at 800x600 and then a button to close it at the bottom. This loads from a hotspot I created. It works fine if I open the .html file assocaited with the .xml file i created the text field in. however if I link directly to the .xml file from another pano via hotspot or combobox the textfield will not load. I still can see the same text that is set for "onhover" but when clicking the hotspot the textfield will not load unless it was ran from its .html partner. Why won't my text field open if I link to it from another pano? Here is the code that works as long as it is opened via the .html if I link to this same code directly to the .xml the field will not open.

<krpano version="1.0.7">

<preview type="CUBESTRIP" url="kitcheni.tiles/preview.jpg" />

<image type="SPHERE" multires="true" tilesize="1333" baseindex="1">
<level tiledimagewidth="7998" tiledimageheight="3999" details="32">
<sphere url="kitcheni.tiles/l2_%v_%h.jpg" />
</level>
<level tiledimagewidth="3999" tiledimageheight="2000" details="32">
<sphere url="kitcheni.tiles/l1_%v_%h.jpg" />
</level>
</image>


<!-- textfield hotspot -->
<hotspot name="hs4"
keep="false"
visible="true" enabled="true" 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"
onover=""
onhover="showtext(View close-up of bath)"
onout=""
ondown=""
onup=""
onclick="action(showkitchbath);"
>
<point ath="-173.4761" atv=" 10.4017" />
<point ath="-173.4669" atv=" -7.4677" />
<point ath="-162.2595" atv=" -7.7181" />
<point ath="-162.3668" atv=" 21.2949" />
<point ath="-173.6476" atv=" 21.3113" />
<point ath="-173.6475" atv=" 21.1699" />
</hotspot>

<data name="kitchbathwindow">

<img src="kitchbath.jpg" align="center"/><br /><br /><br /><br /><br />
<br /><br /><br /><br /><br /><br /><br /><br /><br />
<br /><br /><br /><br /><br /><br /><br /><br /><br />
<br /><br /><br /><br /><br /><br /><br /><br /><br />
<br /><br /><br /><br />

<p align="center"><font size="+4"><a href="event:action(hidewindow,kitchbath);"><br />close window</a><br /></font></p>
</data>

<data name="css1">
a { text-decoration:underline; color:#110088; font-weight:bold; }
a:hover { color:#885500; }
</data>


<action name="showkitchbath">
set(plugin[kitchbath].y,-1000);
set(plugin[kitchbath].alpha,1);
set(plugin[kitchbath].textblur,0);
set(plugin[kitchbath].visible,true);
tween(plugin[kitchbath].y,0);
</action>

<action name="hidewindow">
tween(plugin[%1].alpha,0);
tween(plugin[%1].textblur,100,,,set(plugin[%1].visible,false));

</action>

<plugin name="kitchbath" url="../../../plugins/textfield.swf"
visible="false" enabled="true" children="true" handcursor="true"
zorder="" alpha="1.00" blendmode="normal" autopos="" autoscale=""
origin="center" edge="origin" x="0" y="0" width="820" height="575"
onover=""
onhover=""
onout=""
ondown=""
onup=""
onclick=""
html="data:kitchbathwindow"
css="data:css1"
autosize="center"
background=""
backgroundcolor="0xFFFFFF"
bordercolor="0xFFFFFF"
borderwidth="1"
roundedge="0"
selectable="false"
glow=""
blur=""
shadow=""
textglow=""
textblur=""
textshadow=""
/>

</krpano>

Virtual Northland

Professional

  • "Virtual Northland" started this thread

Posts: 1,336

Location: Duluth MN

  • Send private message

2

Monday, November 17th 2008, 1:30am

I figured this one out as well. used a combination of MERGE and "Keep="

Similar threads