Hi,
the first one is invalid syntax.
That '.html5' and '.flash' are device checks for xml attributes:
https://krpano.com/docu/xml/#devicechecksforattributes
That can be used only in static xml code when defining attributes - when the check will fit the device, then that attribute will be parsed, otherwise it will be skipped/ignored.
For dynamic code an if() action or the calc() action with the
if ? then-value : else-value operator could be used.
E.g. build the url this way - use the base path and file and depending on html5 or flash add 'js' or 'swf' to the filename:
|
Quellcode
|
1
|
calc(thumbs.url, '%SWFPATH%/plugins/scrollarea.' + (device.html5 ? 'js' : 'swf'));
|
Best regards,
Klaus