![]() |
|
|
|
|
|
||||||||||
|
| User list | Rules | You are not logged in.
I am a newbie for all this coding and I was wondering if you could help me out with a problem I came across. I actually do not know any coding. But I read online and try to come up with solutions.
I have attached a screenshot and as you can see I have 3 combo boxes or drop down lists
and my question is if i click on the dropdown list on top left i get 2 options to choose from, say 1. smoking and 2. non smoking
and I need to show only combobox01 when I click on smoking and hide combobox02
and when I click on non smoking I need to show only combobox02 and hide combobox01
can this be done?
any help will be greatly appreciated
Thanks in advance
this is the code i have used.
<plugin name="combobox" url="Grand-Apartment-Suitedata/graphics/combobox.swf" preload="true" alturl="Grand-Apartment-Suitedata/graphics/combobox.js" keep="true" align="lefttop" x="10" y="10"> <item name="combobox5" caption="smoking" onClick="mainloadpano(Grand-Courtyard-Standard0.xml);selectIdItem(combobox02);"/> <item name="combobox6" caption="non smoking" onClick="mainloadpano(Grand-Apartment-Suite0.xml);selectIdItem(combobox01)"/> </plugin> <plugin name="combobox01" url="Grand-Apartment-Suitedata/graphics/combobox01.swf" preload="true" alturl="Grand-Apartment-Suitedata/graphics/combobox.js" keep="true" align="rightbottom" x="10" y="40"> <item name="combobox0" caption="Apartment Suite Bedroom" onClick="mainloadpano(Grand-Apartment-Suite0.xml);"/> <item name="combobox1" caption="Apartment Suite Living" onClick="mainloadpano(Grand-Apartment-Suite1.xml);"/> <item name="combobox2" caption="Apartment Suite Washroom" onClick="mainloadpano(Grand-Apartment-Suite2.xml);"/> </plugin> <plugin name="combobox02" url="Grand-Apartment-Suitedata/graphics/combobox02.swf" preload="true" alturl="Grand-Apartment-Suitedata/graphics/combobox.js" keep="true" align="rightbottom" x="10" y="10"> <item name="combobox3" caption="Courtyard-Standard" onClick="mainloadpano(Grand-Courtyard-Standard0.xml);"/> <item name="combobox4" caption="Courtyard-Standard Washroom" onClick="mainloadpano(Grand-Courtyard-Standard1.xml);"/> </plugin> <action name="closeglobalobjects"/> <action name="interruptAnimation">
Offline
Hi. I think I know what you mean... At the moment your combo boxes are in the main xml file.. This means that they all show.. However, if you copy and past the xml code into the relevant xml pano files, then you only get to see that drop-down in those panos.. You can also locate all your drop-downs at the same location... top left..
I think this is what you were asking..
Destiny..
Online
bdd wrote:
Instead of using "selectIdItem" in the "combobox5" and "combobox6" items. Use the following
set(plugin[combobox01].visible, true);set(plugin[combobox02].visible, false);
Thanks bdd,
This was exactly what I was looking for.. You are a life saver. And thanks for your reply too destiny, I admire your work. Wish I could code like you guys...
Thanks alot..
Offline
small problem though.. if you look at this link http://230virtual.com/Grand-Apartment-S … Suite.html you will see that at the beginning of the tour both combo boxes at the bottom are visible. is there something we could do to show only one combobox??
Offline
Destiny wrote:
Hi. I think I know what you mean... At the moment your combo boxes are in the main xml file.. This means that they all show.. However, if you copy and past the xml code into the relevant xml pano files, then you only get to see that drop-down in those panos.. You can also locate all your drop-downs at the same location... top left..
I think this is what you were asking..
Destiny..
I also tried your method destiny and it worked, but the problem is if I have like 30 to 40 clips to show then I'll have to put that code in each and every xml which will take quite some time.
Offline
Happy coding..
Well, there is probably an easier way via cleaver coding from the main which Gérald can explain much better, but this way its simple, easy to understand and as you can see will works.. Its probably not the best way but its not so bad to add or delete but you do have to do a lot of copy and pasting... Use your mouse keys, like select the code, Ctr C, Ctr P.. Open up all the xml pages in one go that need that code and go for it.. ![]()
Destiny.
Online
Actually there might be a better way... You could create two main xml files. It will then mean you have to add just one extra link to that combobox tour. That way you keep it all very tidy. But you also have to add an extra link to the second combobox back to the first maim xml file. Pity you cannot change the colours on mouse over on the combobox... I love this feature but not as it is.. Its sadly lacking features and options..
Just open up your Main xml, save as virtualtourX and change the start virtual tour at the xml number you want, 10 for example..
So the second Main xml will have:
<!--************** Open the first pano ********************************************************-->
<include url="virtualtour10.xml"/>
<autorotate enabled="false"/>
I haven't tried this but it seem doable.. ![]()
Destiny..
Online
Destiny wrote:
Actually there might be a better way... You could create two main xml files. It will then mean you have to add just one extra link to that combobox tour. That way you keep it all very tidy. But you also have to add an extra link to the second combobox back to the first maim xml file. Pity you cannot change the colours on mouse over on the combobox... I love this feature but not as it is.. Its sadly lacking features and options..
Just open up your Main xml, save as virtualtourX and change the start virtual tour at the xml number you want, 10 for example..
So the second Main xml will have:
<!--************** Open the first pano ********************************************************-->
<include url="virtualtour10.xml"/>
<autorotate enabled="false"/>
I haven't tried this but it seem doable..
Destiny..
Destiny I found a way to do it. It was very simple I just had to put this in. I don't know the technical words but here's the code . I just went through KRpano documentation and figured it out. thanks for your help
<krpano onstart="hidecombo();" version="1.0.8.14" logkey="false">
<action name="hidecombo">
set(plugin[combobox02].visible,false);
</action>
p.s - and as for the mouse over color on combo box i replied to an earlier topic on this matter but i dont know if it works here's that thread http://www.kolor.com/forum/t15011-can-i … orama-list
and here's my updated link to the pano tour..
http://230virtual.com/Grand-Apartment-S … Suite.html
Thanks again
Last edited by shane999 (2013-01-24 20:08:49)
Offline
Well done.. Now you just need to get that TV playing.. ![]()
Destiny..
Online
Powered by PunBB
© Copyright 2002–2005 Rickard Andersson
|
CHOOSING KOLOR Why choose Kolor? Which solution to choose? Download a trial Where can I buy? Education |
SOFTWARE Autopano Pro Autopano Giga Panotour Panotour Pro XnView |
ACCESSORIES Training DVD Panobook PROJECTS Paris 26 Gigapixels Yosemite 17 Gigapixels |
COMMUNITY Forums YouTube channel Google+ |
COMPANY Blog About Kolor Resellers Contact Visit us |
PRESS Press center Press review TOOLS My account |
