combobox and hotspodts don't work

  • combox.swf and js are both in the root.

    added a combo box and a hot spot to open a url. The arrow to the mouth is the url one and the combo box should be in the upper left corner.

    the upper right logo works fine.

    http://bxbweb.com/test

    <krpano version="1.0.8.15" title="Virtual Tour" onstart="startup();">

    <include url="skin/vtourskin.xml" />

    <!-- set skin settings: bingmaps? gyro? -->
    <skin_settings bingmaps="false" bingmaps_key=""
    gyro="true"
    />

    <!-- set optional skin logo url -->
    <layer name="skin_logo" url="" scale="0.25" opened_onclick="openurl('...',_blank);" />


    <action name="startup">
    if(startscene === null, copy(startscene,scene[0].name));
    loadscene(get(startscene), null, MERGE);
    </action>

    <!-- events - update logo rotation with pano rotation -->
    <events name="nadirlogorotation"
    onviewchange="if(hotspot[nadirlogo].rotatewithview, set(hotspot[nadirlogo].rotate,get(view.hlookat)) );"
    />

    <autorotate enabled="false"
    waittime="1.5"
    accel="1.0"
    speed="5.0"
    horizon="0.0"
    tofov="off"
    />

    <!--************** Logos **********************************************************************-->
    <plugin name="logo4" url="logo4.png" keep="true" align="righttop" x="10" y="10" width="200" height="prop" onclick= "openurl(http://realestate.redhillsmedia.com,_blank)"/>

    <!-- showtext() textstyle -->
    <textstyle name="infostyle"
    origin="center" edge="center" yoffset="-39" textalign="center" background="false" border="false"
    fontsize="40" textcolor="0xFFFFFF" bold="false" effect="glow(0xFFFFFF,0.7,4,2);glow(0x000000,1,4,2);dropshadow(3,45,0x000000,2,0.6);"
    showtime="3.0" fadeintime="1.0" fadetime="1.0"
    />

    <plugin name="cb" url="combobox.swf" alturl="combobox.js"
    align="lefttop" x="10" y="10"
    >
    <item name="item1" caption="Item 1" onclick="openurl(http://realestate.redhillsmedia.com,_blank)" />
    <item name="item2" caption="Item 2" onclick="openurl(http://realestate.redhillsmedia.com,_blank)" />
    <item name="item3" caption="Item 3" onclick="openurl(http://realestate.redhillsmedia.com,_blank)" />

    </plugin>

    <scene name="scene_03_Ken_Austins_car_Collection" title="03_Ken_Austins_car_Collection" onstart="" thumburl="panos/03_Ken_Austins_car_Collection.tiles/thumb.jpg" lat="" lng="" heading="">

    <view hlookat="0" vlookat="0" fovtype="MFOV" fov="120" maxpixelzoom="2.0" fovmin="70" fovmax="140" limitview="auto" />

    <preview url="panos/03_Ken_Austins_car_Collection.tiles/preview.jpg" />

    <image type="CUBE" multires="true" tilesize="512" progressive="false">
    <level tiledimagewidth="2541" tiledimageheight="2541">
    <cube url="panos/03_Ken_Austins_car_Collection.tiles/l3_%s_%v_%h.jpg" />
    </level>
    <level tiledimagewidth="1271" tiledimageheight="1271">
    <cube url="panos/03_Ken_Austins_car_Collection.tiles/l2_%s_%v_%h.jpg" />
    </level>
    <level tiledimagewidth="636" tiledimageheight="636">
    <cube url="panos/03_Ken_Austins_car_Collection.tiles/l1_%s_%v_%h.jpg" />
    </level>
    <mobile>
    <cube url="panos/03_Ken_Austins_car_Collection.tiles/mobile_%s.jpg" />
    </mobile>
    </image>

    <!-- place your scene hotspots here -->

    <!-- nadir logo (distored hotspot) -->
    <hotspot name="nadirlogo"
    url="nadir.png"
    ath="0.000"
    atv="90.000"
    distorted="true"
    scale="1.0"
    rotate="0.0"
    rotatewithview="false"
    onclick="switch(rotatewithview); invalidatescreen();"
    />
    <hotspot name="spot2" style="skin_hotspotstyle" ath="28.425" atv="24.559" linkedscene="scene_04_ken_austins_car_collection" />
    <hotspot name="spot3" style="skin_hotspotstyle" ath="-52.905" atv="13.345" onclick="openurl(http://realestate.redhillsmedia.com,_blank)" />


    </scene>

    <scene name="scene_04_Ken_Austins_car_Collection" title="04_Ken_Austins_car_Collection" onstart="" thumburl="panos/04_Ken_Austins_car_Collection.tiles/thumb.jpg" lat="" lng="" heading="">

    <view hlookat="0" vlookat="0" fovtype="MFOV" fov="120" maxpixelzoom="2.0" fovmin="70" fovmax="140" limitview="auto" />

    <preview url="panos/04_Ken_Austins_car_Collection.tiles/preview.jpg" />

    <image type="CUBE" multires="true" tilesize="512" progressive="false">
    <level tiledimagewidth="2555" tiledimageheight="2555">
    <cube url="panos/04_Ken_Austins_car_Collection.tiles/l3_%s_%v_%h.jpg" />
    </level>
    <level tiledimagewidth="1278" tiledimageheight="1278">
    <cube url="panos/04_Ken_Austins_car_Collection.tiles/l2_%s_%v_%h.jpg" />
    </level>
    <level tiledimagewidth="639" tiledimageheight="639">
    <cube url="panos/04_Ken_Austins_car_Collection.tiles/l1_%s_%v_%h.jpg" />
    </level>
    <mobile>
    <cube url="panos/04_Ken_Austins_car_Collection.tiles/mobile_%s.jpg" />
    </mobile>
    </image>

    <!-- place your scene hotspots here -->

    <!-- nadir logo (distored hotspot) -->
    <hotspot name="nadirlogo"
    url="nadir.png"
    ath="0"
    atv="90"
    distorted="true"
    scale="1.0"
    rotate="0.0"
    rotatewithview="false"
    onclick="switch(rotatewithview); invalidatescreen();"
    />


    </scene>


    </krpano>

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!