Many questions on how to display some info panels at the opening of each scene.
This is one way how this can be done: Link to online version
Code you can see here: Code
Complete packed project you can download: Here
Enjoy learning
Many questions on how to display some info panels at the opening of each scene.
This is one way how this can be done: Link to online version
Code you can see here: Code
Complete packed project you can download: Here
Enjoy learning
Hello Umalo
I can't follow your explanation of how to show the info_panel. I copied your file on my computer (Dreamweaver) and it works, but it will not work with my panorama. I must be missing something.
Is there some more information on Krpano site. If there is more info under the name show info plugin?
Thanks
Elliot
Hard to say without the code but in general you have to:
- prepare as many infoboxes you want. image name to be info_1.png, info_2.png ... stored in folder /info
- in each scene add attribute: info_name="info_1" if the box for this scene is named info_1. It could be any name if info box image is the same name
- also add onstart="show_info()" in each scene. There are also other ways e.g. with event onnewpano how this call can be achieved. This is only one option.
- info_x.png is to be also stored in /info folder
- don't forget to copy/paste new plugins info_box and info_x and also action show_info
If you are still not able try understanding code first than apply it to your project. Try comparing differences in scene definitions in my example and in your generated code
Hello Umalo
Where do I get the plugins info_box, info_x and show_info
Thanks
Elliot
Download package and explore my code: tour.xml
<plugin name="info_box" ...
<action name="show_info"> ...
you can see it also in the link Code above.
Hello Umalo
Following your instructions I was able to make it work. I don't really understand why it works because I don't see an actual plugin saying info_box among my files.
At any rate it is working in a very fine manner.
Thanks a lot
Elliot
Hello Umalo
I have one more question. Is there a way that we can turn off the info_box based on Time instead of pressing the "X"
Thanks
Elliot
Hello Ummalo
Something interesting has happened. I use Dreamweaver to do my webpage. When I try the page on my local computer everything works. When I load the page on the website the info_box doesn't work.
Any ideas?
Thanks
Elliot
Hello Umalo
I have one more question. Is there a way that we can turn off the info_box based on Time instead of pressing the "X"
Thanks
Elliot
Yes, than you have to use onidle event. Set it to some second and when triggered set off visibility of info_box plugin
Hello Ummalo
Something interesting has happened. I use Dreamweaver to do my webpage. When I try the page on my local computer everything works. When I load the page on the website the info_box doesn't work.
Any ideas?
Thanks
Elliot
Most probably you have some errors in the code. Can you share the link?
Anton
I sent a private email with the link.
Thanks
Elliot
Anton
Thanks for your help. You were right, it was the cookies. We are using Windows 8.1. When you try to clean the cookies on W 8.1 the first line of the options have to be un-checked. If you don't uncheck the first line the machine will not clean the cookies.
Regarding your question Are you able to make event with onidle to turnoff the info box after e.g. 10sec. I have not tried.
That is next. Where is that I have to place the "onidle". Are there any instruction on the Krpano page?
Thanks again for your help
Elliot
You have to find this information on:
- forum e.g. Link
- Documentation: Link
- or in examples folder in krpano package. There are many examples. Without checking but pretty sure you can quickly find some onidle example there.
(online version Link Explore your local version of examples. There is specific eample for events: Link to online version
Link tio code
Don't forget to set idletime and test if counter is reseted when loading new scene or it must be reseted manualy.
Anton
Thanks for the information. I will try to set the timming command next.
I will keep you informed on the progress of this next task.
Thanks
Elliot
"Complete packed project you can download: Here"
Thanks for making info_box code code available. I am finding it very helpful. "fix_infobox_aspectresize" does not seem to be working for iPhone when called from within plugin. Otherwise great thanks
I think you mixed this example with other where I used fix_infobox_aspectresize but anyway glad it help you.
Umalo
P.S. fix_infobox_aspectresize should be called from onresize event and maybe from plugin onloaded attribute so check there when and why it is not triggered.
Thanks for your help and advice.
Don’t have an account yet? Register yourself now and be a part of our community!