Hide skin on startup, but via vars instead of XML

  • I have a number of tours being created and I don't always have immediate control over the tour.xml.

    Is there any way I can force a minimise of the menu bar, but from the settings/var object when embedding in Javascript, as I do with the autorotate?


    I have played with an "onready" callback but I'm not sure what to hook a skin_hideskin() call up with.

    Thanks
    Martin...

  • Worked it out...

    should it be useful to anyone else:

    PHP
    <script type="text/javascript">         var uid = "<?php echo $UID; ?>";         var settings = {};         settings["autorotate.enabled"] = true;
    
    
            embedpano({            swf: "Krpano.swf",            xml: uid,            target: "pano",            html5: "prefer",            initvars: settings,            passQueryParameters: true,            onready: hidemenu        });
    
    
            function hidemenu(krpano) {             krpano.call("skin_hideskin();");
            }
        </script>

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!