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.

1

Wednesday, June 19th 2013, 11:33pm

"BACK" button

It might sound stoopid! this is a request from an older client Is there a way to add a "back button" When pressed it goes back to the last scene viewed. I create virtual tours with a lot of scenes, the last was 180 scenes! Sometimes people get lost or press the wrong button...

Any help would be great!

Posts: 1,082

Location: Russia, Kaliningrad

  • Send private message

2

Thursday, June 20th 2013, 2:28pm

Hi!
Yes it's possible
store current scene name in some variable when load new/next scene
for example
you have hotspot with onclick="loadscene(somescene);"
then do so
onclick="copy(prevscene,xml.scene);loadscene(somescene);"
and in backbutton onclick="loadscene(get(prevscene));"
That's all

Andrey *thumbup*
VRAP - desktop VR content player based on krpano.
Common tasks in one place in one click! Discussion thread
DOWNLOAD for MAC
DOWNLOAD for WIN

3

Friday, June 21st 2013, 12:32am

HI Andrey!

thats a great tip, thank you!

Although I would prefer something that is more global. Each scene may have between 2-13 hotspots, so to add the code for all of them for 100+scene projects would be too laborious...

but thanks for your answer!

Rich

Posts: 1,082

Location: Russia, Kaliningrad

  • Send private message

4

Friday, June 21st 2013, 10:04am

Hi!
You can use some additional action
for example:

action name="hsOnclick"
copy(prevscene,xml.scene);
loadscene(%1);
/action

and in hotspot

onclick="hsOnclick(somescene1);"

or
style name="hsStyle" ..... onclick="hsOnclick(get(linkedscene));"
and
hotspot name="hs2" style="hsStyle" .... linkedscene="somescene1" .... /
hotspot name="hs3" style="hsStyle" .... linkedscene="somescene2" .... /

Andrey *thumbup*
VRAP - desktop VR content player based on krpano.
Common tasks in one place in one click! Discussion thread
DOWNLOAD for MAC
DOWNLOAD for WIN

5

Saturday, June 22nd 2013, 1:21am

Andrey...

Thats clever!

Thank you!