Reputation: 791
I would like to notify with a very simple text (Flash is not installed on your browser)
But i don't want to use Javascript or swfobject and etc...
I just want to use simple HTML codes
Can i do something like this code:
<html>
<head>
</head>
<body>
<object ...codes...>
<param ...codes...>
<param ...codes...>
<embed ...codes...>
</embed>
Flash is not installed on your pc!
</object>
</body>
</html>
Upvotes: 0
Views: 71
Reputation: 791
Finally I have made a simple code based on @Manmeet Gill Comment:
<html>
<body>
<div id="chart"></div>
<Script Language="JavaScript">
var hasFlash = false;
try {
hasFlash = Boolean(new ActiveXObject('ShockwaveFlash.ShockwaveFlash'));
} catch(exception) {
hasFlash = ('undefined' != typeof navigator.mimeTypes['application/x-shockwave-flash']);
}
if (hasFlash==true) {
document.getElementById('chart').innerHTML = "<!-- Flash HTML Code here -->"
} else {
document.getElementById('chart').innerHTML = "<b>Flash Player Not Installed</b>"
}
</Script>
</body>
</html>
The Script tag should be after the div tag and both should be in the body tag
Upvotes: 0
Reputation: 1186
No you can not.
HTML is what it says, it's a markup language. You need to use js.
Upvotes: 3