Hi,
none of these parameters would need to be set... (and basic layout properties also shouldn't be changed)
Anyway to access the iframe element:
- call a Javascript function
- and access the iframe object by 'caller.iframe':
|
Source code
|
1
2
3
4
5
6
7
8
9
10
11
12
13
|
<layer name="layer_iframe"
type="iframe"
iframeurl="https://krpano.com/home/"
align="center" width="800" height="600"
keep="true"
onloaded="do_something_with_the_iframe()"
/>
<action name="do_something_with_the_iframe" type="Javascript"><![CDATA[
var iframe = caller.iframe;
iframe.style.XXX = YYY;
...
]]></action>
|
See also here about the 'caller' object:
https://krpano.com/docu/xml/#action.js
Btw - in your first post example you were trying to use 'layer[layer_iframe].iframe', but that syntax is 'krpano script' code and not Javascript code.
Best regards,
Klaus