Jareish
05-06-2008, 10:27 AM
Is it possible to link a set of buttons to multiple panorama's and exclude them from other panorama's.
For example I want image1 to be shown at pano1, pano3 and pano4, but never at pano2 and pano5.
Atm I code out all the possibilties.
< spot linked="images/pano1" url="image1.jpg">
< spot linked="images/pano3" url="image1.jpg">
< spot linked="images/pano4" url="image1.jpg">
However this makes the code real messy and big. especially with all kinds off alignment and on Events. If it was just 1 image and a couple of pano's it would be ok. but I've made some sort of navigation map, consisting of 4 images. Pano1 has 2 subpano's (related to it) and a different navigation map then Pano2 with 3 subpano's with a different navigation map etc. You see how this gets messy.
multiple linked parameters in 1 spot dont seem to work, same with semilicons.
This is just for 2 maps (1 of 2 pieces, and 1 of 4) for just 3 pano's of a total of 5 pano's
<spot static="1" salign="BL" alignX="0" alignY="-1"
id="kaartP_1a"
linked="images/pentstad"
url="images/krt_pentstad.png"
alt="Penthouse Stadhouder"
tintColor="#ff0000"
tint="0.7"
onOver="tintColor=#ff0000; tint=0.7;"
/>
<spot static="1" salign="BL" staticY="-70" alignX="0" alignY="-1"
id="kaartP_2a"
linked="images/pentstad"
url="images/krt_penthertog.png"
alt="Penthouse Hertog"
onOver="tintColor=#ff0000; tint=1;"
onOut="tint=0;"
onClick="loadPano(panoName=images/penthertog)"
/>
<spot static="1" salign="BL" alignX="0" alignY="-1"
id="kaartP_1b"
linked="images/penthertog"
url="images/pent_stad.png"
alt="Penthouse Stadhouder"
onOver="tintColor=#ff0000; tint=1;"
onOut="tint=0;"
onClick="loadPano(panoName=images/pentstad)"
/>
<spot static="1" salign="BL" staticY="-70" alignX="0" alignY="-1"
id="kaart_2b"
linked="images/penthertog"
url="images/pent_hertog.png"
alt="Penthouse Hertog"
tintColor="#ff0000"
tint="0.7"
onOver="tintColor=#ff0000; tint=0.7;"
/>
<spot static="1" salign="BL" alignX="0" alignY="-1"
id="kaartA_1a"
linked="images/appmarkies"
url="images/krt_markies.png"
alt="Appartement Markies"
onOver="tintColor=#ff0000; tint=1;"
onOut="tint=0;"
onClick="loadPano(panoName=images/pentstad)"
/>
<spot static="1" salign="BL" staticY="-70" alignX="0" alignY="-1"
id="kaartA_2a"
linked="images/appmarkies"
url="images/krt_burg.png"
alt="Appartement Burggraaf"
tintColor="#ff0000"
tint="0.7"
onOver="tintColor=#ff0000; tint=0.7;"
/>
<spot static="1" salign="BL" alignX="0" alignY="-1"
id="kaartA_3a"
linked="images/appmarkies"
url="images/krt_land.png"
alt="Appartement Landsheer"
onOver="tintColor=#ff0000; tint=0.7;"
onOut="tint=0;"
onClick="loadPano(panoName=images/pentstad)"
/>
<spot static="1" salign="BL" staticY="-70" alignX="0" alignY="-1"
id="kaartA_4a"
linked="images/appmarkies"
url="images/krt_app.png"
tintColor="#ff0000"
tint="0.7"
onOver="tintColor=#ff0000; tint=0.0;"
/>
I have to do something similar with buttons too. Show a set of 4 buttons at pano1 through pano4, and a set of 3 buttons to pano5 through pano7.
Is there an easier way, well a more cleaner way cause it aint hard, to do this
For example I want image1 to be shown at pano1, pano3 and pano4, but never at pano2 and pano5.
Atm I code out all the possibilties.
< spot linked="images/pano1" url="image1.jpg">
< spot linked="images/pano3" url="image1.jpg">
< spot linked="images/pano4" url="image1.jpg">
However this makes the code real messy and big. especially with all kinds off alignment and on Events. If it was just 1 image and a couple of pano's it would be ok. but I've made some sort of navigation map, consisting of 4 images. Pano1 has 2 subpano's (related to it) and a different navigation map then Pano2 with 3 subpano's with a different navigation map etc. You see how this gets messy.
multiple linked parameters in 1 spot dont seem to work, same with semilicons.
This is just for 2 maps (1 of 2 pieces, and 1 of 4) for just 3 pano's of a total of 5 pano's
<spot static="1" salign="BL" alignX="0" alignY="-1"
id="kaartP_1a"
linked="images/pentstad"
url="images/krt_pentstad.png"
alt="Penthouse Stadhouder"
tintColor="#ff0000"
tint="0.7"
onOver="tintColor=#ff0000; tint=0.7;"
/>
<spot static="1" salign="BL" staticY="-70" alignX="0" alignY="-1"
id="kaartP_2a"
linked="images/pentstad"
url="images/krt_penthertog.png"
alt="Penthouse Hertog"
onOver="tintColor=#ff0000; tint=1;"
onOut="tint=0;"
onClick="loadPano(panoName=images/penthertog)"
/>
<spot static="1" salign="BL" alignX="0" alignY="-1"
id="kaartP_1b"
linked="images/penthertog"
url="images/pent_stad.png"
alt="Penthouse Stadhouder"
onOver="tintColor=#ff0000; tint=1;"
onOut="tint=0;"
onClick="loadPano(panoName=images/pentstad)"
/>
<spot static="1" salign="BL" staticY="-70" alignX="0" alignY="-1"
id="kaart_2b"
linked="images/penthertog"
url="images/pent_hertog.png"
alt="Penthouse Hertog"
tintColor="#ff0000"
tint="0.7"
onOver="tintColor=#ff0000; tint=0.7;"
/>
<spot static="1" salign="BL" alignX="0" alignY="-1"
id="kaartA_1a"
linked="images/appmarkies"
url="images/krt_markies.png"
alt="Appartement Markies"
onOver="tintColor=#ff0000; tint=1;"
onOut="tint=0;"
onClick="loadPano(panoName=images/pentstad)"
/>
<spot static="1" salign="BL" staticY="-70" alignX="0" alignY="-1"
id="kaartA_2a"
linked="images/appmarkies"
url="images/krt_burg.png"
alt="Appartement Burggraaf"
tintColor="#ff0000"
tint="0.7"
onOver="tintColor=#ff0000; tint=0.7;"
/>
<spot static="1" salign="BL" alignX="0" alignY="-1"
id="kaartA_3a"
linked="images/appmarkies"
url="images/krt_land.png"
alt="Appartement Landsheer"
onOver="tintColor=#ff0000; tint=0.7;"
onOut="tint=0;"
onClick="loadPano(panoName=images/pentstad)"
/>
<spot static="1" salign="BL" staticY="-70" alignX="0" alignY="-1"
id="kaartA_4a"
linked="images/appmarkies"
url="images/krt_app.png"
tintColor="#ff0000"
tint="0.7"
onOver="tintColor=#ff0000; tint=0.0;"
/>
I have to do something similar with buttons too. Show a set of 4 buttons at pano1 through pano4, and a set of 3 buttons to pano5 through pano7.
Is there an easier way, well a more cleaner way cause it aint hard, to do this