0

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>

2 Answers 2

3

No you can not.

HTML is what it says, it's a markup language. You need to use js.

Sign up to request clarification or add additional context in comments.

10 Comments

can you make an example with a very simple javascript? output: (Flash is not installed on your browser) tnx
Try this: jsfiddle.net/130r9fka (set it to echo your output if hasFlash is false)
@MahdiJazini: modify the jsfiddle provided with an alert function to pop up a notification with text of your choosing
@mahdijazini, I'm on mobile so can't help too much, but you can use "alert("you have no flash!");" If hasFlash is false. I'll try an expand tomorrow if need be.
You can put it anywhere, the js simply checks if the user has flash
|
0

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

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.