Solved

Browser without plugin

Posted on 2000-02-16
6
265 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
  • 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
Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

 

Accepted Solution

by:
fayeb earned 50 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

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

Suggested Solutions

Recently, I was asked to recommend a tracking system to be implemented on a clients website. As the entire site was built on flash, my first thought was to suggest custom built tracking system. However, our company at that point of time didn't h…
I made this because I wanted to get e-mail with a attached csv file so I'd would be able to import user input into a MS Excel template, but I also wanted to register/save all inputs from each day in a file on the server. 1st - It creates a temp C…
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.

815 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now