Hello,
I have a div that contents an image.When we clic on the div, a pano replaces the image.
I use JQuery to replace the content of my div.
All works fine with the flash version of the Vtour. The Vtour starts in the div.
But, with an html5 brother, nothing works. My div is empty...
here is my javacsript function use to replace the content of the div "VirtualTour" :
function showVTour()
{
$('#VirtualTour').empty();
$("#VirtualTour").html('<div id="pani" style="width:701px; height:358px;">');
var viewer = createPanoViewer({swf:"swf/krpano.swf",target:"pani"});
viewer.addVariable("xml", "vtour.xml");
viewer.embed();
}
Thanks for your help
Via360