Flash Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsWeb DesignFlash Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old September 6th, 2002, 03:34 AM
nousey nousey is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Aug 2002
Posts: 9 nousey User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Question Flash Detector

If i want to build an HTML page with an embedded Flash animation, is there a Javascript of some description which will allow me to detect whether or not the user has Flash installed, and if not, possibly substitute the animation with a JPG or GIF image?

Thanks!

Reply With Quote
  #2  
Old September 6th, 2002, 06:44 AM
Ben Rowe
Guest
Dev Articles Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
use browser hawk

Reply With Quote
  #3  
Old September 6th, 2002, 09:43 AM
nousey nousey is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Aug 2002
Posts: 9 nousey User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
what is browser hawk? where do i get it and what do i do with it? PS, if it is not freeware, then it is not a solution to my problem, since I would have to buy it in dollars and since I live in South Africa, the price will be way out of my reach (1 american dollar = 10 south african rands). Is there anything else I can do?

Thanks!

Last edited by nousey : September 6th, 2002 at 09:48 AM.

Reply With Quote
  #4  
Old September 6th, 2002, 08:30 PM
Ben Rowe
Guest
Dev Articles Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
run a detect page, place a flash animation on it and make it jump to a flash and if it doesnt load, make a meta refresh after 20 seconds, and make it jump to a non-flash page

Reply With Quote
  #5  
Old September 6th, 2002, 08:39 PM
Ben Rowe
Guest
Dev Articles Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
PHP Code:
<script language="JavaScript" type="text/JavaScript">

function 
MM_checkPlugin(plgIntheURLaltURLautoGo) { //v4.0
  
var ok=falsedocument.MM_returnValue false;
  
with (navigator) if (appName.indexOf('Microsoft')==-|| (plugins && plugins.length)) {
    
ok=(plugins && plugins[plgIn]);
  } else if (
appVersion.indexOf('3.1')==-1) { //not Netscape or Win3.1
    
if (plgIn.indexOf("Flash")!=-&& window.MM_flash!=nullok=window.MM_flash;
    else if (
plgIn.indexOf("Director")!=-&& window.MM_dir!=nullok=window.MM_dir;
    else 
ok=autoGo; }
  if (!
oktheURL=altURL; if (theURLwindow.location=theURL;
}
//-->
</script>
<script name="Used by MM_checkPlugin" language="javascript">
<!--
with (navigator) if (appName.indexOf('Microsoft')!=-1 && appVersion.indexOf('Mac')==-1) document.write(''+
'<scr'+'ipt language="VBScript">\nOn error resume next\n'+
'MM_dir = IsObject(CreateObject("SWCtl.SWCtl.1"))\n'+
'MM_flash = NOT IsNull(CreateObject("ShockwaveFlash.ShockwaveFlash"))\n</scr'+'ipt>');
//-->
</script>

<body onLoad="MM_checkPlugin('Shockwave Flash','flash_found.html','no_flash.html',false);r  eturn document.MM_returnValue">

use that code 

Reply With Quote
  #6  
Old September 7th, 2002, 03:26 AM
confuxion confuxion is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Aug 2002
Location: Burlington, VT
Posts: 28 confuxion User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Question Meta-Refresh question

I've been looking for a solution to the original question for quite some time. This script looks like the best answer - nice work. A couple of questions though.

- Is it impossible to achieve the scenario posted in the original question? ie - Can an image be shown on the same page and in the same spot where the Flash would be if the Flash plugin is not detected? One would think some javascript could get the job done, no?

- Your suggestion for setting the meta-refresh for 20 sec: Is there a reason why you chose this timeframe, or could it be set to 10 or 15 seconds? Just curious.

Thanks in advance for your reply.

Reply With Quote
  #7  
Old September 9th, 2002, 01:45 AM
nousey nousey is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Aug 2002
Posts: 9 nousey User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
thanks for the help people! I really appreciate it. I'll give that script a try and let you all know how I manage

Reply With Quote
  #8  
Old September 9th, 2002, 06:46 AM
Ben Rowe
Guest
Dev Articles Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
the reason why 20 seconds is because of people on 56k-

need to give them time to load

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsWeb DesignFlash Development > Flash Detector


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway
Stay green...Green IT