Sie sind nicht angemeldet.

1

Freitag, 30. Juli 2010, 13:50

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

Mittwoch, 4. August 2010, 14:03

Hi,

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

e.g. to switch to fullscreen:

Quellcode

1
set(fullscreen,true);


for switching back:

Quellcode

1
set(fullscreen,false);


to toggle between the two states:

Quellcode

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.

Quellcode

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


best regards,
Klaus

3

Donnerstag, 5. August 2010, 09:08

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

Dienstag, 10. August 2010, 08:34

Hi,

you could try:

Quellcode

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

or:

Quellcode

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


this should stop the wait,

best regards,
Klaus

Ähnliche Themen