# Flash MX detection - kirupa style

**URL:** <https://forum.kirupa.com/t/flash-mx-detection-kirupa-style/12019>\
**Category:** flash\
**Created:** [January 25, 2003, 12:35pm UTC](https://forum.kirupa.com/t/flash-mx-detection-kirupa-style/12019 "2003-01-25T12:35:53Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Chappo](https://avatars.discourse-cdn.com/v4/letter/c/d26b3c/32.png) [@Chappo](https://forum.kirupa.com/u/Chappo)\
**Post date:** [January 25, 2003, 12:35pm UTC](https://forum.kirupa.com/t/flash-mx-detection-kirupa-style/12019/1 "2003-01-25T12:35:53Z")

</div>

Hey all,

A question about the kirupa version of the flash Mx detection on this link

[http://www.kirupa.com/developer/mx/detection.asp](http://www.kirupa.com/developer/mx/detection.asp)

I tried it but it doesn’t really work , does it ?

Because when i edit the place of the picture to another position, the flash should be swapped to the pictures position when flash is detected, right ??

Somehow the flash stays at the same position - top left…  
No matter where i put the replacement image when flash is not detected.

Also… in Netscape i can see both (on a machine that has flash).  
I see the image (somewhere on the page) and the flash is shown in the topleft.

Is this some scripting fault or am i just being crazy here 😉

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [January 25, 2003, 4:20pm UTC](https://forum.kirupa.com/t/flash-mx-detection-kirupa-style/12019/2 "2003-01-25T16:20:43Z")

</div>

Could someone help me with this ??

surely some people must have had this before ??

big thanks !:hangover:

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [January 25, 2003, 4:33pm UTC](https://forum.kirupa.com/t/flash-mx-detection-kirupa-style/12019/3 "2003-01-25T16:33:05Z")

</div>

an example would be a great help…

Seeing as this is a javascript / html script, the issue will almost certainly be in your html formatting or adjustment of the javascript.

If you post the page and file (or a link to it), we should be able to help you. :bounce:

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [January 25, 2003, 7:58pm UTC](https://forum.kirupa.com/t/flash-mx-detection-kirupa-style/12019/4 "2003-01-25T19:58:22Z")

</div>

Sure…here’s the script…

i tried using this exact same code… nothing changed except for the filenames…

And what happened is the thing i described before

```php
<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\> 
'); //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\> 
');
}
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#version=6,0,0,0" ');
	document.write(' ID="script" WIDTH="300" HEIGHT="200" ALIGN="">');
	document.write(' <PARAM NAME=movie VALUE="script.swf"> <PARAM NAME=quality VALUE=high> <PARAM NAME=bgcolor VALUE=#FFFFFF> '); 
	document.write(' <EMBED src="script.swf" quality=high bgcolor=#FFFFFF ');
	document.write(' swLiveConnect=FALSE WIDTH="300" HEIGHT="200" NAME="script" ALIGN=""');
	document.write(' TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer">');
	document.write(' </EMBED>');
	document.write(' </OBJECT>');
} else{
	document.write('<IMG SRC="script.gif" WIDTH="300" HEIGHT="200" usemap="#script" BORDER=0>');
}
//-->
</SCRIPT>

```

```php

<IMG SRC="script.gif" WIDTH="300" HEIGHT="200" usemap="#script" BORDER=0>

```

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [January 26, 2003, 10:24am UTC](https://forum.kirupa.com/t/flash-mx-detection-kirupa-style/12019/5 "2003-01-26T10:24:00Z")

</div>

Anyone with any thoughts about this one ??

Thanks in advance :bandit:

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [January 27, 2003, 5:17pm UTC](https://forum.kirupa.com/t/flash-mx-detection-kirupa-style/12019/6 "2003-01-27T17:17:32Z")

</div>

Anyone ??? PLEASE???

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [January 27, 2003, 6:18pm UTC](https://forum.kirupa.com/t/flash-mx-detection-kirupa-style/12019/7 "2003-01-27T18:18:47Z")

</div>

I have done the tutorial and it works fine. I don’t know where your problem lies…

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [January 27, 2003, 7:52pm UTC](https://forum.kirupa.com/t/flash-mx-detection-kirupa-style/12019/8 "2003-01-27T19:52:01Z")

</div>

And does it place the image in the place of the swf if there is no flash detected ??

because when i move the image to another location on the page… the swf just stays at the same position

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [January 27, 2003, 10:16pm UTC](https://forum.kirupa.com/t/flash-mx-detection-kirupa-style/12019/9 "2003-01-27T22:16:16Z")

</div>

maybe thats cos you have to move the swf to the same position you move the image to as well…?

Both the swf and image will have their own individual position settings in the code.
