I create some krpano actions. Could anybody tell me how to
check if the
file of specified name exists in
file system. Perheaps one has to implement such a statement:
if img/abc.jpg exists
|
Quellcode
|
1
|
set(layer[besticon].url, 'img/abc.jpg');
|
otherwise
|
Quellcode
|
1
|
set(layer[besticon].url, 'img/abc.gif');
|
Thank you