Sie sind nicht angemeldet.

leif

Anfänger

  • »leif« ist der Autor dieses Themas

Beiträge: 20

Wohnort: Oersta, Norway

  • Nachricht senden

1

Freitag, 18. Dezember 2009, 18:04

how do I adjust the height in beta 9 ?

In beta8 and earlier I adjusted the height to 92% like this

// if (typeof(deconcept) !== 'undefined')
{
if (deconcept.SWFObjectUtil.getPlayerVersion().major >= 6)
{
var so = new SWFObject("krpano.swf", "krpanoSWFObject", "100%", "92%", "9.0.28","#000000");

so.addParam("allowFullScreen","true");

so.useExpressInstall("./swfobject/expressinstall.swf");
so.setAttribute("xiRedirectUrl", window.location);

so.addVariable("pano", "orstafranivane.xml");

if ( so.write("krpanoDIV") ) { var mousewheelfixes = new SWFkrpanoMouseWheel(so); }
}
else
{
document.getElementById("krpanoDIV").innerHTML = 'ERROR:

Adobe Flash Player 9 needed



...click here to download...





';
}
}
else
{
document.getElementById("krpanoDIV").innerHTML = 'ERROR:

./swfobject/swfobject.js not found






';
}
// ]]>



In beta9 this is changed (simpified) to:'

// var swf = createswf("krpano.swf");
swf.addVariable("xml","orstafraytrehovden.xml");
swf.embed("krpanoDIV");
// ]]>



And I cannot find a way to adjust the height to e.g. 92%
Do anyone have an idea ?
leif

2

Freitag, 18. Dezember 2009, 19:10

Hi leif,

Try this:

Quellcode

1
2
3
var swf = createswf("krpano.swf","krpanoSWFObject","100%","92%"); 
swf.addVariable("xml","orstafraytrehovden.xml"); 
swf.embed("krpanoDIV"); 


Hope this help.

SAlut.

leif

Anfänger

  • »leif« ist der Autor dieses Themas

Beiträge: 20

Wohnort: Oersta, Norway

  • Nachricht senden

3

Samstag, 19. Dezember 2009, 13:07

It works perfectly. thanx a lot !
the result can be seen at http://www.rundskuer.no/krpano/orstafraytrehovden.html
(btw: it's 3.9 gigapixel)

*smile*