Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

alternative flash content

Status
Not open for further replies.

kris29

Programmer
Apr 23, 2006
10
IN
Is there a way to have a graphic or text appear in place of a flash movie, in the case where the viewer does not have the flash player?
 
Here is a check Flash plugin from dreamweaver.

Code:
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=iso-8859-1&quot;>
<script language=&quot;JavaScript&quot;>
<!--
function MM_checkPlugin(plgIn, theURL, altURL, autoGo) { //v4.0
  var ok=false; document.MM_returnValue = false;
  with (navigator) if (appName.indexOf('Microsoft')==-1 || (plugins && plugins.length)) {
    ok=(plugins && plugins[plgIn]);
  } else if (appVersion.indexOf('3.1')==-1) { //not Netscape or Win3.1
    if (plgIn.indexOf(&quot;Flash&quot;)!=-1 && window.MM_flash!=null) ok=window.MM_flash;
    else if (plgIn.indexOf(&quot;Director&quot;)!=-1 && window.MM_dir!=null) ok=window.MM_dir;
    else ok=autoGo; }
  if (!ok) theURL=altURL; if (theURL) window.location=theURL;
}
//-->
</script>
</head>

<body bgcolor=&quot;#FFFFFF&quot; text=&quot;#000000&quot; onLoad=&quot;MM_checkPlugin('Shockwave Flash','yes.htm','no.htm',false);return document.MM_returnValue&quot;>
</body>
<script name=&quot;Used by MM_checkPlugin&quot; language=&quot;javascript&quot;>
<!--
with (navigator) if (appName.indexOf('Microsoft')!=-1 && appVersion.indexOf('Mac')==-1) document.write(''+
'<scr'+'ipt language=&quot;VBScript&quot;>\nOn error resume next\n'+
'MM_dir = IsObject(CreateObject(&quot;SWCtl.SWCtl.1&quot;))\n'+
'MM_flash = NOT IsNull(CreateObject(&quot;ShockwaveFlash.ShockwaveFlash&quot;))\n</scr'+'ipt>');
//-->
</script>
</html>

Look at this code, where YES.HTM is the page for user WITH the Flash plugin and NO.HTM is for those who don't.

All you have to do is insert your html in.

Hope it'll help ;-) Have Fun...

Sharky99 >:):O>
 
Don't worry about a user not having Flash installed! If he hasn't installed it by now, he's probably not interested!

Regards,
new.gif
 
LOL True but...

Let me tell you a little story OLD.

Dans le temps des fêtes, j'ai fait une carte en Flash pour mes parents en Floride. Un voisin à un ordi, je lui ai envoyé pour qu'il le montre à mes parents. Il m'a répondu qu'il ne pouvait ouvrir mon .swf??? Ok c'est une personne agée je me suis dit &quot;il pense que c'est un virus???&quot;, donc j'ai créé un projecteur .exe. Il m'a répondu qu'il ne pouvait le voir...

La logique ici est que peut importe la provenance d'un plugin ou whatever...il existe toujour un dummy trop con et/ou peureux pour le downloader.

Peace out... ;-)
Have Fun...

Sharky99 >:):O>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top