Hello community,
I'm trying to load a specific scene for Virtual Tour, i have a virtual tour that contain 8 panoramas, i wanna let the user can select which scene he wanna see, i've used the following in the tour.html
Code
function gup( name ){
name = name.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]");
var regexS = "[\\?&]"+name+"=([^&#]*)";
var regex = new RegExp( regexS );
var results = regex.exec( window.location.href );
if( results == null )
return "";
else
return results[1];
}
var param = gup('vars');
embedpano({swf:"tour.swf", id:"krpanoSWFObject",xml:"tour.xml", target:"pano"});
function krpano()
{
return document.getElementById("krpanoSWFObject");
}
krpano().call("loadscene(" + param + ", null, MERGE, BLEND(0.5));");
Display More
and when i'm calling it in the browser:
(note: this link is for example how i call the tour.html, the link is not online and "scene_H1b" is a scene name).
this works in iPad/iPhone, but in the browser is not working.
Any help will be appreciated.
thx in advance