My javascript flash player works fine in FF, not in IE?

DonEl

New Member
I downloaded a free flash mp3 player from e-phonic.com. It's perfect for me. Firefox seems to agree. IE7 and 8beta won't even register that's it's on the page. I'll post the code of the player's javascript, can someone figure out what exactly IE doesn't like about my player and know how to fix it, please?


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta content="text/html; charset=utf-8" http-equiv="content-type" />
<title>Site Under Construction</title>
<style type='text/css'>
p {text-align: center;}
</style>
<script src="mp3plyr/swfobject.js" type="text/javascript"></script>
</head>
<body>
<p>This website undergoing massive reconstruction.</p>
<p>Check back for updates!!.</p>
<p>Please enjoy Don El Jortolian's music whilst you wait.</p>
<div id="flashcontent">
<p>To use the E-Phonic MP3 Player, you will need Adobe Flash Player 9 or better and a Javascript enabled browser.</p>
</div>
<script type="text/javascript">
// <![CDATA[

var so = new SWFObject("mp3plyr/ep_player.swf", "ep_player", "301", "16", "9", "#FFFFFF");
so.addVariable("skin", "mp3plyr/skins/micro_player/skin.xml");
so.addVariable("playlist", "playlist.xml");
so.addVariable("autoplay", "true");
so.addVariable("shuffle", "true");
so.addVariable("buffertime", "1");
so.write("flashcontent");

// ]]>
</script>
</body>
</html>
 
Last edited:
Top