Hello
Im trying to embed a krpano version of a tour if ios is detected. Cant get it to work. Ive got the code below so far.
I dont know how to construct the krpano embed statment.I need it to emulate what you can see in the fpp flash instruction you can see in the 'else' bit
Code
<script>
var ua = String(navigator.userAgent).toLowerCase();
if(ua.indexOf("iphone")>=0 || ua.indexOf("ipod")>=0 || ua.indexOf("ipad")>=0)
{
// embedpano the krpano viewer (it will load the html5 viewer automatically here)
embedpano({swf:"ios/tour.swf", xml:"ios/tour.xml", target:"ios/pano"});
}
else
{
var so = new SWFObject("tour.swf", "tour", "960", "327", "8");
so.addParam("allowFullScreen","true");
so.addParam("scale", "noscale");
so.addParam("wmode", "opaque");
so.addVariable("xml_file","tour_virtual_tours.xml");
so.addParam("allowScriptAccess","sameDomain");
so.addParam ("bgcolor", "#000000");
so.write("flashcontent");
}
</script>
Display More
Thanks a lot in advance for any help
Masten