View Single Post
  #4 (permalink)  
Old 06-10-2004, 12:30 PM
\Kritikal\ \Kritikal\ is offline
Registered User
 
Join Date: Jun 2004
Location: Ann Arbor, MI, USA
Posts: 73
Send a message via ICQ to \Kritikal\ Send a message via AIM to \Kritikal\
Sorry dude, not gonna happen. The way the file is handled is determined by the browser. Since having it open in its _own_ window...why not have a JavaScript create a new browser window with just the title bar and put the pps file in there. Below is an example of the code to use:
Code:
<script type="text/javascript">
function openPP() {
	window.open("powerpoint.pps","","height=200,width=200,menubar=0,resizable=0,scrollbars=0,status=0,titlebar=0,toolbar=0,left=0,top=0");
}
</script>
Then, in the tag that contains your text or image, put this:

Code:
<div onClick="openPP()">Start Presentation</div>
This is probably as close as you're going to get. Remember, minus a few security bugs, you only have control over the viewport. In this case, the PPS file is being shown in the browser because the user's browser was told to use the PPS plugin to handle the mime type. Because the settings for mime types are done outside of the viewport, most of the time in the preferences of the browser, no client-side scripting language can modify those settings.

Hope this helps!
__________________
-\Kritikal\-
Reply With Quote