Gat*_*ler 56 embed xhtml powerpoint
是否可以将PowerPoint演示文稿(.ppt)嵌入到网页(.xhtml)中?
这将在仅存在Internet Explorer 6和Internet Explorer 7的本地Intranet上使用,因此无需考虑其他浏览器.
我放弃了......我猜Flash是前进的方向.
小智 81
Google文档可以在其文档查看器中提供PowerPoint(和PDF)文档.您无需注册Google文档,只需将其上传到您的网站,然后通过您的网页进行调用即可:
<iframe src="//docs.google.com/gview?url=https://www.yourwebsite.com/powerpoint.ppt&embedded=true" style="width:600px; height:500px;" frameborder="0"></iframe>
Run Code Online (Sandbox Code Playgroud)
小智 10
我厌倦了尝试所有不同的选项来网络托管一个片状或需要闪存的电源点,所以我自己动手.
我的解决方案使用一个非常简单的javascript函数来简单地滚动/替换我从Power Point演示文稿本身保存的GIF图像标记.
在power point演示文稿中,单击"另存为"并选择GIF.选择要在其中显示演示文稿的质量.Power Point将为每张幻灯片保存一个GIF图像,并将它们命名为Slide1.GIF,Slide2.GIF等.....
创建HTML页面并添加图像标签以显示Power point GIF图像.
<img src="Slide1.GIF" id="mainImage" name="mainImage" width="100%" height="100%" alt="">
Run Code Online (Sandbox Code Playgroud)使用onClick操作添加一些first,previous,next和last可点击对象,如下所示:
<a href="#" onclick="swapImage(0);"><img src="/images/first.png" border=0 alt="First"></a>
<a href="#" onclick="swapImage(currentIndex-1);"><img src="/images/left.png" border=0 alt="Back"></a>
<a href="#" onclick="swapImage(currentIndex+1);"><img src="/images/right.png" border=0 alt="Next"></a>
<a href="#" onclick="swapImage(maxIndex);"><img src="/images/last.png" border=0 alt="Last"></a>
Run Code Online (Sandbox Code Playgroud)最后,添加以下javascript函数,当调用时,抓取下一个Slide.GIF图像并将其显示到img标记.
<script type="text/javascript">
//Initilize start value to 1 'For Slide1.GIF'
var currentIndex = 1;
//NOTE: Set this value to the number of slides you have in the presentation.
var maxIndex=12;
function swapImage(imageIndex){
//Check if we are at the last image already, return if we are.
if(imageIndex>maxIndex){
currentIndex=maxIndex;
return;
}
//Check if we are at the first image already, return if we are.
if(imageIndex<1){
currentIndex=1;
return;
}
currentIndex=imageIndex;
//Otherwise update mainImage
document.getElementById("mainImage").src='Slide' + currentIndex + '.GIF';
return;
}
</script>
Run Code Online (Sandbox Code Playgroud)确保可以从HTMl页面访问GIF.默认情况下,它们应位于同一目录中,但您应该能够看到逻辑以及如何在需要时设置图像目录
我在http://www.vanguarddata.com.au上为我的公司提供了使用此技术的培训材料,因此在您花时间尝试之前,欢迎您查看实际操作.
我希望这能帮助那些和我一样头疼的人,就像我一样......
小智 7
我在线推荐官方View Office文档
嵌入你可以简单地使用
<iframe src='https://view.officeapps.live.com/op/embed.aspx?src={urlencode(site-to-ppt)}' width='962px' height='565px' frameborder='0'></iframe>
Run Code Online (Sandbox Code Playgroud)
小智 5
DocStoc.com和Scribd.com都适用于Internet Explorer 6和Internet Explorer 7.它们将显示各种文档类型,包括PowerPoint文件(.ppt).我在工作中使用这些服务用于我的内部网.当然,只需记住在上传文档后将其标记为"私有".
| 归档时间: |
|
| 查看次数: |
160189 次 |
| 最近记录: |