Sie sind nicht angemeldet.

1

Donnerstag, 2. Dezember 2021, 17:44

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

Freitag, 3. Dezember 2021, 09:41

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

Freitag, 3. Dezember 2021, 10:27

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

Sonntag, 12. Dezember 2021, 17:05

Thanks Klaus,

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


Thanks in advance

6

Dienstag, 14. Dezember 2021, 12:01

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

Mittwoch, 15. Dezember 2021, 01:05

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*