Some time ago I created a virtual tour in flash with 7 "PANO" and many hotspots for interaction. The problem is that now need to see that tour made HTML5/CSS3, I created a copy of the tour in HTML5 to the limitations of the technology, and now I wanted to make the fallback to give visibility to users Ipad / Iphone.
The problem is that the tour being made with differrent provide software to run the following code:
old tour code
Code: Select all
<script type="text/javascript" src="files/swfobject.js"></script>
<script type="text/javascript">
var swfVersionStr = "10.0.0.0";
var xiSwfUrlStr = "files/playerProductInstall.swf";
var flashvars = {};
flashvars.xml_file = "files/xml/DonFilippo.xml";
var params = {};
params.quality = "high";
params.bgcolor = "#ffffff";
params.allowscriptaccess = "sameDomain";
params.allowfullscreen = "true";
var attributes = {};
attributes.id = "DonFilippo";
attributes.name = "DonFilippo";
attributes.align = "middle";
swfobject.embedSWF(
"files/pano.swf", "flashContent",
"100%", "100%",
swfVersionStr, xiSwfUrlStr,
flashvars, params, attributes);
swfobject.createCSS("#flashContent", "display:block;text-align:left;");
</script>
Code: Select all
// use Flash panorama
if (DetectFlashVer(9,0,0)) {
p2q_EmbedFlash('files%2fpano.swf', '1024', '1024',
'bgcolor', '#f0f0f0',
'play', 'true',
'cache','true',
'allowFullscreen','true',
'autoplay','true');
} else { // flash is too old or we can't detect the plugin
document.write('This content requires the Adobe Flash Player Version 9 or higher. ');
}
}
p2q_embed_object.js (pano2vr)
swfobject.js (other software)
I enclose for anyone who is able to understand and / or modify
if you have any ideas let me know ... I'm really going crazy behind this code. (I'm not a programmer).
Thanks to all
I'm sorry for my English is very bad.