Sie sind nicht angemeldet.

1

Donnerstag, 25. Oktober 2012, 16:59

hyperlink in scrolling text field?

Hello,

I'm looking at the scrollingtextfield.xml example I am trying to figure out how to put a simple hyperlink in there. Is it possible? I tried several ways including this

Quellcode

1
2
3
4
5
<data name="testtext">
		start text test text test text test text test[br/]
		[a href="http://google.com"]Google[/a][br/]
		text test text test text test text[br/]
</data>


Also how do you get the text window to open and close? I don't want it there all the time. I'd like it to open when a info icon is clicked and then have an x on the scrolling text box to close it.

Thanks in advance.

Rich

Tuur

Erleuchteter

Beiträge: 3 839

Wohnort: Netherlands

Beruf: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer

  • Nachricht senden

2

Donnerstag, 25. Oktober 2012, 17:53

Hi,

Try

<a href="events:openurl(blablabla)"> link</a>

or so
Or do a search for link in textfield *g*

Tuur *thumbsup*

3

Donnerstag, 25. Oktober 2012, 23:23

Hi Tuur,

Thanks for the reply.

Yes, I tried that and it doesn't work. A regular hyperlink works for html5 version but I can't seem to get a link in the scrolling text box in the Flash version.

I did search a bit before posting. The only thing I found was a note under the documentation saying that html support was very limited. There is a href example that I was trying to work with: http://krpano.com/plugins/textfield/#attributes

I think I am just missing a piece to get it to work. Specifically the action, but the documentation doesn't show that part.

Thanks

Rich

Beiträge: 1 857

Beruf: Virtual Tours - Photography - Krpano developer

  • Nachricht senden

4

Freitag, 26. Oktober 2012, 01:19

You need to post a link to your example that doesn't work. Most likely the reason is that your krpano is many months old. Tuur's syntax should work in html5. I have no problems with opening links in either syntax.
KRPano Developer: Portfolio ::Gigapixel Tagging Solutions - Porfolio 2 :: Facebook :: Twitter :: reddit.com/r/VirtualTour

5

Freitag, 26. Oktober 2012, 15:12

Hi,

Thanks for your reply. Yeah, its an odd one. I thought placing a link in the scrolling text field should be rather straight forward. I am using the latest version of KRPano. The links works in html 5 just not in Flash version. Here is my link.

Thanks

Rich

Beiträge: 1 857

Beruf: Virtual Tours - Photography - Krpano developer

  • Nachricht senden

6

Samstag, 27. Oktober 2012, 07:10

Then switch to the event syntax. It will work for both js and flash now.
KRPano Developer: Portfolio ::Gigapixel Tagging Solutions - Porfolio 2 :: Facebook :: Twitter :: reddit.com/r/VirtualTour

7

Samstag, 27. Oktober 2012, 16:26

When the text itself should be not select- and clickable, then the plugin/layer children setting should be set to false.

8

Samstag, 27. Oktober 2012, 18:18

try with this

<a href="#" onclick="http:// yoururl.html">Link</a>

9

Freitag, 2. November 2012, 15:12

Hi Job.1,

Thank you for your suggestion, but this does not work in either Flash or HTML5 version.

Does anyone have an example of a link in the scrolling text box?

Thanks to all who have replied.

Rich

Ähnliche Themen