PDA

View Full Version : More than two panoramas in same page?


Gabs
06-02-2009, 07:01 PM
How do I add more than 2 panoramas in one page? I would like to display pano1 or pano2 alternatively depending on the choices the visitor does. So the pano will be loaded into the same div. When i try that IE shows the:

"
1913
J.parentNode is null or not an object
"

Using
<script type="text/javascript" src="aef_files/swfobject.js"></script>
<script type="text/javascript" src="aef2_files/swfobject2.js"></script>

<script type="text/javascript">
var flashvars = {};
flashvars.xml_file = "aef_files/xml/aef.xml";
var flashvars2 = {};
flashvars2.xml_file = "aef2_files/xml/aef2.xml";

var params = {};
params.scale = "scale";
params.allowfullscreen = "true";
params.allowscriptaccess = "sameDomain";
var attributes = {};
</script>

later on

swfobject.embedSWF("aef_files/pano.swf", "content2", "700px", "350px", "9.0.124", false, flashvars2, params, attributes);;
swfobject2.embedSWF("aef2_files/pano.swf", "content2", "700px", "350px", "9.0.124", false, flashvars2, params, attributes);;

allSaints
06-03-2009, 07:19 AM
And you do have the <div id="content2"> defined on the page?

Tommy