How to Embed powerpoint in html?

Embed flash in HTML using Javascript

  • I need to embed a Flash file in my HTML page using Javascript - this is in order to have the HTML in the page validated at http://validator.w3.org/ - it doesn't like the embed src commands. I have heard this is possible?

  • Answer:

    Hi danners-ga, The <embed> tag was introduces by Netscape Navigator 2, but it was never part of any HTML/XHTML specification. Therefore, code containing this tag will never be successfully validated by the W3C validator. There are a couple of ways to get around this problem: - You could use Javascript to add the embed tag to the HTML file - You could use the object tag, which IS part of the HTML/XHTML spec, to include the Flash movie. - Using Javascript ================ You can find a sample javascript template for embedding flash files in HTML pages, here: - AzizAvenue: Validating W3C Standards with Flash (http://www.azizavenue.com/main/tips_tutorials/flash/validate_flash/index.cfm) You will note that the page itself contains a flash movie, and is still XHTML compliant. The following Word document also provides a sample javascript solution for your problem: - CASE STUDY: How to make Macromedia Flash accessible (http://lists.w3.org/Archives/Public/w3c-wai-gl/1999OctDec/att-0062/01-CASE_STUDY-Macromedia1.doc) - Using the OBJECT tag ==================== Drew McLellan provides information on how you can create valid standard compliant pages containing flash movies, in the following article: - A List Apart: Flash Satay (http://www.alistapart.com/stories/flashsatay/) If you use Flash MX for development, then you will find the following template, based on the above article by Dave, useful: - webqs.com: Publishing XHTML 1.0 compliant code from Flash MX (http://www.webqs.com/experiment.php?id=15) ========================= Hope this helps. If you need any clarifiacations, just ask! Regards, Theta-ga :-) ========================== Google/Google Answers Search Terms Used: flash XHTML validate javascript flash html validate

danners-ga at Google Answers Visit the source

Was this solution helpful to you?

Related Q & A:

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.