Solved

Browser without plugin

Posted on 2000-02-16
6
267 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
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

This is intended to introduce all collision detection principles in flash, their strengths, weaknesses and workarounds. The main method for Collision Detection in flash is using hitTestObject. But unless you'll be pushing rectangular shapes without …
In my long career of working as an actionscript developer, I had spent sleepless night often working hard to solve some small problems which actually took a lot of my development time; later found out the solutions to be a line or two. Here are s…
The goal of the tutorial is to teach the user how to live broadcast using Flash Media Live Encoder and connecting it to YouTube to broadcast. Log into your Youtube account, choose live stream settings, start live stream from Flash Media Live Enc…
This Micro Tutorial will teach to how to utilize bit rate in Adobe Flash Media Live Encoder.

749 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