You are not logged in.

Dear visitor, welcome to krpano.com Forum. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

1

Wednesday, May 25th 2011, 4:12pm

<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!

2

Wednesday, May 25th 2011, 5:47pm

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.

Source code

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


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

best regards,
Klaus

3

Thursday, May 26th 2011, 6:07pm

Many many thanks! Works fine now!