As said in https://krpano.com/docu/swfkrpanojs/#fu_createPanoViewer that I could add params like:
But it won't work when used param wmode and createPanoViewer function.
Example:
This won't work: http://www.panoraamakuvat.fi/demot/uusi/not_working.html
Code
var viewer = createPanoViewer({swf:"http://www.panoraamakuvat.fi/asiakkaat/krpano.swf",target:"krpano"});
viewer.addParam("allowScriptAccess", "always");
viewer.addVariable("xml", "http://www.panoraamakuvat.fi/asiakkaat/aulacafe_20100604_iphone.xml");
viewer.addParam("wmode", "transparent");
viewer.embed();
This will work: http://www.panoraamakuvat.fi/demot/uusi/
Code
var viewer = createswf("http://www.panoraamakuvat.fi/asiakkaat/krpano.swf");
viewer.addVariable("xml", "http://www.panoraamakuvat.fi/asiakkaat/aulacafe_20100604_iphone.xml");
viewer.addParam("allowScriptAccess", "always");
viewer.addParam("wmode", "transparent");
viewer.embed("krpano");
You can see via Firebug that the wmode isn't passing to the object at all when using createPanoViewer.
I have now hammered my head against the wall about 5 hours while trying to search what is the problem :D And finally found it. (note: transparent images seems to work without wmode with MAC OS X FF and Safari. Not chrome though. Windows requires the wmode with any browser I tested.)
- J