[Solved] Embed power point presentation on my page


you can use Google Doc viewer for that. It handles all kind of files : jpg, gif, png, doc, docx, xls, xlsx, ppt, pptx, etc…

Download and include jQuery in your scripts:
<script type="text/javascript" src="https://stackoverflow.com/questions/31513062/./js/jquery-1.11.3.min.js"></script>

Create an empty container for your preview :
<div id='previewContainer'></div>

You can display it on clicking on a button for ex :
<button class="fileClic" data-file="THE_URL_OF_YOUR_DOC">Display</button>
Then a little script to embed the google document iframe :

$('.fileClic').on('click', function (e) {
    e.preventDefault();

var file = $(this).data('file'); // the url of the file you want to preview

$('#previewContainer').html('<iframe src="http://docs.google.com/viewer?url="+file+"&#038;embedded=true" width="400" height="400" style="border: none;"></iframe>') 
});

4

solved Embed power point presentation on my page