Best way to "hide" krpano without unloading .swf

  • Hello Klaus & Co.

    Is it possible to "hide" a krpano window via the Javascript API after its been embedded into a HTML page? Such as sending a call to the KRpano Flash object to set visible=false?

    Currently I can hide a KRpano instance off the screen by changing the css class assigned to the KRpano object in html, but the screen flickers a bit as the browser relocates the krpano object.

    For example, after initializing the Krpano instance with the id of krpanoswf running in the browser window my application calls the following functions to show or hide the krpano object on the screen...

    the swf.classname referenced in the functions are in an external viewer.css file with the following definitions

    If there is a better way to do this, I'd love to know how.

    Thanks for your help. Keep up the good work!

    Lee

    ---

    Lee Evans
    levans@cleartours.com

  • Hi,

    I think just setting the CSS style "display" to "none" for hiding
    and to "inline" for showing would be better

    e.g. - maybe this work (note - untested!)

    best regards,
    Klaus

Participate now!

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