Sie sind nicht angemeldet.

Lieber Besucher, herzlich willkommen bei: krpano.com Forum. Falls dies Ihr erster Besuch auf dieser Seite ist, lesen Sie sich bitte die Hilfe durch. Dort wird Ihnen die Bedienung dieser Seite näher erläutert. Darüber hinaus sollten Sie sich registrieren, um alle Funktionen dieser Seite nutzen zu können. Benutzen Sie das Registrierungsformular, um sich zu registrieren oder informieren Sie sich ausführlich über den Registrierungsvorgang. Falls Sie sich bereits zu einem früheren Zeitpunkt registriert haben, können Sie sich hier anmelden.

1

Freitag, 13. Mai 2011, 18:54

How to show labels for hanging art on Krpano Weingut Example (PLEASE HELP)

Hi Everyone,

I am working from a Krpano example for a client to show art work. I have modified the xml to enable a label to show for the paintings while user mouse is hovering over the painting. I also want it to keep showing the label when the user clicks on painting with the "flyin" action.

Problem:
When I hover over the hotspot of painting, the label shows correctly, but when i click on painting the label returns "null"

Here is a live example with editor so you can see xml... please tell me what i am doing wrong??? *confused*
http://vtg.virtualtourgallery.com/demoto…abel/index.html

Thanks!
Maz
Maz

Virtual Tour Group Inc.
VirtualTourGroup.com

Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »mhobbi01« (13. Mai 2011, 19:28)


2

Montag, 23. Mai 2011, 16:14

Since I ended up not getting an answer on this original question, I revised my Hotspot images to include the label. So when user open up the painting, they will see the painting with a written description.
Maz

Virtual Tour Group Inc.
VirtualTourGroup.com

Tuur

Erleuchteter

Beiträge: 3 839

Wohnort: Netherlands

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

  • Nachricht senden

3

Montag, 23. Mai 2011, 18:42

did you try to add this to the showpic action?

Quellcode

1
set(hotspot[get(pic)].onhover,showlabel(););

*question*

Tuur *thumbsup*

Beiträge: 1 857

Beruf: Virtual Tours - Photography - Krpano developer

  • Nachricht senden

4

Montag, 23. Mai 2011, 19:06

Just look into the code to see whats going on.
The showpic action creates a hotspot.

That hotspot doesn't have the text attached to it.
I'd showpic(hotspotname)

<action name="showpic">

set(hotspot[get(pic)].onhover,'showlabel();');

set(hotspot[get(pic)].text,get(plugin[%1].text));

this is just the theory, probably a typo in here..adjust as you see fit.
KRPano Developer: Portfolio ::Gigapixel Tagging Solutions - Porfolio 2 :: Facebook :: Twitter :: reddit.com/r/VirtualTour

Ähnliche Themen