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

x
?
Solved

Browser without plugin

Posted on 2000-02-16
6
Medium Priority
?
279 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
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 

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

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

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

While working over numerous projects I often had the requirement for doing a screen capture in AS3.0. Unfortunately I found no "ready made" solutions in google search that suited my requirements. But I did come across some great resources which help…
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…
In this tutorial viewers will learn how to create a basic motion tween animation in Flash Open a new document in Flash: Draw/import an image: Press CTRL + F8 to convert it into a graphic symbol: Select a frame (how long you want the tween to last): …
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.

636 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