Sie sind nicht angemeldet.

1

Mittwoch, 25. April 2018, 09:55

MakeVtour: Change if the name that is shown in the tab of the browser:

I am working witth krpano 1:19-8 and with the makemulirestvtour.

If i open a tour in a browser and change the tab (to any other website but leave the tour open), i can read in the tab something like "krpano - 42 bathroom", if (in this example) one panorama of the tour is calles 42 bathroom.)
But this seems to be random, and stays, if i am on another panorama (or even if i never watched 42 bathroom of the tour).

My cusomer wants to
- always get the name of the current panorama
- not read krpano in this place (sorry klaus)
- if it´s not possible to change, always read the name of his hotel only.

How can i do that?
Thanks

toosten

Fortgeschrittener

Beiträge: 521

Wohnort: Berlin

Beruf: Software-Entwickler bei VR-Easy ( HTML, JS, PHP, krpano, C++, Java )

  • Nachricht senden

2

Mittwoch, 25. April 2018, 11:44

Man kann per Javascript den Titel anpassen:

document.title = "Neuer Titel";

krpano bietet folgende Events:

https://krpano.com/docu/xml/#events.onnewscene
https://krpano.com/docu/xml/#events.onnewpano

Und von krpano kann man Javascript ausführen:

https://krpano.com/docu/actions/#js

Jetzt mußt Du nur die Anzeigedaten entsprechend aufbereiten:

https://krpano.com/docu/actions/#txtadd

3

Mittwoch, 25. April 2018, 18:32

Danke Dir. Ich werde mal versuchen, herauszufinden, wie ich das dann genau einbaue.