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

Saturday, May 29th 2010, 4:05pm

Einbetten wahlweise mit Autorotate oder Ohne

Hallo,

habe folgenden code zum Einbetten:

Source code

1
2
3
4
5
var swf = createswf("/panos/krpano.swf", "krpanoSWFObject", "100%", "100%",'#ffffff'); 
swf.addVariable("xml","/panos/<?=$file_name;?>.xml");
swf.addVariable("license","/krpano.license");
swf.addVariable("plugin[tutorial].url","/images/tutorial_<?=$this->lang;?>jpg");
swf.embed("panorama");


Wie kann ich dem swf Object den Parameter Autorotate enabled = "false" oder Autorotate enabled = "true" übergeben?
Und ist es möglich diesen Parameter ohne javascript; also im <object><embed> Block zu übergeben? *confused*

Gruß
Alex

2

Tuesday, June 1st 2010, 10:41am

Hi,

z.B:

Source code

1
swf.addVariable("autorotate.enabled","true");


ohne Javascript bei den "flashvars":

Source code

1
2
3
4
5
6
<object ...>
  ...
  <param name="flashvars"   	value="xml=krpano.xml&autorotate.enabled=true">
  <embed ...
     	flashvars="xml=krpano.xml&autorotate.enabled=true" />
</object>


Schöne Grüße,
Klaus