Hi,
I want to add pano (base.xml) for some plugin, and load some sphere images dynamic , therefore, I add variable in the swfobject. source code:
HTML
<html>
<head>
<script type="text/javascript"
src="scripts/swfobject.js">
</script>
<script type="text/javascript"
src="scripts/swfkrpanomousewheel.js">
</script>
<script type="text/javascript">
if (swfobject.hasFlashPlayerVersion("6.0.0"))
{
swfobject.embedSWF("krpano.swf", "krpano",
"640", "480", "9.0.28",
"scripts/expressInstall.swf",
{pano:"base.xml"},
{sphere:"medias/<?=$image?>.jpg"},
{allowfullscreen:true, bgcolor:"#000000"},
{id:'krpano', name:'krpano'});
swfkrpanomousewheel.registerObject("krpano");
}
else
{
document.getElementById("krpano").innerHTML =
'Flash Player 9 needed';
}
</script>
</head>
<body>
<div id="krpano">
<noscript>ERROR: no Javascript</noscript>
</div>
</body>
</html>
Alles anzeigen
But when I loaded the page, the image {sphere:"medias/<?=$image?>.jpg"} is not loaded into krpano, how to load pano and sphere(not define in xml file) at same time?