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.

stevenChen

Beginner

  • "stevenChen" started this thread

Posts: 18

Location: beijing, china

  • Send private message

1

Tuesday, April 5th 2016, 12:55pm

how to add text hotspot use html without using textfield.swf plugin

hi everyone:
i need to add text hotspot with html, any plgin can use ??
below is using the flash plugin to show the text hotspot:

code in xml:
.......
<hotspot name="textfieldhotspot"
url="textfield.swf"
width="150"
height="100"
ath="0.7747"
atv="-11.2726"
distorted="true" rx="0.0" ry="0.5" rz="0.2"
html="[p]Helo[/p]"
css="p{color:#000000; font-family:Arial; font-weight:bold; font-size:14; margin-left:5; margin-right:5; text-align:center; }"
backgroundcolor="0xFFFFFF"
backgroundalpha="1.0"
roundedge="5" shadow="1" borderwidth="0" glow="4" glowcolor="0xFFFFFF" autosize="center" />
......

the "url" is only support jpg,png,gif and swf; Anyone have a good idea?

thank you

Umalo

Professional

Posts: 1,047

Location: Osijek, Croatia, EU

  • Send private message

2

Tuesday, April 5th 2016, 10:50pm

"In the krpano HTML5 Viewer, the textfield plugin is directly integrated into the viewer itself. "
source: http://krpano.com/plugins/textfield/#top
That mean if you run html5 viewer use internal implementation for placing text.

stevenChen

Beginner

  • "stevenChen" started this thread

Posts: 18

Location: beijing, china

  • Send private message

3

Wednesday, April 6th 2016, 3:10am

reply Umalo

Hi Umalo:

Oh ,i am still do not understand, could you give me some example code ;
and my question is how to add text hotspot without using internal implementation?

thank you

stevenChen

Beginner

  • "stevenChen" started this thread

Posts: 18

Location: beijing, china

  • Send private message

4

Wednesday, April 6th 2016, 8:13am

"In the krpano HTML5 Viewer, the textfield plugin is directly integrated into the viewer itself. "
source: http://krpano.com/plugins/textfield/#top
That mean if you run html5 viewer use internal implementation for placing text.
hi Umalo:
my problem is that i do not known how to set a text to hotspot without using textfield plugin

Umalo

Professional

Posts: 1,047

Location: Osijek, Croatia, EU

  • Send private message

5

Wednesday, April 6th 2016, 9:31am

First, I don't understand what you mean by text hotspot. You want to have text displayed over the hotspot all the time, you want hotstpot to be just a text, or?
Second, what is the reason why not to use textfield as his purspose is to display text?
Other option is to have image with text instead of textfield but I don't think you want to go in this direction
Examples for texts:
http://krpano.com/examples/118/examples/…textstyles.html
http://krpano.com/examples/118/examples/…s/tooltips.html
http://krpano.com/examples/118/examples/…gtextfield.html

EDIT: Reading your other post I realized you need text in non Flash. So, I told you already textfield works in HTML5 as internal viewer implementation so this is the way you should proceed.

stevenChen

Beginner

  • "stevenChen" started this thread

Posts: 18

Location: beijing, china

  • Send private message

6

Wednesday, April 6th 2016, 10:05am

First, I don't understand what you mean by text hotspot. You want to have text displayed over the hotspot all the time, you want hotstpot to be just a text, or?
Second, what is the reason why not to use textfield as his purspose is to display text?
Hi Umalo:
thank you for reply!
first, yes i want hotspot just to be a text;
second, because i want the proglem run in mobile, and it does not need flashplayer,just use html

thank you

stevenChen

Beginner

  • "stevenChen" started this thread

Posts: 18

Location: beijing, china

  • Send private message

7

Wednesday, April 6th 2016, 10:11am

Other option is to have image with text instead of textfield but I don't think you want to go in this direction
yes this option is not adapt to me, because i want get the user input message, then add a hotspot just use the message text
; this is my first step, second I want to achieve a hotspot use both image and text; but i do not find some sample code in offical demo code

thank you