PDA

View Full Version : Replace button "onClick"


jonick33
02-18-2008, 09:29 AM
Hello everyone...

I've been trying to come up to a solution in order to develop an xml code for a fullscreen button, but with no luck.

All I need to do is when the panorama first loads, a button is available on Top Right corner in order to enterFullscreen.

What I want to do is (just like the way it happens to www.viewat.org) when the user is already in the fullscreen mode, a different icon url will be displayed for the exit fullscreen button which will reside at the same position. Something like turnin on and off visibilities for the two buttons...

Has anyone got any hint upon creating this? I've read the FPP manual but with no luck.

Thanx in advance for any input

Friendly Nikos

jonick33
02-18-2008, 10:43 AM
Well I finally managed it with "openFullscreen.swf" ....


:)

zleifr
02-20-2008, 05:50 PM
You can just use the onenterfullscreen event to switch the url of the hotspot.

<global onenterfullscreen="fullscreenspot.url=path/to/fullscreenImage.png"

And the same thing for on exitfullscreen to switch the image for browser contained tours.

You can also use onclick on the fullscreen hotspot to accomplish the same thing, since obviously someone has to click the spot in order to enter or exit fullscreen.

Zephyr

zleifr
02-20-2008, 06:23 PM
Oh, and I should mention that there is a bug with dynamically switching the url, such that FPP thinks that the new image is still the same size as the old image and so the alignment and positioning are all off. Unless you have the spot aligned to the TOP and LEFT, since FPP calculates alignment and position from the TOP LEFT.