I really want to put this code into an article......
<script language="JavaScript" type="text/javascript">
<!--
if (AC_FL_RunContent == 0 || DetectFlashVer == 0) {
alert("This page requires AC_RunActiveContent.js.");
} else {
var hasRightVersion = DetectFlashVer(requiredMajorVersion, requiredMinorVersion, requiredRevision);
if(hasRightVersion) { // if we've detected an acceptable version
// embed the flash movie
AC_FL_RunContent(
'codebase', 'http://download.macromedia.com/pub/sh ... ash/swflash.cab#version=7,0,0,0',
'width', '530',
'height', '255',
'src', 'atag',
'quality', 'high',
'pluginspage', 'http://www.macromedia.com/go/getflashplayer',
'align', 'middle',
'play', 'true',
'loop', 'true',
'scale', 'showall',
'wmode', 'window',
'devicefont', 'false',
'id', 'atag',
'bgcolor', '#333333',
'name', 'atag',
'menu', 'true',
'allowScriptAccess','sameDomain',
'allowFullScreen','false',
'movie', 'atag',
'salign', ''
); //end AC code
} else { // flash is too old or we can't detect the plugin
var alternateContent = '<img src="../imgs/atag.jpg">'
document.write(alternateContent); // insert non-flash content
}
}
// -->
</script>
but it doesn't work or I'm not sure if it's to go in tags etc. The code below is the only way i can get the flash image to show - by embeding it. But it looses some of the features we made the flash file have. i.e. a static image behind the flash if the user doesn't have flash installed + a loading image etc.
How can I add the above code?
We have the html file that the flash code above was in & it worked fine as a stand alone page (for testing).
<object classid="clsid
27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="530" height="255">
<param name="movie" value="../atag.swf" />
<param name="quality" value="high" />
<embed src="../atag.swf" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="530" height="255"></embed>
</object>
Q. I tried to pagewrap the html file - this didn't work or i got it wrong.
would that be an answer here?
Please help, it's the last thing on my site to do & I don't want to compromise as I'm sure it can be done.