#1 (permalink)  
Old 08-30-2006, 12:49 PM
Registered User
 
Join Date: Aug 2006
Posts: 1
Flash Detect and Replace not Working

Please, help. Really getting desperate here. I have a piece of code which I got from a site for detecting wheather or not Flash is installed. If flash isn't installed, instead of displaying the Flash file on the Page it should display a .jpg instead. I've tried it on my mac on both Safari and Explorer and script seems to function fine. However I tried on IE 6 on PC and it does nothing. If Flash is not installed it doesn't replace it with the Jpeg file-it's just blank!! This is driving me round the twist so any help would be greatly appreciated.

The script is below and if you need to see it in action I have a test page at
www.blueskymortgages.ie/index.test.html
It should be displaying in the top banner (ignore buttons on page).

The script is

<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://active.macromedia.com/flash2/cabs/swflash.cab#version=4,0,0,0"
ID=Movie1 WIDTH=760 HEIGHT=182>
<param name="movie" value="bluesky1.swf" />
<param name="quality" value="high" />
<param name="wmode" value="opaque" />
<param name="bgcolor" value="#ffffff" />
<SCRIPT LANGUAGE=JavaScript>
<!--
var plugin = (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"]) ? navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin : 0;
if ( plugin && parseInt(plugin.description.substring(plugin.descr iption.indexOf(".")-1)) >= 4 ) {
// Check for Flash version 4 or greater in Netscape
document.write('<EMBED src="bluesky1.swf" quality=high bgcolor=#FFFFFF wmode="opaque"');
document.write(' swLiveConnect=FALSE WIDTH=760 HEIGHT=182');
document.write(' TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash">');
} else if (!(navigator.appName && navigator.appName.indexOf("Netscape")>=0 && navigator.appVersion.indexOf("2.")>=0)){
// Netscape 2 will display the IMG tag below so don't write an extra one
document.write('<a href="drop_down.js"><IMG SRC="noflash.jpg" WIDTH=760 HEIGHT=182 BORDER=0>');
}
//-->
Reply With Quote

Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT -5. The time now is 04:53 PM.

 
Bitrix
Clicky Web Analytics
CloudContacts
Maxtango


Subscribe to our feed | add to myYahoo!

Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.2.0
© 1997-2007 HTMLCenter