View Full Version : detecting flash

01-01-2006, 12:12 AM
How can I have code on my site that sees if the user has flash and use embedded flash if he does, but if he doen't replace the embedded flash with a picture? Basically how can I detect if a person who visits my site has flash installed?

01-01-2006, 04:16 AM
The image in this code should show if flash isn't installed.

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<object type="application/x-shockwave-flash" data="movie.swf" width="400" height="300">
<param name="movie" value="movie.swf">
<img src="nonflashimage.jpg" title="Your browser doesn't have flash installed" alt="Your browser doesn't have flash installed">