Embedding SWF in PHP
Posted: Mon Oct 27, 2008 2:25 pm
This is javascript. Moved to Client Side by moderator.
I'm having trouble embedding my swf file into the top of my page. Here is the code I am using:
Here is the site: http://chevelleonline.net/wb/
It's almost as if the browser knows where it should be...and defines an area where it is.....but it obviously doesn't show up!
thanks!
I'm having trouble embedding my swf file into the top of my page. Here is the code I am using:
Code: Select all
<script language="javascript">AC_FL_RunContent = 0;</script>
<script src="http://chevelleonline.net/wb/media/AC_RunActiveContent.js" language="javascript"></script>
</head>
<body>
<div align="center" id="container">
<script language="javascript">
if (AC_FL_RunContent == 0) {
alert("This page requires AC_RunActiveContent.js.");
} else {
AC_FL_RunContent(
'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0',
'width', '760',
'height', '340',
'src', 'CO Banner',
'quality', 'high',
'pluginspage', 'http://www.macromedia.com/go/getflashplayer',
'align', 'middle',
'play', 'true',
'loop', 'true',
'scale', 'showall',
'wmode', 'window',
'devicefont', 'false',
'id', 'CO Banner',
'bgcolor', '#000000',
'name', 'CO Banner',
'menu', 'true',
'allowFullScreen', 'false',
'allowScriptAccess','sameDomain',
'movie', 'CO Banner',
'salign', ''
); //end AC code
}
</script>
<noscript>
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="760" height="340" id="CO_Banner" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="allowFullScreen" value="false" />
<param name="movie" value="http://chevelleonline.net/wb/media/CO_Banner.swf" /><param name="quality" value="high" /><param name="bgcolor" value="#000000" /> <embed src="http://chevelleonline.net/wb/media/CO_Banner.swf" quality="high" bgcolor="#000000" width="760" height="340" name="CO_Banner" align="middle" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>
</noscript>It's almost as if the browser knows where it should be...and defines an area where it is.....but it obviously doesn't show up!
thanks!