Hi everyone !
I have been experimenting to control a virtual tour by using some external javascript code.
http://estage.ovo.net/EN/360tour.html.
The Javascript code :
Code
<script type="text/javascript">
$(document).ready(function(){
$("#vtnode").click(function(){
var vtplayer =
$("#krpanoSWFObject");
var vtfov=
vtplayer.get("view.fov");
alert('Field of view: ' + vtfov);
vtplayer.call("loadpano('pernettes4.xml',null,MERGE,BLEND(1));");
});
});
</script>
Display More
The
vtplayer object is located successfully, but vtfov is always 'undefined' because the get() call is failing and the call() function is failing too.
Thanks all for your help !
Alexis