?
Solved

Browser without plugin

Posted on 2000-02-16
6
Medium Priority
?
276 Views
Last Modified: 2013-11-18
In the case that a page with a Flash movie would be viewed from a browser without the Flash plugin, I would like to know if it is possible in that cases (without the necessary plugin) to make appear an static or animated gif instead the movie, and the way to do this.
0
Comment
Question by:raulhdc
[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
  • 4
  • 2
6 Comments
 

Expert Comment

by:fayeb
ID: 2531121
Place this script in the header of your page

<script language="JavaScript">
<!--
function MM_checkPlugin(plugin, theURL, altURL, IEGoesToURL) { //v2.0
  if ((navigator.plugins && navigator.plugins[plugin]) || //if NS, or
      (IEGoesToURL &&  //if flag set, and MSIE browser for Win95/NT (ActiveX)
       navigator.appName.indexOf('Microsoft') != -1 &&
       navigator.appVersion.indexOf('Mac') == -1 &&
       navigator.appVersion.indexOf('3.1') == -1)) {
    if (theURL.length>2) window.location = theURL;
  } else {
    if (altURL.length>2) window.location = altURL;
  }
  document.MM_returnValue = false;
}
//-->
</script>



Place this script in the body tag of your page

MM_checkPlugin('Shockwave Flash','enter thePage with flash animation herel','enter the page with the animated gif in here',true);return document.MM_returnValue"

I hope this answers your question let me know if you have any problems
0
 

Expert Comment

by:fayeb
ID: 2531141
copy and paste this script in the header of your web pages HTML  i.e. between the <head> and </head> tags

 <script language="JavaScript">
 <!--
 function MM_checkPlugin(plugin, theURL, altURL, IEGoesToURL) { //v2.0
   if ((navigator.plugins && navigator.plugins[plugin]) || //if NS, or
   (IEGoesToURL &&  //if flag set, and MSIE browser for Win95/NT (ActiveX)
           navigator.appName.indexOf('Microsoft') != -1 && 
           navigator.appVersion.indexOf('Mac') == -1 && 
           navigator.appVersion.indexOf('3.1') == -1)) {
    if (theURL.length>2) window.location = theURL;
                        } else {
    if (altURL.length>2) window.location = altURL;
                        }
    document.MM_returnValue = false; }
   //-->
 </script>



Place this script in the body tag (<body "insert it here">of your page)  

"MM_checkPlugin('Shockwave Flash','enter thePage with flash animation herel','enter the page with the animated gif in here',true);return document.MM_returnValue"

 I hope this answers your question let me know if you have any problems
0
 

Expert Comment

by:fayeb
ID: 2531178
fayeb changed the proposed answer to a comment
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 

Accepted Solution

by:
fayeb earned 150 total points
ID: 2531260
Sorry about that going a little mad in the head. What I forgot to tell you is what you need to do is create to web pages one with the flash and one with the animated gif then on the page with the flash do the following

copy and paste this script in the header of your web pages HTML  i.e. between the <Head> tags

i.e.  <head><title></title> PLACE THE CODE HERE </head>

<script language="JavaScript">
<!--
function MM_checkPlugin(plugin, theURL, altURL, IEGoesToURL) { //v2.0
       if ((navigator.plugins && navigator.plugins[plugin]) || //if NS, or
       (IEGoesToURL &&  //if flag set, and MSIE browser for Win95/NT (ActiveX)
                      navigator.appName.indexOf('Microsoft') != -1 && 
                      navigator.appVersion.indexOf('Mac') == -1 && 
                      navigator.appVersion.indexOf('3.1') == -1)) {
       if (theURL.length>2) window.location = theURL } else {
       if (altURL.length>2) window.location = altURL;                  }
              document.MM_returnValue = false; }
 //-->
</script>


THEN

Place this script in the body tag (<body "insert it here">of your page)  and enter the corresponding page names  in this piece of code.

onLoad="MM_checkPlugin('Shockwave Flash','enter thePage with flash animation here','enter the page with the animated gif in here',true);return document.MM_returnValue"

THEN

Once you have done this were ever  the page is being linked from link it to the flash page and on load this will then check to see if you have a plug in if you have it will load the flash page otherwise it will load the gif page

I hope this answers your question and it is clear enough for you let me know if you have any problems
0
 

Author Comment

by:raulhdc
ID: 2537109
Hi! I'm raulhdc, first of all thanks for your answer, but I have had a little problem with it, and I would be grateful you could help me. Well, I have made all that you said on your proposed answer, but when I test it I have problems. When the browser loads the page, at first the Flash movie begins, but instead of continue with the remainder of the movie, it begins another time, and in this way all the time. It makes an infinite loop all the time beginning the movie. If it can help you I will tell you that when it enters in the loop, if I press the stop button of the browser, the loop finishes and the movie continues with the remainder. Thanks for all.

0
 

Author Comment

by:raulhdc
ID: 2537993
Don't pay attention to my last comment, now it runs quite good so I accept your answer. Thanks for all.
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

This is a very simple example to help those of you who are still migrating from AS2 to AS3 understand the redesigned event model in AS3. In AS2.0, event functions (that is, the function to be performed when an event is fired) were stored as a pro…
In this article you will learn how to create a free basic website on Bitbucket, a git service provider. Polymer creates dynamic HTML components, which allow more flexibility than static HTML. This tutorial uses Ubuntu Linux but can also be done on W…
The goal of the tutorial is to teach the user how to select which audio input to use. Once you have an audio input plugged into the laptop or computer, you will go into the audio input settings and choose which audio input you want to use.
The goal of the tutorial is to teach the user what frame rate is, how to control it and what effect it has on the video.
Suggested Courses

800 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