Just how can I nicely installed Flash in a web page in such a way that is cross-browser suitable?

When I receive Flash things from my developer, it features an instance HTML web page that includes both <object> tags and also <embed> tags along with an entire lot of JavaScript. If I replicate and also paste this code in to my page, it functions, yet the code looks a mess (and also there is a lot of it!). If I remove the added code and also attempt either simply <embed> or <object> by themselves, it operates in some internet browsers, yet not others.

Exists a cool, marginal method that operates in all the significant internet browsers?

0
2019-05-04 07:40:55
Source Share
Answers: 3

SWFObject is what you're seeking. It's a JavaScript collection that does all the cross-browser heavy-lifting. Merely include the JavaScript documents in your web page, create a component to be changed in your resource, and also inform swfobject the name that that component and also the course to the .swf documents.

It does the remainder.

<script type="text/javascript" src="swfobject.js"></script>
<script type="text/javascript">
    /* path, replacement element, width, height, minimum flash version */
    swfobject.embedSWF("myContent.swf", "myContent", "300", "120", "9.0.0");
</script>
.

That's all you require. Well, that and also a component (generally a div ) with an id="myContent" on it. The component with that said ID will certainly be changed with whatever installed tag arrangement your existing internet browser favors.

The documentation is outstanding, you'll have it up and also running in a snap. And also if you strike any kind of grabs, ask an additional inquiry.

0
2019-05-08 00:37:26
Source

You might intend to look at Flash Satay - it is dated, yet it fairly perfectly reveals the concerns in obtaining Flash operating in a cross-browser style.

0
2019-05-07 23:15:44
Source

There are some wonderful response to this currently over at StackOverflow : https://stackoverflow.com/questions/2254027/which-browsers-support-the-embed-and-object-tags

0
2019-05-07 21:32:28
Source