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

Thursday, December 2nd 2021, 5:44pm

Div created from js hides in fullscreen

Hello All,

I have this code to call external javasript and call Fucntion onclick "js".


Problem is that on fullscreen div created with js hides or z values on click of div is 2 but in fullscreen it does not show.


Please help i am stuck its urgent. Since long no one ready to answer

Thnaks in advance

<action type="Javascript" autorun="preinit" >


<![CDATA[


var script = document.createElement('script');
script.type = 'text/javascript';
script.src = 'abc.js';
document.head.appendChild(script);



var scripta = document.createElement('script');
scripta.type = 'text/javascript';
scripta.src = 'POWERoperindio.js';
document.head.appendChild(scripta);


var script3 = document.createElement('link');
script3.rel = 'stylesheet';
script3.href = 'shape.css';
document.head.appendChild(script3);


]]>

</action>

2

Friday, December 3rd 2021, 9:41am

I dnt know why no one reply in forum.

This certainly losse popularity of Krpano.



Alhaaasssss


*angry* *huh* *huh* *huh* *huh* *huh* *huh* *huh* *huh* *huh* *huh* *huh*

3

Friday, December 3rd 2021, 10:27am

well, its not very understandable what you want... *rolleyes*
but if you create html content outside of krpano, it probably will not show in fullscreen, yes.
i guess you should use krpano layers and append your content to the layer sprite
https://krpano.com/docu/xml/#layer.sprite

5

Sunday, December 12th 2021, 5:05pm

Thanks Klaus,

One think more how can we make any exernal js to internal to krpano viewer.


Thanks in advance

6

Tuesday, December 14th 2021, 12:01pm

One think more how can we make any exernal js to internal to krpano viewer.

Sorry, I don't understand... what exactly do you mean?

7

Wednesday, December 15th 2021, 1:05am

well, its not very understandable what you want... *rolleyes*
but if you create html content outside of krpano, it probably will not show in fullscreen, yes.
i guess you should use krpano layers and append your content to the layer sprite
https://krpano.com/docu/xml/#layer.sprite
Hello,

Thank for your reply.

Js create div dynamically outside krpano viewer you are correct. Please suggest how i use krpano layers and append my content to the layer sprite.


Some example code simmilar to this.


Thanks in advance for valubale time i know i am asking for extra favour but i am new to krpano and dnt have much experince of pogramming.


Regards *smile*