Nautama,
whe I understand this correct:
When I create de viewer is where I'd like to modify the "mousetype" variable, but since it doesn't live inside the krpano element I have my doubts:
you would like to dynamically - means from HTML - want to modify more values than given in your "embed" example.
I only see a chance with the <krpano onstart= ...> action.
I use the following
|
Quellcode
|
1
2
|
if( GetStartParam('teasermode')) viewer.addVariable("_br360.teasermode", GetStartParam('teasermode'));
viewer.addVariable("_br360.teaser_alt-pano", "file:///......./MASTER.html");
|
and inside XML:
|
Quellcode
|
1
2
3
4
5
6
|
<action name="XYZ">
if ( _br360.teasermode == ON,
...
txtadd(onclickstring, 'openurl(', get( _br360.teaser_alt-pano ) ,', _blank); ');
set( layer[ clickpane ].onclick, get( onclickstring ) );
|
This PUSHES the values to the viewer.
So you can pass values, but - so my thoughts - but not anymore AFTER the embed statment.
You would have to embed a JS function, that "PULLS" Values called from krpano actions while viewer executes - compare Klaus examples under "javascript-interface" and "js-sync xxx".
Did that help?
cheers