<script> embedpano > Conflict with java menu

  • Hi!

    I am using:


    <script>
    embedpano({swf:"pano.swf",target:"pano"});
    </script>

    But the menu I am using on the page go under the viewer.
    Do you know what kind of code should I use to avoid this?

    Many thanks!

  • Hi,

    the Flashplayer element can't be overlayed by HTML elements by default,
    this has performance reason - the Flashplayer draws directly to the screen,

    but the Flashplayer has a "wmode" parameter to change that,
    e.g. wmode="opaque" or wmode="transparent"

    in both cases the Flashplayer will composite the result with the html page,
    this is slower but HTML element can overlay it,

    to set the wmode parameter you need to use the "createPanoViewer" or "createswf" function,
    these functions have more possibilities,
    e.g.

    Code
    var viewer = createPanoViewer({swf:"krpano.swf",target:"panocontent"});
      viewer.addVariable("xml", "pano.xml");
      viewer.addParam("wmode", "opaque");
      viewer.embed();

    see also here:
    https://krpano.com/docu/swfkrpanojs/

    best regards,
    Klaus

Participate now!

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