Embed a Powerpoint in a Web Page

狂风中的少年 提交于 2019-12-17 06:13:38

问题


Is there any way to embed a PowerPoint slide show in an HTML page using just the standard tags etc? I tried using a iframe, but that just results in the PowerPoint being downloaded.

<iframe src="Chapter1.pptx">Your browser does not support.</iframe>

I am looking for a way to show the slide show using only standard stuff. I realize I could use google docs or flash or something, but I'd rather have a simple implementation.

Does the web just not know how to process a PowerPoint presentation?


回答1:


Plain and simple...this is the best method to embed any Microsoft or Adobe file into a HTML website.

<iframe src='https://view.officeapps.live.com/op/embed.aspx?src=[https://www.your_website/file_name.pptx]' width='100%' height='600px' frameborder='0'>




回答2:


Just to update this question - as there is a new way to embed Powerpoints in a web page. If you have an account on OneDrive, do the following using Powerpoint Online (accessing Powerpoint via the browser) to embed a Powerpoint:

  1. Click 'File', then 'Share', then 'Embed'

  2. Click the 'Generate' button to generate HTML code to be embedded

  3. Copy the 'Embed Code' and paste it in the HTML of a website




回答3:


Web browsers don't understand power point, but there are solutions besides Flash.

You could export it to HTML or a PDF. Or you could also upload to site like slideshare and make use of their players which are built for this problem.




回答4:


I have decided to take a hack route and upload the powerpoint onto YouTube and then just include the youtube video in the iframe.

<iframe height="375" width="600" src="http://www.youtube.com/embed/assignedId"></iframe>

I know, it's cheap, but it's also easy.

EDIT

I eventually checked my page as XHTML Strict, which does not support the <iframe> tag. So I used the object tag instead.

<object data="http://www.youtube.com/embed/assignedId"> 



回答5:


Use Microsoft skydrive, upload your power point to this site and use this code

where

http://skydrive.live.com/redir.aspx?cid=20f065afc1acdb2e&page=view&resid=20F065AFC1ACDB2E!723&parid=20F065AFC1ACDB2E!719 is the URL of the powerpoint file.

You have to replace SD20F065AFC1ACDB2E!723 for your own string of the corresponding URL




回答6:


Upload a PowerPoint document on your Google Drive and then 'Share' it with everyone (make it public): Sharing your pptx doc

Then, go to File > Publish to the web > hit the publish button.

Go to Embed and copy the embed code and paste it to your web page

Copy embed code




回答7:


why not use prezi, I just use it in my work, very easy and useful.




回答8:


I was able to do this by saving the PPT as an mp4 (Save As > MPEG-4 Video (*.mp4)) and then using the video tag.

<video controls autoplay preload="none" style="width:1000px;">
<source src="/_dev/power_point/m11983.mp4" type="video/mp4" />
<p>Your browser does not support HTML5 Video.</p>
</video>



回答9:


Works Best for me.

  1. Goto MS View Office Documents Online Page

  2. Enter link to PPT file Note: This link should be publicly Accessible

  3. Click on Create URL.

  4. Link to view office documents online will be generated.

  5. Paste this link to any webpage or as iframe src attribute.

You are all set!! :)



来源:https://stackoverflow.com/questions/7101080/embed-a-powerpoint-in-a-web-page

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!