This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > Flash Site Design > May 2005 > Display Image when Flash not installed





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Display Image when Flash not installed
karl hungus

2005-05-12, 7:29 pm

How can i get my site to display an image when someone comes to the site without Flash Player Installed?

Thanks
sampurtill

2005-05-12, 7:29 pm

go to publish settings (windows is ctrl+shift+F12) and then under the HTML
section, make a default page for viewers without flash. I dont have flash
running right now cuz im at school, but it's extremely easy to find and change.
I figured it out myself a while ago, hope this helps.
// Sam

atlacatl

2005-05-12, 11:20 pm

<SCRIPT LANGUAGE=JavaScript1.1>
<!--
var MM_contentVersion = 6;
var plugin = (navigator.mimeTypes &&
navigator.mimeTypes["application/x-shockwave-flash"]) ?
navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin : 0;
if ( plugin ) {
var words = navigator.plugins["Shockwave Flash"].description.split(" ");
for (var i = 0; i < words.length; ++i)
{
if (isNaN(parseInt(words)))
continue;
var MM_PluginVersion = words;
}
var MM_FlashCanPlay = MM_PluginVersion >= MM_contentVersion;
}
else if (navigator.userAgent && navigator.userAgent.indexOf("MSIE")>=0
&& (navigator.appVersion.indexOf("Win") != -1)) {
document.write('<SCR' + 'IPT LANGUAGE=VBScript\> \n'); //FS hide this from
IE4.5 Mac by splitting the tag
document.write('on error resume next \n');
document.write('MM_FlashCanPlay = (
IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash." &
MM_contentVersion)))\n');
document.write('</SCR' + 'IPT\> \n');
}
if ( MM_FlashCanPlay ) {
document.write('<OBJECT
classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"');
document.write('
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#ve
rsion=6,0,0,0" ');
document.write(' ID="site2B" WIDTH="580" HEIGHT="830" ALIGN="">');
document.write(' <PARAM NAME=movie VALUE="site2B.swf"> <PARAM NAME=menu
VALUE=false> <PARAM NAME=quality VALUE=high> <PARAM NAME=bgcolor VALUE=#790000>
');
document.write(' <EMBED src="site2B.swf" menu=false quality=high
bgcolor=#790000 ');
document.write(' swLiveConnect=FALSE WIDTH="580" HEIGHT="830" NAME="site2B"
ALIGN=""');
document.write(' TYPE="application/x-shockwave-flash"
PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer">');
document.write(' </EMBED>');
document.write(' </OBJECT>');
} else{
document.write('<a href="http://www.macromedia.com/downloads/"
target="_blank"><IMG SRC="Flash_player.gif" WIDTH="300" HEIGHT="200"
BORDER=0></a>');
}
//-->
</SCRIPT>

................disfruta che!

Sponsored Links


Copyright 2003 - 2008 forum4designers.com  Software forum  Computer Hardware reviews