Thank you! That works.
another javascript full screen question.
I try to let it fullscreen when user click a button
code:
|
Quellcode
|
1
2
3
4
5
6
7
8
9
10
11
|
function krpano() {
return document.getElementById('krpano');
}
function fulls() {
try{
krpano().call("switch(fullscreen);");
}
catch(err) {
alert(err);
}
}
|
but when I click the button, it gives an error:
"Error calling method on NPObject! [plugin exception: Error in Actionscript. Use a try/catch block to find error.]."
What's the problem for this?