• this is from Ceeby's Bungalow tour I have seen many of you others use this as well. http://www.circutour.com/bungalow/ I have my infomation box drop down onstart just like his tour however I cannot find a way to disable the onstart after its first load. if i leave my starting pano and come back it onstarts again. I just want it to load the first time and then disable it until it is called on by my information icon. Ceeby's tour runs the way I want mine to but I cannot see his code. Any help anyone? I almost have my first professional tour complete and this is holding me up.

  • Hi,

    which "onstart" do you want to disable?

    1. have you defined a onstart on every pano xml (<krpano onstart="...">) and don't want to execute it?

    or

    2. do you mean the "onstart" parameter of the loadpano() action?


    for the 1. type:
    when you load a other xml, which has "onstart" attribute, this "onstart" will be
    overwritten when you add calls as 4. parameter OR after the loadpano() call,

    e.g. - here a action is called after loadpano():

    Code
    onclick="loadpano(nextpano.xml);action(do_any_thing_instead_of_nextpanos_onstart);"

    this suppresses the onstart of the nextpano.xml,


    or type 2 - when you have already loadpano calls in this format:

    Code
    <action name="combobox:Front Deck">
       loadpano(front.xml,...); wait(blend); lookto(...);"
    </action>

    and want to remove the calls after loadpano(),

    there are more possiblities:

    e.g. split this into 2 actions, and "change" the "content" of the first
    action after the first call:

    in the "front_deck_load" action the "combobox:Front Deck" action
    was changed to only "action(front_deck_load)", that means on the next
    call of "combobox:Front Deck" only the loading code will be executed,

    I hope this was understandable, while witting it down yet,
    it sounds a little bit confusing

    best regards,
    Klaus

Participate now!

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