Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

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

Posted on 1998-12-13
3
Medium Priority
?
306 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 400 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

Ask an Anonymous Question!

Don't feel intimidated by what you don't know. Ask your question anonymously. It's easy! Learn more and upgrade.

Question has a verified solution.

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

This article was originally published on Monitis Blog, you can check it here . Today it’s fairly well known that high-performing websites and applications bring in more visitors, higher SEO, and ultimately more sales. By the same token, downtime…
Ready to get certified? Check out some courses that help you prepare for third-party exams.
Viewers will get an overview of the benefits and risks of using Bitcoin to accept payments. What Bitcoin is: Legality: Risks: Benefits: Which businesses are best suited?: Other things you should know: How to get started:
The purpose of this video is to demonstrate how to set up the WordPress backend so that each page automatically generates a Mailchimp signup form in the sidebar. This will be demonstrated using a Windows 8 PC. Tools Used are Photoshop, Awesome…
Suggested Courses

618 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