I have my pano working great but when I load it with IE6 I receive an error stating: "swfkrpanomousewheel.js" is undefined.
My code is as follows:
<script type="text/javascript" src="Flex/swfobject/swfobject.js"></script>
<script type="text/javascript" src="Flex/swfobject/swfkrpanomousewheel.js"></script>
<script type="text/javascript">
if (swfobject.hasFlashPlayerVersion("6.0.0"))
{
var flashvars = {
pano: "<?php echo $jumi[2];?>"
};
var params = {
allowfullscreen: "true",
bgcolor: "#000000"
};
var attributes = {
id: "<?php echo $jumi[1];?>",
name: "my_pano"
};
swfobject.embedSWF("Flex/krpano.swf", "<?php echo $jumi[0];?>", "100%", "400px", "9.0.28", "Flex/swfobject/expressInstall.swf", flashvars, params, attributes);
swfkrpanomousewheel.registerObject("<?php echo $jumi[1];?>");
}
else
{
document.getElementById("<?php echo $jumi[0];?>").innerHTML = '<center>ERROR:<br><br>Adobe Flash Player 9 needed<br><br><br><a href="http://www.adobe.com/go/getflashplayer/" target="_blank"><IMG SRC="http://www.macromedia.com/images/shared/…lash_player.gif" BORDER="1"></a><br>...click here to download...<br><br><br><br></center>';
}
</script>
<div id="<?php echo $jumi[0];?>">
<center>ERROR:<br><br>Javascript not activated<br><br>Javascript is required to see the pano<br><br></center>
</div>