<script type="text/javascript">
var vto = document.getElementById("vtour").value;
var vto1 = "../../../static/fileqj/"+vto+"/vtour/tour.xml?v="+Math.random(); //这里记得加个时间戳或者一个随机数
var vars = {};
vars["plugin[vtoureditor].keep"] = true;
embedpano({swf:"../../../static/fileqj/"+vto+"/vtour/tour.swf", xml:vto1, id:"krpanoSWFObject", target:"pano", flash:"auto", html5:"prefer",passQueryParameters:false, vars:vars});
function resize() {
var th = document.getElementById("title").clientHeight;
var ph = (typeof(window.innerHeight) == 'number') ? window.innerHeight : ((document.documentElement && document.documentElement.clientHeight) ?document.documentElement.clientHeight : ((document.body && document.body.clientHeight) ? document.body.clientHeight : 500));
document.getElementById("pano").style.height = (ph-th)+"px";
}
window.onresize = resize;
resize();
</script>
xml会变更数据,所以一开始引入xml的时候增加一个版本号(时间戳或者随机数),从而达到下次加载的不是已经加载过的相同名的xml而进行重新加载xml;