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

Friday, July 30th 2010, 1:50pm

toggle full screen

I am trying to find the code to toggle to full screen i have seen a few panos with a triangle in the bottom corner i also want to view left and right with zoom in and out all in the same colour black with silver or white text.

any help please


*confused*

2

Wednesday, August 4th 2010, 2:03pm

Hi,

the fullscreen mode can be changed by changing the "fullscreen" varaible,

e.g. to switch to fullscreen:

Source code

1
set(fullscreen,true);


for switching back:

Source code

1
set(fullscreen,false);


to toggle between the two states:

Source code

1
switch(fullscreen);


note - due the flash security restrictions the fullscreen mode can be only changed as reaction to a user input,
that means it will only work in the code from a mouse or keyboard event,

e.g.

Source code

1
<plugin .... onclick="switch(fullscreen);" ... />


best regards,
Klaus

3

Thursday, August 5th 2010, 9:08am

Hi there,
I have another problem with fullscreen. When pano is in fullscreen and I call action wait(1000); If I exit fullscreen by pressing key ESC, the action exitfs(); in krpano event onexitfullscreen isn't called. Function exitfs is called later, when I click somewhere - called by oninterrupt event.
I think the event oninterrupt(exitfs()) should be called when I press ESC. Is it possible or is there any hack?


onexitfullscreen="exitfs();"
...
set(fullscreen, true);
oninterrupt(exitfs(););
wait(1000);

Thanks in advance

4

Tuesday, August 10th 2010, 8:34am

Hi,

you could try:

Source code

1
onexitfullscreen="breakall(); exitfs();"

or:

Source code

1
onexitfullscreen="stopall(); exitfs();"


this should stop the wait,

best regards,
Klaus

Similar threads