Solved

FLASH: gif if no plugin installed on IE4.0?

Posted on 1998-12-13
3
288 Views
Last Modified: 2013-12-25
I am a beginner using Macromedia's Flash program.  On my first flash-oriented site, I am having trouble ensuring that a gif image will download to the screen if the viewer doesn't have flash installed on their computer -- IF the viewer is using IE 4.0 on a PC.  On all Netscape browsers, everything seeems OK.  However, if I'm looking at the site from IE 4.0 on a PC and flash is not installed, the browser just hangs.  I'm sure that I missed something, but I can't figure it out.  You can see an example of this by going to http://www.cablenet.org/CN98.  You'll have to use IE 4.0 without flash installed to see the problem I'm having.  However, maybe the source code alone will make it clear what I missed...

Thanks!
0
Comment
Question by:pagedesigns
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 

Accepted Solution

by:
Tyszka earned 200 total points
ID: 1857187
I have an excellent example of a JavaScript that will solve your problem. Visit http://fenwick.pvt.k12.il.us. If you scroll down to the bottom where there are moving shields, you will see the Flash movie. If you look at the source, you will see a script that checks for the browser version and it also checks if a plug-in is installed. If there is no plug-in or the version does not support Flash, the document.write('') statement prints no HTML and nothing is shown on the webpage. However, if one would want to put a gif on the page, document.write('<img src="yourimage.gif" ') Notice that the document.write statements just writes regular HTML. Just copy and paste the following code into a text editor and then plug in the correct paths of your images and movies

<<<<<<Begin Source Code>>>>>
<script language = "JavaScript"><!--
bName = navigator.appName;
bVer = parseInt(navigator.appVersion);

// Determine which browser is being used.
if (bName == "Netscape" && bVer >= 3) br = "n3";
else if (bName == "Netscape" && bVer == 2) br = "n2";
else if (bName == "Microsoft Internet Explorer") br = "e3";
else br = "n2";

// Display plug-in on page if detected in Netscape 3+.
if (br == "n3" && navigator.mimeTypes["application/x-shockwave-flash"]) {
document.write(' <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"')
document.write(' codebase="http://active.macromedia.com/flash2/cabs/swflash.cab#version=3,0,0,0"')
document.write(' id=fenwickflash width=550 HEIGHT=120> ')
document.write('  <param name=movie value="flash/fenwickflash.swf"> ')
document.write('  <param name=quality value=autohigh> ')
document.write('  <param name=bgcolor value=#ffffff> ')
document.write(' <embed src="flash/fenwickflash.swf" swLiveConnect=false width=550 ')
document.write(' height=120 quality=autohigh bgcolor=#ffffff ')
document.write(' type="application/x-shockwave-flash" ')
document.write(' pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"> ')
}

// Display page without Flash if plug-in not found.
else if (br == "n3") {
document.write('<hr width=100%>')
document.write('')
}

// Otherwise, display plug-in by default. Will load Flash in IE and other browsers.
else {
document.write(' <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" ')
document.write(' codebase="http://active.macromedia.com/flash2/cabs/swflash.cab#version=3,0,0,0" ')
document.write(' id=fenwickflash WIDTH=550 HEIGHT=120> ')
document.write('  <param name=movie value="flash/fenwickflash.swf"> ')
document.write('  <param name=quality value=autohigh> ')
document.write('  <param name=bgcolor value=#FFFFFF> ')
document.write(' <embed src="flash/fenwickflash.swf" swLiveConnect=false width=550 ')
document.write(' height=120 quality=autohigh bgcolor=#ffffff ')
document.write(' type="application/x-shockwave-flash" ')
document.write(' pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"> ')
document.write('</embed> ')
document.write(' </noembed> ')
document.write(' </object>')
document.write(' </p> ')
document.write(' </body>')
}
// -->
</script>
<<<<<END SOURCE CODE>>>>>
0
 

Author Comment

by:pagedesigns
ID: 1857188
Thanks!  I will try this out and get right back to you!
0
 

Expert Comment

by:Tyszka
ID: 1857189
So? What kind of luck did you have?
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
An enjoyable and seamless user experience can go a long way on an eCommerce site. While a cohesive layout and engaging copy play roles in creating a positive user experience, some sites neglect aspects that seem marginal but in actuality prove very …
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
The viewer will get a basic understanding of what section 508 compliance can entail, learn about skip navigation links, alt text, transcripts, and font size controls.

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question