Sie sind nicht angemeldet.

1

Dienstag, 17. Juli 2012, 05:53

TextField ignoring style tags

I have a question regarding the TextField plugin, when using the style tag inside any html tag... it seems like the plugin is ignoring them. For example I have the following script:

Quellcode

1
2
3
4
5
6
7
8
9
10
11
12
<plugin name="newhotspot2P" url="%SWFPATH%/plugins/textfield.swf" align="center" width="500" height="300" x="0" y="-1100" visible="false" html="data:newhotspot2D" css="data:newhotspot2C" roundedge="0" borderwidth="1" textcolor="0x000000" bordercolor="0xFFFFFF" backgroundcolor="0xFFFFFF" selectable="false" shadow="5" autosize="center" keep="true"/>
<data name="newhotspot2D"><div style="border: 1px solid black; width: 500px;height:250px;">
				   <div style="border: 1px solid black;float: left; width: 350px;height: 100%"/>
						<div style="border: 1px solid black;float: left; width: 145px;height: 100%">
							<img src="" style="border: 1px solid black;margin: 10px; width: 100px;"/>
							<img src="" style="border: 1px solid black;margin: 10px;"/>
							<img src="" style="border: 1px solid black;margin: 10px;"/>
						</div>
				</div>
<div>Esta nota de krpano el drag lo hace muy suave, hay que mover bastante en direccion vertical para que coja</div>
</data>
</scene>


The only part that's shown on screen is the last div from the data tag.

Quellcode

1
<div>Esta nota de krpano el drag lo hace muy suave, hay que mover bastante en direccion vertical para que coja</div>
. Why is happening this? Thanks a lot.

2

Mittwoch, 18. Juli 2012, 15:28

Ok, so the problem as stated in the textfield plugin page, is that actually div tags aren't suuported on the plugin. However.. I have seen other posts where the html tag in fact contains some div elements like this: "html=[div style="float:left;"]", my guess is that onlye the HTML 5 version of textfield supports that. I am correct??? If so... how could I force the krpano viewer to use only the html5 textfiel version regarding if it's running on a desktop machine or tablet?

Beiträge: 1 857

Beruf: Virtual Tours - Photography - Krpano developer

  • Nachricht senden

3

Mittwoch, 18. Juli 2012, 16:12

You can't mix and match flash and js krpano plugins.
use p and other tags and classes
instead
html:
<p class="class1">
css:
p.class1{border: 1px solid black;float: left; width: 350px;height: 100%}

etc

Here's some reading material.
http://republicofcode.com/tutorials/flash/css/
http://www.actionscript.org/resources/ar…2004/Page1.html
KRPano Developer: Portfolio ::Gigapixel Tagging Solutions - Porfolio 2 :: Facebook :: Twitter :: reddit.com/r/VirtualTour

Ähnliche Themen