View Full Version : controll bar yes/not
massimo
01-15-2008, 03:16 PM
Using the "open and close" push-buttons to change preview to fullscreen... how can I make that controll bar is only visible on a fullscreen mode and not on a preview?
ciao. massimo.:rolleyes:
zleifr
01-15-2008, 06:14 PM
Not having a link to your tour to see the specifics, I can tell you the general way to do that:
in the global node put onEnterFullscreen="controlBar.visible=1"
and onExitFullscreen="controlBar=0"
That would be the code if control bar is ONE hotspot, which I doubt, so you will probably have to do set the visibility on each hotspot:
onEnterFullscreen="spotA.visible=1; spotB.visible=1; spotC.visible=1;"
Zephyr
massimo
01-16-2008, 02:27 PM
ciao Zephyr...
no it doesn't work :(
please were I have to insert it?
<?xml version='1.0'?>
<panorama>
<parameters>
panoName = images/nature
zoomHome = 0.7
loaderTextColor = #FF6600
loaderBackColor = #000000
loaderText =
layer_3 = files/hotspots.swf
layer_2 = files/openFullscreen.swf
layer_4 = files/glassMeter.swf
</parameters>
<hotspots>
<global
onOver="scale=1.1,600,elastic;depth+=20" onOut="scale=1,300;depth-=20">
<spot id="full" url="images/black_f.png" visible="1"
static="1" depth="0" />
</global>
</hotspots>
</panorama>
zleifr
01-16-2008, 03:18 PM
Can you post a link to the tour? I'm no longer at all certain I understand what you mean by control bar....
Zephyr
massimo
01-16-2008, 05:37 PM
I mean "spot" ... I made an exemle with just one hotspot
on this link : http://www.lenzo.it/test8/
many many thanks.. massimo.
cheathamlane
01-17-2008, 01:21 AM
Ciao Massimo:
Using Zephyr's example, try something like:
<?xml version='1.0'?>
<panorama>
<parameters>
panoName = images/nature
zoomHome = 0.7
loaderTextColor = #FF6600
loaderBackColor = #000000
loaderText =
layer_3 = files/hotspots.swf
layer_2 = files/openFullscreen.swf
layer_4 = files/glassMeter.swf
</parameters>
<hotspots>
<global
onOver="scale=1.1,600,elastic;depth+=20"
onOut="scale=1,300;depth-=20"
onEnterFullscreen="go-full.visible=0;leave-full.visible=1"
onExitFullscreen="leave-full.visible=0;go-full.visible=1"
>
<spot id="go-full" url="images/black_f1.png"
visible="1" static="1" depth="0"
onClick="fullscreen(-)"
/>
<spot id="leave-full" url="images/black_f2.png"
visible="0" static="1" depth="0"
onClick="fullscreen(-)"
/>
</global>
</hotspots>
</panorama>
I just typed that off the top of my head, so you should test it. :)
Cheers,
massimo
01-17-2008, 09:38 AM
ciao Patrick.... no it doesn't work
I also have tried to rename "black_f.png" to "black_f1.png and black_f2.png"
:(
this is the code:
<?xml version='1.0'?>
<panorama>
<parameters>
panoName = images/lucca
zoomHome = 0.7
loaderTextColor = #FF6600
loaderBackColor = #000000
loaderText =
layer_3 = files/hotspots.swf
layer_2 = files/openFullscreen.swf
layer_4 = files/glassMeter.swf
</parameters>
<hotspots>
<global
onOver="scale=1.1,600,elastic;depth+=20" onOut="scale=1,300;depth-=20">
<spot id="full" url="images/black_f.png" static="1" depth="0"
onClick="fullscreen(-)" />
</global>
</hotspots>
</panorama>
cheathamlane
01-17-2008, 02:41 PM
Hi Massimo:
:(
Your code is incomplete! :)
Look inside my <global> element. There are two functions there ("onEnterFullscreen" and "onExitFullscreen").
These functions target two different <spot> elements ("go-full" and "leave-full").
What happens when you try taking my entire piece of XML and using it? Make sure to change the "nature" to "lucca" or whatever your panoname is. Create two different PNG files, one named "black_f1" and one named "black_f2".
?
massimo
01-17-2008, 03:31 PM
OK thanks to Patrick and thanks to Zephyr... I had to make some change but now it works !
This is the code:
<?xml version='1.0'?>
<panorama>
<parameters>
panoName = images/lucca
zoomHome = 0.7
loaderTextColor = #FF6600
loaderBackColor = #000000
loaderText =
layer_3 = files/hotspots.swf
layer_2 = files/openFullscreen.swf
layer_4 = files/glassMeter.swf
</parameters>
<hotspots>
<global
onOver="scale=1.1,600,elastic;depth+=20"
onOut="scale=1,300;depth-=20"
onEnterFullscreen="full.visible=1"
onExitFullscreen="full.visible=0"
>
<spot id="full" url="images/black_f.png"
visible="0" static="1" depth="0"
onClick="fullscreen(-)"
/>
</global>
</hotspots>
</panorama>
massimo
01-17-2008, 03:40 PM
hi patrick
I'm sorry but this is my first experience with xml.
the incomplete code is relative to test8 at www.lenzo.it/test8
Your code made me understend how it has to be... thanks :)
I just posted... do you think it is wrong?
ciao.
cheathamlane
01-17-2008, 04:00 PM
Hi Massimo!
No apologies necessary. :) I know how confusing it all can be...
Glad we could help!
Your code looks fine to me... More importantly, it works. ;)
Cheers,
massimo
01-20-2008, 12:47 AM
Ciao patrik
just to say to you about my first success after 20 days, xml is difficult on the beginning.
ciao thank you again.
http://www.lenzo.it/test12/
vBulletin® v3.7.1, Copyright ©2000-2012, Jelsoft Enterprises Ltd.