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.

vasin

Trainee

  • "vasin" started this thread

Posts: 92

Location: bangkok

Occupation: photographer

  • Send private message

1

Thursday, January 17th 2013, 5:24am

simple code for displaying text

Hello

I'm sure this is something very simple, but I can't find it in the samples.
I just want to put a simple text on the virtual-tour.

Can anyone provide a code.

Any input will be appreciated.

Thank you!

2

Thursday, January 17th 2013, 10:30am

Hi,

for displaying text, the textfield plugin need to be used.
Please see here:
http://krpano.com/plugins/textfield/#top

Best regards,
Klaus

vasin

Trainee

  • "vasin" started this thread

Posts: 92

Location: bangkok

Occupation: photographer

  • Send private message

3

Friday, January 18th 2013, 7:01am

Klaus

Thank you for your reply


I tried this but, I'm not sure how to customize it and even use it. I use this code below, but it did not show up.

<layer name="text"
url="textfield.swf"
align="topcenter" x="10" y="10" width="100" height="20"
children="false"
html="Everyone knows Millennium Hilton Bangkok for its' beautiful modern design, the generous buffet at Flow, the Thai diner with a contemporary dance show at Maya, the bar that has the panoramic view Bangkok at 360 Bar. But not many know about the Royal suite a destination by itself"
css="..."
autoheight="true"
vcenter="false"
background="false"
backgroundcolor="0xFFFFFF"
backgroundalpha="1.0"
border="false"
bordercolor="0xFFFFFF"
borderalpha="1.0"
borderwidth="1.0"
roundedge="0"
shadow="0.0"
shadowrange="4.0"
shadowangle="45"
shadowcolor="0xFFFFFF"
shadowalpha="1.0"
textshadow="0.0"
textshadowrange="4.0"
textshadowangle="45"
textshadowcolor="0xFFFFFF"
textshadowalpha="1.0"
onautosized="true"
/>

This is what it looks like:
http://www.at-bangkok.com/virtualtours/h…uite/agoda.html


I wanted to have it look like the attached photo. Is it possible? Also I have the xml in the attached file.

Look forward for your reply. Thanks again
vasin has attached the following image:
  • text.jpg
vasin has attached the following file:
  • agoda.xml (8.09 kB - 34 times downloaded - latest: Jul 26th 2019, 5:46pm)

4

Friday, January 18th 2013, 8:07am

I think your code is good. (I just change a little, here and there.) You can see and test from ciul's depanorama site :

http://depanorama.com/DdHBZ3/1

However, you must include keep="true", if you have many scenes. Every layer disappears when new scene is loaded.

Min

ciul

Trainee

Posts: 149

Location: Colombia

Occupation: Creative developer guy

  • Send private message

5

Friday, January 18th 2013, 10:40am

I've just decorated a little bit Heomin61 example.

http://depanorama.com/DdHBZ3/7

Regards,
Ciul

vasin

Trainee

  • "vasin" started this thread

Posts: 92

Location: bangkok

Occupation: photographer

  • Send private message

6

Monday, January 21st 2013, 9:56am

Heomin61 thank you! You've been a great help.
I really appreciated. :)


What about:
- Text color: how can we change text color?
- Show/hide: is it possible?

Taurus

Trainee

Posts: 134

Location: Belarus

Occupation: photographer & virtual tour developer

  • Send private message

7

Tuesday, January 22nd 2013, 11:51am

how change text color and hide + remove(optional)

Source code

1
2
3
4
5
6
<data name="cssdata1">
   a   	{ color:#FF5500; text-decoration:underline; font-weight:bold; }
   a:hover { color:#885500; }
   p   	{ color:#CCCCCC;  font-weight:bold; }
   p:hover { color:#FFFFFF; }
</data>

Source code

1
2
3
4
5
6
7
<data name="htmldata_0">
   <p align="center">
 	<font face="arial" size="24">
   	<b>this is the example of the text spot</b>
 	</font>
   </p>
</data>

Source code

1
2
3
4
5
6
7
<plugin name="text_0" css="data:cssdata1" html="data:htmldata_0"

............
alpha="0"
onloaded="delayedcall(2,tween(alpha,0.6))"
onclick="tween(alpha,0,1.5);delayedcall(2,removeplugin(text_0));"
/>

to show text again your must use button or event
--
in order to comply the word with the affairs, you need to keep quiet and do nothing!

Virtual tour Gomel
Virtual tour
Virtual tour
Elbrus
...

Windows 10x64 & krpano 1.19pr16

vasin

Trainee

  • "vasin" started this thread

Posts: 92

Location: bangkok

Occupation: photographer

  • Send private message

8

Thursday, January 24th 2013, 12:02pm

Looks good thank you Taurus