I want to show a jpg alternative to my flash if the user doesn’t have the flash player installed.
I am using the flash detection script “AC_OETags.js” that Adobe recommend. (It can be found here:
http://www.adobe.com/products/flashplayer/download/detection_kit/ )
And it works fine in all the sensible browsers, but not in Safari where it returns true to say that Safari has flash installed, so doesnt show any flash, or the alternative image.
Has anyone used/adapted this at all?
It’s reasonably cool, so I just wished it worked in Safari too!
To embed your code you do this:
<script type="text/javascript">
var hasRequestedVersion = DetectFlashVer(requiredMajorVersion, requiredMinorVersion, requiredRevision);
// Check to see if the version meets the requirements for playback
alert("hasrequested = "+hasRequestedVersion);
if (hasRequestedVersion)
{
addFlash();
alert("there IS flash");
}
else
{
alert("no flash");
document.write('<a href="[http://www.derby.ac.uk/undergraduate-study/how-to-apply"><img src="http://www.google.co.uk/intl/en_uk/images/logo.gif](http://www.derby.ac.uk/undergraduate-study/how-to-apply%22%3E%3Cimg)" alt="Image #276586" width="773" height="187"></a>');
}
function addFlash()
{
AC_FL_RunContent("codebase","http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0","class","taosFlash","width","773","height","187","wmode","opaque","quality","","bgcolor","#fff","src","/files/flashbanner?xml=http%3A%2F%2Fstudio.silktide.com%2Ffiles%2Ffile.xml&time=10000&width=773&height=187","pluginspage","http://www.macromedia.com/go/getflashplayer","movie","/files/flashbanner?xml=http%3A%2F%2Fstudio.silktide.com%2Ffiles%2Ffile.xml&time=10000&width=773&height=187","scale","noscale","salign","lt");
}
</script>
<noscript>
<div class="noflash">
<a href="change me greg"><img src="http://www.google.co.uk/intl/en_uk/images/logo.gif" alt="Image #276586" width="773" height="187"></a>
</div>
</noscript>