# Flash Detection w/Image

**URL:** <https://forum.kirupa.com/t/flash-detection-w-image/151158>\
**Category:** flash\
**Created:** [June 13, 2005, 8:09pm UTC](https://forum.kirupa.com/t/flash-detection-w-image/151158 "2005-06-13T20:09:32Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![amy1021](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/amy1021/32/1412_2.png) [@amy1021](https://forum.kirupa.com/u/amy1021)\
**Post date:** [June 13, 2005, 8:09pm UTC](https://forum.kirupa.com/t/flash-detection-w-image/151158/1 "2005-06-13T20:09:32Z")

</div>

I have used kirupa’s code to display a jpeg instead of my .swf file on my web page for people who do not have the flash player installed on their computer.

My only problem is that my image map is not working (the jpg shows fine). Does anyone else have problem with it?

## **Here is my code:**

## [font=Courier New]\<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&gt; '); //FS hide this from IE4.5 Mac by splitting the tag document.write('on error resume next ‘); document.write(‘MM\_FlashCanPlay = ( IsObject(CreateObject(“ShockwaveFlash.ShockwaveFlash.” & MM\_contentVersion))) ‘); document.write(’\</SCR’ + ‘IPT&gt; ‘); } if ( MM\_FlashCanPlay ) { document.write(’\<OBJECT classid=“clsid:D27CDB6E-AE6D-11cf-96B8-444553540000”’); document.write(’ codebase=”[/font][[font=Courier New]http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0[/font]](http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0)[font=Courier New]" ‘); document.write(’ ID=“home\_page” WIDTH=“500” HEIGHT=“200” ALIGN=""\>’); document.write(’ \<PARAM NAME=movie VALUE=“home\_page.swf”\> \<PARAM NAME=quality VALUE=high\> \<PARAM NAME=bgcolor VALUE=#FFFFFF\> ‘); document.write(’ \<EMBED src=“home\_page.swf” quality=high bgcolor=#FFFFFF ‘); document.write(’ swLiveConnect=FALSE WIDTH=“500” HEIGHT=“200” NAME=“script” ALIGN=""’); document.write(’ TYPE=“application/x-shockwave-flash” PLUGINSPAGE="[/font][[font=Courier New]http://www.macromedia.com/go/getflashplayer"\>’[/font]](http://www.macromedia.com/go/getflashplayer%22%3E')[font=Courier New]); document.write(’ \</EMBED\>’); document.write(’ \</OBJECT\>’); } else{ document.write(’\<IMG SRC=“Images/application\_link.jpg” WIDTH=“502” HEIGHT=“202” usemap="#Map" BORDER=0\>’); } //–\> \</SCRIPT\>\<NOSCRIPT\>\<IMG SRC=“Images/application\_link.jpg” WIDTH=“502” HEIGHT=“202” usemap="#Map" BORDER=0\> \<map name=“Map” id=“Map”\> \<area shape=“rect” coords=“32,51,182,72” href=“secure/application\_purchase.html”\> \<area shape=“rect” coords=“32,81,182,99” href=“secure/application\_refinance.html”\> \<area shape=“rect” coords=“32,107,182,125” href=“secure/application\_equity.html”\> \<area shape=“rect” coords=“32,133,182,154” href=“secure/application\_consolidation.html”\> \<area shape=“rect” coords=“32,160,182,180” href=“secure/application\_commercial.html”\> \</map\>\</NOSCRIPT\>[/font]

[**Here is what kirupa has on their site**](http://www.kirupa.com/developer/mx/detection.htm)

Any suggestions would be great I have been messing with it forever and I am afraid I have just been staring at it too long!

Thanks,  
Amy
