I’ve been having a go at embedding Flash objects this way:
kirupa.com - Fixing the Flash/Embed Issue .
It works fine in Firefox, but in Internet Explorer, it doesn’t display Flash objects at all.
This is the HTML I have…:
<body class=“sitemain”>
<table width=“800” border=“0” align=“center” cellpadding=“0” cellspacing=“0” class=“basetable”>
<tr>
<td><table width=“800” border=“0” cellspacing=“0” cellpadding=“0”>
<tr>
<td>**<script type=“text/javascript” src=“flashobject.js”></script>
<div id=“flashcontent1” style=“width: 800px; height: 200px”></div>
<script type=“text/javascript”>
var fo = new FlashObject(“logo.swf”, “animationName”, “800”, “200”, “8”, “#FFFFFF ”);
fo.addParam(“allowScriptAccess”, “sameDomain”);
fo.addParam(“quality”, “high”);
fo.addParam(“scale”, “noscale”);
fo.addParam(“wmode”, “transparent”);
fo.addParam(“loop”, “false”);
fo.write(“flashcontent1”);
</script>**</td>
</tr>
</table>
<table width=“800” border=“0” cellspacing=“0” cellpadding=“0”>
<tr>
<td class=“whitebg”><table width=“800” border=“0” cellspacing=“0” cellpadding=“0”>
<tr>
<td class=“topbgfade”><table width=“800” border=“0” cellspacing=“0” cellpadding=“0”>
<tr>
<td width=“150” align=“left” valign=“top”>
**<div id=“flashcontent2” style=“width: 200px; height: 300px”></div>
<script type=“text/javascript”>
var fo = new FlashObject(“buttons.swf”, “animationName”, “200”, “300”, “8”, “#FFFFFF ”);
fo.addParam(“allowScriptAccess”, “sameDomain”);
fo.addParam(“quality”, “high”);
fo.addParam(“scale”, “noscale”);
fo.addParam(“wmode”, “transparent”);
fo.addParam(“loop”, “false”);
fo.write(“flashcontent2”);
</script>**</td>
I bolded the parts that are specific to the tutorial.
I used different DIV IDs for each SWF, and also only used the “<script type=“text/javascript” src=“flashobject.js”></script>” once on the page, as advised by the tutorial.
Does anyone know why this isn’t working in IE?