我想把下面的这段代码改成只允许浏览器运行HTML5,不允许使用Flash,请问应该怎么改?
<script>
var viewer = createPanoViewer({swf:"tour.swf", id:"krpanoSWFObject", target:"krpanoDIV", html5:"auto",passQueryParameters:true});
//viewer.useHTML5("whenpossible"); // incomment to use the HTML5 krpanoJS viewer always when possible (Safari5)
if( viewer.isDevice("iPhone|iPod|Android"))
{
//viewer.passQueryParameters("html5","prefer");
viewer.useHTML5("auto");
viewer.addVariable("xml", "tour.xml");
}
else
{
//viewer.useHTML5("prefer+webgl+css3d");
viewer.useHTML5("auto");
viewer.addVariable("xml", "tour.xml");
}
viewer.addParam("wmode", "transparent");
viewer.embed();
</script>
守着星空守着你
相关分类