Old 29-08-2006, 05:08   #1 (permalink)
Accurate
Accurate
 
Accurate's Avatar
 
Join Date: Feb 2003
Location: UK
Posts: 1,216
Looking for a bit of code...

Hi peeps,

I have a header which is 100% flash.. although some of the people viewing this site cannot have flash installed... so I need a bit of code that brings up the JPEG version in its place. (an auto detector of flash).

Cheers
__________________
decent web hosting - www.balue.com
  Reply With Quote
Old 29-08-2006, 05:15   #2 (permalink)
ikoen
Registered User
 
Join Date: Aug 2006
Posts: 5
It's not the code you need directly .. but I think you can use this:

http://www.quirksmode.org/js/flash.html

It's a javascript that detects wheter flash is installed.
Hope it helps to solve your problem!

Grtz,
Koen

edit:
found this on google (a no JavaScript approach):
Quote:
Try putting your Flash in a 1-cell table. In your CSS, create a style to set the background of the cell to your default image. In your HTML, add your Flash object tag.

If the user has Flash installed, you see your Flash media. If the user has an old version of Flash, you see the image until the new player is downloaded. If they have no Flash and plugins disabled, they only see the image.
  Reply With Quote
Old 29-08-2006, 05:54   #3 (permalink)
lukasarts
Shiv.
 
lukasarts's Avatar
 
Join Date: Jul 2006
Location: Elsewhere
Posts: 1,110
  Reply With Quote
Old 29-08-2006, 06:08   #4 (permalink)
Limbo
Baskin'
 
Join Date: Feb 2005
Posts: 5,619
Code:
<object type="application/x-shockwave-flash" data="flash/movie.swf" width="400" height="400"> <param name="movie" value="flash/movie.swf"> <a href="http://www.macromedia.com/flashplayer"> <img src="images/flash/noflash.gif" width="400" height="400" alt="please install flash" border="0"></a> </object>

Keeping it simple. Serves and image + link to flashplayer site if users don't have flash installed - doesn't need JS and is valid
  Reply With Quote
Old 29-08-2006, 07:59   #5 (permalink)
Accurate
Accurate
 
Accurate's Avatar
 
Join Date: Feb 2003
Location: UK
Posts: 1,216
Thats great Limbo.
__________________
decent web hosting - www.balue.com
  Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search


Contact Us - Web Design Forums - Archive - Top
Search Engine Optimization by vBSEO 3.0.0 RC8