For embedding a flash object into a HTML site there are many possiblites,
here are some methods:
<object width="640" height="480"> <param name="movie" value="krpano.swf"> <embed src="krpano.swf" width="640" height="480"> </embed> </object>Note: This is the minimum code you need to embed a Flash movie in a browser. A broken icon will appear on the Web page if the user does not have the Flash plug-in installed. In the code above there is both an <embed> tag and an <object> tag. Because the <object> tag is recognized by Internet Explorer, and other browsers recognize the <embed> tag and ignores the <object> tag.
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/ ...linebreak...
...continueline... cabs/flash/swflash.cab#version=9,0,28,0"
height="100%" width="100%">
<param name="movie" value="krpano.swf">
<param name="flashvars" value="pano=krpano.xml">
<param name="allowFullScreen" value="true">
<embed src="krpano.swf"
pluginspage="http://www.macromedia.com/go/getflashplayer"
height="100%" width="100%" allowFullScreen="true"
flashvars="pano=krpano.xml" />
</object>
<div id="krpanoDIV">
<noscript>ERROR: no Javascript</noscript>
</div>
<script type="text/javascript" src="./swfobject/swfobject.js">
</script>
<script type="text/javascript" src="./swfobject/swfkrpanomousewheel.js">
</script>
<script type="text/javascript">
// <![CDATA[
if (typeof(deconcept) !== 'undefined' &&
deconcept.SWFObjectUtil.getPlayerVersion().major >= 6)
{
var so = new SWFObject("krpano.swf", "krpanoSWFObject",
"640", "480", "9.0.28","#000000");
so.addParam("allowFullScreen","true");
so.addVariable("pano", "krpano.xml");
so.useExpressInstall("./swfobject/expressinstall.swf");
so.setAttribute("xiRedirectUrl", window.location);
if ( so.write("krpanoDIV") )
{ var mousewheelfixes = new SWFkrpanoMouseWheel(so); }
}
else
{
document.getElementById("krpanoDIV").innerHTML =
'Flash Player 9 needed';
}
// ]]>
</script>
<html>
<head>
<script type="text/javascript"
src="swfobject21/swfobject.js">
</script>
<script type="text/javascript"
src="swfobject21/swfkrpanomousewheel.js">
</script>
<script type="text/javascript">
if (swfobject.hasFlashPlayerVersion("6.0.0"))
{
swfobject.embedSWF("krpano.swf", "krpano",
"640", "480", "9.0.28",
"swfobject21/expressInstall.swf",
{pano:"test.xml"},
{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>