This my HTML but if the browser does not support flash then i want to replace image in 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>
<!-- Empty -->
</body>
</html>
There is no way to detect Flash support in php. php is a server-side language, and sees only requests by the web browsers. Since the request looks the same with and without Flash installed, there is no way to distinguish the two cases in php, or any server-side program.
You should send a website that falls back to HTML/CSS/JavaScript when Flash is available every time. And quite frankly, unless you have an advanced application (think a map application, 3D, and/or video chat), you shouldn’t be using Flash in the first place for simple things like menus.