2

This my HTML code but if the browser does not support Flash then I want to replace the image in the Flash part

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Untitled Document</title>
    <script type="text/javascript">
      if (typeof navigator.plugins['Shockwave Flash'] !== 'undefined') {
        alert('support');
      } else {
        alert('not support');
      }
    </script>
  </head>

  <body>
  </body>
</html>
Luwe
  • 3,026
  • 1
  • 20
  • 21
Vipul Vaghasiya
  • 481
  • 1
  • 5
  • 16

1 Answers1

6

I would use one of the Flash Detection JavaScript libraries out there. This one works well.

Dan Short
  • 9,598
  • 2
  • 28
  • 53